summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2010-09-17 13:10:40 +0200
committerWolfgang Denk <wd@denx.de>2010-09-19 19:29:53 +0200
commite48b7c0aad687f0b42ba9985c3e2dc67c2cac71d (patch)
tree1b834a85837ee988b11670c8ae143a73ad513a30 /include
parentf1d2b313c9eb6808d30c16a9eb5251240452a56c (diff)
downloadu-boot-imx-e48b7c0aad687f0b42ba9985c3e2dc67c2cac71d.zip
u-boot-imx-e48b7c0aad687f0b42ba9985c3e2dc67c2cac71d.tar.gz
u-boot-imx-e48b7c0aad687f0b42ba9985c3e2dc67c2cac71d.tar.bz2
ARM: implement relocation for ARM11
Change the implementation for ARM11 to relocate the code to an arbitrary address in RAM. Tested on the qong board. Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/qong.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/qong.h b/include/configs/qong.h
index 4735b5e..7a68b7b 100644
--- a/include/configs/qong.h
+++ b/include/configs/qong.h
@@ -282,4 +282,14 @@ extern int qong_nand_rdy(void *chip);
"mtdparts=physmap-flash.0:384k(U-Boot),128k(env1)," \
"128k(env2),2432k(kernel),13m(ramdisk),-(user)"
+/* additions for new relocation code, must added to all boards */
+#undef CONFIG_SYS_ARM_WITHOUT_RELOC /* This board is tested with relocation support */
+#define CONFIG_SYS_SDRAM_BASE 0x80000000
+#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
+#define CONFIG_SYS_INIT_RAM_END IRAM_SIZE
+#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)
+
+#define CONFIG_BOARD_EARLY_INIT_F 1
+
#endif /* __CONFIG_H */