[U-Boot] [PATCH 15/31] M28: Enable MMC SPL

Marek Vasut marek.vasut at gmail.com
Thu Sep 8 22:42:43 CEST 2011


Signed-off-by: Marek Vasut <marek.vasut at gmail.com>
Cc: Andy Fleming <afleming at gmail.com>
Cc: Stefano Babic <sbabic at denx.de>
Cc: Wolfgang Denk <wd at denx.de>
Cc: Detlev Zundel <dzu at denx.de>
---
 include/configs/m28evk.h |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/include/configs/m28evk.h b/include/configs/m28evk.h
index 7e664fc..edacf3d 100644
--- a/include/configs/m28evk.h
+++ b/include/configs/m28evk.h
@@ -69,8 +69,14 @@
 #define	CONFIG_SYS_MEMTEST_START	0x40000000	/* Memtest start adr */
 #define	CONFIG_SYS_MEMTEST_END		0x40400000	/* 4 MB RAM test */
 #define	CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
-#define	CONFIG_SYS_INIT_SP_ADDR		0x18000
-#define	CONFIG_SYS_TEXT_BASE		0x40000000
+/* Point initial SP in SRAM so SPL can use it too. */
+#define	CONFIG_SYS_INIT_SP_ADDR		0x00002000
+/*
+ * We need to sacrifice first 4 bytes of RAM here to avoid triggering some
+ * strange BUG in ROM corrupting first 4 bytes of RAM when loading U-Boot
+ * binary. In case there was more of this mess, 0x100 bytes are skipped.
+ */
+#define	CONFIG_SYS_TEXT_BASE		0x40000100
 
 /*
  * U-Boot general configurations
@@ -107,6 +113,7 @@
 #define	CONFIG_MMC
 #define	CONFIG_GENERIC_MMC
 #define	CONFIG_MXS_MMC
+#define	CONFIG_MMC_U_BOOT
 #endif
 
 /*
-- 
1.7.5.4



More information about the U-Boot mailing list