Signed-off-by: Marek Vasut <marek.va...@gmail.com>
Cc: Andy Fleming <aflem...@gmail.com>
Cc: Stefano Babic <sba...@denx.de>
Cc: Wolfgang Denk <w...@denx.de>
Cc: Detlev Zundel <d...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to