summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMagnus Lilja <lilja.magnus@gmail.com>2010-10-16 19:47:06 +0200
committerStefano Babic <sbabic@denx.de>2010-10-19 12:29:31 +0200
commit68a75d0b544fb8e7efb85bed1597285f61186cef (patch)
tree506688ab69b4db898a1bd0f8fab05ea6c399eef1 /board
parent65e62d69415acd4cf8c297b8df7076694e796802 (diff)
downloadu-boot-imx-68a75d0b544fb8e7efb85bed1597285f61186cef.zip
u-boot-imx-68a75d0b544fb8e7efb85bed1597285f61186cef.tar.gz
u-boot-imx-68a75d0b544fb8e7efb85bed1597285f61186cef.tar.bz2
i.MX31: Fix Litekit board to use new ARM relocation support.
Tested on hardware. Boots Linux nicely. Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Diffstat (limited to 'board')
-rw-r--r--board/logicpd/imx31_litekit/config.mk2
-rw-r--r--board/logicpd/imx31_litekit/imx31_litekit.c10
2 files changed, 9 insertions, 3 deletions
diff --git a/board/logicpd/imx31_litekit/config.mk b/board/logicpd/imx31_litekit/config.mk
index d34dc02..a12c182 100644
--- a/board/logicpd/imx31_litekit/config.mk
+++ b/board/logicpd/imx31_litekit/config.mk
@@ -1 +1 @@
-TEXT_BASE = 0x87f00000
+TEXT_BASE = 0xa0000000
diff --git a/board/logicpd/imx31_litekit/imx31_litekit.c b/board/logicpd/imx31_litekit/imx31_litekit.c
index 2ac622d..a07ba0e 100644
--- a/board/logicpd/imx31_litekit/imx31_litekit.c
+++ b/board/logicpd/imx31_litekit/imx31_litekit.c
@@ -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 */