summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-23 17:25:54 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-12-03 13:17:13 +0100
commit2858aeb9b38caf5bcbd2b80fdf5979e23ec5e128 (patch)
tree961413357997cb04ae8098816b3a8236dc715db2 /c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
parentbsp/mpc55xx: Add optional EBI configuration (diff)
downloadrtems-2858aeb9b38caf5bcbd2b80fdf5979e23ec5e128.tar.bz2
bsp/mpc55xx: New BSP variants for RSM6
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c87
1 files changed, 87 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
index 00ac019147..e9ed8c5c0d 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
@@ -169,6 +169,93 @@ const struct EBI_CAL_CS_tag mpc55xx_start_config_ebi_cal_cs [] = {
}
}
}
+#elif defined(MPC55XX_BOARD_MPC5674F_RSM6) \
+ && defined(MPC55XX_NEEDS_LOW_LEVEL_INIT)
+ /* D_CS0 for MRAM */
+ {
+ .BR = {
+ .B = {
+ .BA = 0x20000000 >> 15,
+ .PS = 0,
+ .AD_MUX = 1,
+ .BL = 0,
+ .WEBS = 1,
+ .TBDIP = 0,
+ .SETA = 0,
+ .BI = 1,
+ .V = 1
+ }
+ },
+ .OR = {
+ .B = {
+ .AM = 0xffc00000 >> 15,
+ .SCY = 4,
+ .BSCY = 0
+ }
+ }
+ },
+
+ /* D_CS1 for FPGA */
+ {
+ .BR = {
+ .B = {
+ .BA = 0x21000000 >> 15,
+ .PS = 0,
+ .AD_MUX = 1,
+ .BL = 0,
+ .WEBS = 0,
+ .TBDIP = 0,
+ .SETA = 0,
+ .BI = 1,
+ .V = 1
+ }
+ },
+ .OR = {
+ .B = {
+ .AM = 0xff800000 >> 15,
+ .SCY = 0,
+ .BSCY = 0
+ }
+ }
+ },
+
+ /* D_CS2 unused */
+ {
+ .BR = { .R = 0x20000002 },
+ .OR = { .R = 0xe0000000 }
+ },
+
+ #if defined(MPC55XX_BOARD_MPC5674F_RSM6_KOMA)
+ /* D_CS3 for Ethernet Controller */
+ {
+ .BR = {
+ .B = {
+ .BA = 0x23000000 >> 15,
+ .PS = 1,
+ .AD_MUX = 1,
+ .BL = 0,
+ .WEBS = 1,
+ .TBDIP = 0,
+ .SETA = 0,
+ .BI = 1,
+ .V = 1
+ }
+ },
+ .OR = {
+ .B = {
+ .AM = 0xfff80000 >> 15,
+ .SCY = 8,
+ .BSCY = 0
+ }
+ }
+ }
+ #else
+ /* D_CS3 unused */
+ {
+ .BR = { .R = 0x20000002 },
+ .OR = { .R = 0xe0000000 }
+ }
+ #endif
#endif
};