summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMatthias Weisser <weisserm@arcor.de>2010-09-21 15:37:44 +0200
committerWolfgang Denk <wd@denx.de>2010-09-21 21:42:01 +0200
commitb9d74b48107d139333322288f9c1c4989f5d7659 (patch)
treeafdc4a024e03ccdb02a2102de3ccb09fcf57fdf6 /board
parent696f6cc9bac463e5995915d6eef4be6412b83b73 (diff)
downloadu-boot-imx-b9d74b48107d139333322288f9c1c4989f5d7659.zip
u-boot-imx-b9d74b48107d139333322288f9c1c4989f5d7659.tar.gz
u-boot-imx-b9d74b48107d139333322288f9c1c4989f5d7659.tar.bz2
arm: Make jadecpu board use relocation
This patch modifies jadecpu board so that it is usable with the relocation patches by Heiko Schocher Signed-off-by: Matthias Weisser <weisserm@arcor.de>
Diffstat (limited to 'board')
-rw-r--r--board/syteco/jadecpu/config.mk2
-rw-r--r--board/syteco/jadecpu/jadecpu.c11
2 files changed, 10 insertions, 3 deletions
diff --git a/board/syteco/jadecpu/config.mk b/board/syteco/jadecpu/config.mk
index c661f0b..91994b0 100644
--- a/board/syteco/jadecpu/config.mk
+++ b/board/syteco/jadecpu/config.mk
@@ -1 +1 @@
-TEXT_BASE = 0x46000000
+TEXT_BASE = 0x10000000
diff --git a/board/syteco/jadecpu/jadecpu.c b/board/syteco/jadecpu/jadecpu.c
index 04d2f9d..69476f8 100644
--- a/board/syteco/jadecpu/jadecpu.c
+++ b/board/syteco/jadecpu/jadecpu.c
@@ -154,12 +154,19 @@ int misc_init_r(void)
*/
int dram_init(void)
{
- gd->bd->bi_dram[0].start = PHYS_SDRAM;
- gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
+ /* dram_init must store complete ramsize in gd->ram_size */
+ gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
+ PHYS_SDRAM_SIZE);
return 0;
}
+void dram_init_banksize(void)
+{
+ gd->bd->bi_dram[0].start = PHYS_SDRAM;
+ gd->bd->bi_dram[0].size = gd->ram_size;
+}
+
int board_eth_init(bd_t *bis)
{
int rc = 0;