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

4.115
Last change on this file since 6c454104 was 6c454104, checked in by Sebastian Huber <sebastian.huber@…>, on 11/13/12 at 10:50:38

bsp/mpc55xx: Fix no-cache section load

  • Property mode set to 100644
File size: 3.1 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
23#include <bsp/mpc55xx-config.h>
24#include <bsp/start.h>
25#include <bsp.h>
26
27#ifdef MPC55XX_HAS_EBI
28
29BSP_START_TEXT_SECTION const struct EBI_CAL_CS_tag
30  mpc55xx_start_config_ebi_cal_cs [] = {
31#if defined(MPC55XX_BOARD_MPC5674FEVB)
32  /* External SRAM */
33  {
34    .BR = {
35      .B = {
36        .BA = 0x20000000 >> 15,
37        .PS = 0,
38        .AD_MUX = 1,
39        .BL = 1,
40        .WEBS = 0,
41        .TBDIP = 1,
42        .SETA = 0,
43        .BI = 0,
44        .V = 1
45      }
46    },
47    .OR = {
48      .B = {
49        .AM = 0xfff80000 >> 15,
50        .SCY = 0,
51        .BSCY = 0
52      }
53    }
54  },
55  /* External Ethernet controller */
56  {
57    .BR = {
58      .B = {
59        .BA = 0x3fff8000 >> 15,
60        .PS = 0,
61        .AD_MUX = 1,
62        .BL = 0,
63        .WEBS = 0,
64        .TBDIP = 0,
65        .SETA = 0,
66        .BI = 1,
67        .V = 1
68      }
69    },
70    .OR = {
71      .B = {
72        .AM = 0xfff80000 >> 15,
73        .SCY = 1,
74        .BSCY = 0
75      }
76    }
77  }
78#elif defined(MPC55XX_BOARD_MPC5674F_ECU508) \
79  && defined(MPC55XX_NEEDS_LOW_LEVEL_INIT)
80  /* D_CS0 for external SRAM */
81  {
82    .BR = {
83      .B = {
84        .BA = 0x20000000 >> 15,
85        .PS = 0,
86        .AD_MUX = 1,
87        .BL = 1,
88        .WEBS = 0,
89        .TBDIP = 1,
90        .SETA = 0,
91        .BI = 0,
92        .V = 1
93      }
94    },
95    .OR = {
96      .B = {
97        .AM = 0xffe00000 >> 15,
98        .SCY = 0,
99        .BSCY = 0
100      }
101    }
102  },
103
104  /* D_CS1 for Ethernet Controller */
105  {
106    .BR = {
107      .B = {
108        .BA = 0x3fff8000 >> 15,
109        .PS = 0,
110        .AD_MUX = 1,
111        .BL = 0,
112        .WEBS = 0,
113        .TBDIP = 0,
114        .SETA = 0,
115        .BI = 1,
116        .V = 1
117      }
118    },
119    .OR = {
120      .B = {
121        .AM = 0xffff8000 >> 15,
122        .SCY = 1,
123        .BSCY = 0
124      }
125    }
126  },
127
128  /* D_CS2 unused */
129  {
130    .BR = {
131      .B = {
132        .BA = 0x20000000 >> 15,
133        .PS = 0,
134        .AD_MUX = 1,
135        .BL = 0,
136        .WEBS = 0,
137        .TBDIP = 0,
138        .SETA = 0,
139        .BI = 1,
140        .V = 0
141      }
142    },
143    .OR = {
144      .B = {
145        .AM = 0xfff80000 >> 15,
146        .SCY = 0,
147        .BSCY = 0
148      }
149    }
150  },
151
152  /* D_CS3 for MRAM, ARCNET */
153  {
154    .BR = {
155      .B = {
156        .BA = 0x3ff80000 >> 15,
157        .PS = 1,
158        .AD_MUX = 1,
159        .BL = 0,
160        .WEBS = 1,
161        .TBDIP = 0,
162        .SETA = 0,
163        .BI = 1,
164        .V = 1
165    }
166  },
167    .OR = {
168      .B = {
169        .AM = 0xfff80000 >> 15,
170        .SCY = 1,
171        .BSCY = 0
172      }
173    }
174  }
175#endif
176};
177
178BSP_START_TEXT_SECTION const size_t mpc55xx_start_config_ebi_cal_cs_count [] = {
179  sizeof(mpc55xx_start_config_ebi_cal_cs) / sizeof(mpc55xx_start_config_ebi_cal_cs [0])
180};
181
182#endif /* MPC55XX_HAS_EBI */
Note: See TracBrowser for help on using the repository browser.