]> git.sur5r.net Git - u-boot/commitdiff
i.MX31: Fix Litekit board to use new ARM relocation support.
authorMagnus Lilja <lilja.magnus@gmail.com>
Sat, 16 Oct 2010 17:47:06 +0000 (19:47 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 19 Oct 2010 10:29:31 +0000 (12:29 +0200)
Tested on hardware. Boots Linux nicely.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
board/logicpd/imx31_litekit/config.mk
board/logicpd/imx31_litekit/imx31_litekit.c
include/configs/imx31_litekit.h

index d34dc02d96a681110a9ae6e7b753516ed6249dde..a12c1824bf8c2b7509ef3a49c8742b6c27f83a6e 100644 (file)
@@ -1 +1 @@
-TEXT_BASE = 0x87f00000
+TEXT_BASE = 0xa0000000
index 2ac622dbbe33954bc3cf3748a31ebf14b5355631..a07ba0efc7ed5f65c8eb6c1fae3b0e2f74cba489 100644 (file)
@@ -31,12 +31,18 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init (void)
 {
-       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-       gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
+       gd->ram_size = PHYS_SDRAM_1_SIZE;
 
        return 0;
 }
 
+void
+dram_init_banksize (void)
+{
+       gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
+       gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
+}
+
 int board_init (void)
 {
        __REG(CSCR_U(0)) = 0x0000cf03; /* CS0: Nor Flash */
index 88c62d11e1bf85ce84a04fe5e3db057b0be5ee7c..94252371bc339a2c3d60c4ea8c21132286ca033e 100644 (file)
 #define PHYS_SDRAM_1           CSD0_BASE
 #define PHYS_SDRAM_1_SIZE      (128 * 1024 * 1024)
 
+#undef CONFIG_SYS_ARM_WITHOUT_RELOC
+#define CONFIG_SYS_SDRAM_BASE          CSD0_BASE
+#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)
+
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */