source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c @ a762dc2

4.115
Last change on this file since a762dc2 was a762dc2, checked in by Sebastian Huber <sebastian.huber@…>, on 01/23/12 at 10:19:22

Support for MPC5643L.

Rework of the start sequence to reduce the amount assembler code and to
support configuration tables which may be provided by the application.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx
5 *
6 * @brief EBI calibration chip-select configuration.
7 */
8
9/*
10 * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 *
22 * $Id: ebi-cal-cs-config.c,v 1.1 2011/08/31 16:03:09 sh Exp $
23 */
24
25#include <bsp/mpc55xx-config.h>
26#include <bsp/start.h>
27#include <bsp.h>
28
29#ifdef MPC55XX_HAS_EBI
30
31BSP_START_TEXT_SECTION const struct EBI_CAL_CS_tag
32  mpc55xx_start_config_ebi_cal_cs [] = {
33#if defined(MPC55XX_BOARD_MPC5674FEVB)
34  /* External SRAM */
35  {
36    .BR = {
37      .B = {
38        .BA = 0x20000000 >> 15,
39        .PS = 0,
40        .AD_MUX = 1,
41        .BL = 1,
42        .WEBS = 0,
43        .TBDIP = 1,
44        .SETA = 0,
45        .BI = 0,
46        .V = 1
47      }
48    },
49    .OR = {
50      .B = {
51        .AM = 0xfff80000 >> 15,
52        .SCY = 0,
53        .BSCY = 0
54      }
55    }
56  },
57  /* External Ethernet controller */
58  {
59    .BR = {
60      .B = {
61        .BA = 0x3fff8000 >> 15,
62        .PS = 0,
63        .AD_MUX = 1,
64        .BL = 0,
65        .WEBS = 0,
66        .TBDIP = 0,
67        .SETA = 0,
68        .BI = 1,
69        .V = 1
70      }
71    },
72    .OR = {
73      .B = {
74        .AM = 0xfff80000 >> 15,
75        .SCY = 1,
76        .BSCY = 0
77      }
78    }
79  }
80#endif
81};
82
83BSP_START_TEXT_SECTION const size_t mpc55xx_start_config_ebi_cal_cs_count [] = {
84  sizeof(mpc55xx_start_config_ebi_cal_cs) / sizeof(mpc55xx_start_config_ebi_cal_cs [0])
85};
86
87#endif /* MPC55XX_HAS_EBI */
Note: See TracBrowser for help on using the repository browser.