[U-Boot] [Patch v2 5/5] fsl-lsch3/ls2100a_emu: Enabled MC
York Sun
yorksun at freescale.com
Wed Mar 19 22:02:25 CET 2014
Reserve last 512MB from main memory for MC to use. Specify the location
of MC firmware and DPL image in NOR flash.
Signed-off-by: J. German Rivera <German.Rivera at freescale.com>
Signed-off-by: York Sun <yorksun at freescale.com>
---
board/freescale/ls2100a_emu/ls2100a_emu.c | 10 ++++++++++
include/configs/ls2100a_emu.h | 14 ++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/board/freescale/ls2100a_emu/ls2100a_emu.c b/board/freescale/ls2100a_emu/ls2100a_emu.c
index 608a88c..bb0bb1e 100644
--- a/board/freescale/ls2100a_emu/ls2100a_emu.c
+++ b/board/freescale/ls2100a_emu/ls2100a_emu.c
@@ -54,3 +54,13 @@ int timer_init(void)
void reset_cpu(ulong addr)
{
}
+
+int board_eth_init(bd_t *bis)
+{
+ int error = 0;
+
+#ifdef CONFIG_FSL_MC_ENET
+ error = cpu_eth_init(bis);
+#endif
+ return error;
+}
diff --git a/include/configs/ls2100a_emu.h b/include/configs/ls2100a_emu.h
index dce25bd..8829975 100644
--- a/include/configs/ls2100a_emu.h
+++ b/include/configs/ls2100a_emu.h
@@ -54,6 +54,9 @@
#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
#define CONFIG_SYS_DDR_BLOCK2_BASE 0x8080000000ULL
+/* don't use last 512MB, reserved for MC firmware */
+#define CONFIG_SYS_MEM_TOP_HIDE (512UL * 1024 * 1024)
+
/* Generic Timer Definitions */
#define COUNTER_FREQUENCY 12000000 /* 12MHz */
@@ -129,6 +132,17 @@
#define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NOR_FTIM2
#define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NOR_FTIM3
+/* MC firmware */
+#define CONFIG_FSL_MC_ENET
+#define CONFIG_SYS_LS_MC_FW_IN_NOR
+#define CONFIG_SYS_LS_MC_FW_ADDR 0x30240000ULL
+/* TODO Actual FW length needs to be determined at runtime from FW header */
+#define CONFIG_SYS_LS_MC_FW_LENGTH (4U * 1024 * 1024)
+#define CONFIG_SYS_LS_MC_DPL_IN_NOR
+#define CONFIG_SYS_LS_MC_DPL_ADDR 0x30200000ULL
+/* TODO Actual DPL max length needs to be confirmed with the MC FW team */
+#define CONFIG_SYS_LS_MC_DPL_LENGTH 4096
+
/* Command line configuration */
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_BDI
--
1.7.9.5
More information about the U-Boot
mailing list