summaryrefslogtreecommitdiffstats
path: root/include/configs/omap4_common.h
diff options
context:
space:
mode:
authorAneesh V <aneesh@ti.com>2011-10-21 12:29:34 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-10-27 21:56:35 +0200
commit2d01dd953a269e5fc27e04cb8571e0d8d81c7c4a (patch)
treea11c87dc6b9a6cad090a01455cb6269f39eaa0ee /include/configs/omap4_common.h
parentcc3f7058435c94acaaf9111340437a0a4c018de6 (diff)
downloadblackbird-obmc-uboot-2d01dd953a269e5fc27e04cb8571e0d8d81c7c4a.tar.gz
blackbird-obmc-uboot-2d01dd953a269e5fc27e04cb8571e0d8d81c7c4a.zip
omap: spl: fix build break due to changes in FAT
FAT library now uses malloc() and free(). But SPL doesn't have heap until now. Setup a heap in SDRAM to fix this issue. However this increases SPL footprint beyond the available SRAM budget. So, compile out some fancy features in the SDARM init bring back footprint under control CC: Sandeep Paulraj <s-paulraj@ti.com> CC: Wolfgang Denk <wd@denx.de> Signed-off-by: Aneesh V <aneesh@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'include/configs/omap4_common.h')
-rw-r--r--include/configs/omap4_common.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h
index e7749ace5a..f535769559 100644
--- a/include/configs/omap4_common.h
+++ b/include/configs/omap4_common.h
@@ -253,6 +253,16 @@
#define CONFIG_SPL_BSS_START_ADDR 0x80000000
#define CONFIG_SPL_BSS_MAX_SIZE 0x80000 /* 512 KB */
+/*
+ * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
+ * 64 bytes before this address should be set aside for u-boot.img's
+ * header. That is 0x800FFFC0--0x80100000 should not be used for any
+ * other needs.
+ */
+#define CONFIG_SYS_TEXT_BASE 0x80100000
+#define CONFIG_SYS_SPL_MALLOC_START 0x80200000
+#define CONFIG_SYS_SPL_MALLOC_SIZE 0x100000 /* 1 MB */
+
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
@@ -268,12 +278,4 @@
#define CONFIG_SPL_SERIAL_SUPPORT
#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/armv7/omap-common/u-boot-spl.lds"
-/*
- * 1MB into the SDRAM to allow for SPL's bss at the beginning of SDRAM
- * 64 bytes before this address should be set aside for u-boot.img's
- * header. That is 0x800FFFC0--0x80100000 should not be used for any
- * other needs.
- */
-#define CONFIG_SYS_TEXT_BASE 0x80100000
-
#endif /* __CONFIG_OMAP4_COMMON_H */
OpenPOWER on IntegriCloud