Commit b9d74b48107d139333322288f9c1c4989f5d7659

Authored by Matthias Weisser
Committed by Wolfgang Denk
1 parent 696f6cc9ba

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>

Showing 3 changed files with 13 additions and 3 deletions Side-by-side Diff

board/syteco/jadecpu/config.mk
1   -TEXT_BASE = 0x46000000
  1 +TEXT_BASE = 0x10000000
board/syteco/jadecpu/jadecpu.c
... ... @@ -154,10 +154,17 @@
154 154 */
155 155 int dram_init(void)
156 156 {
157   - gd->bd->bi_dram[0].start = PHYS_SDRAM;
158   - gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
  157 + /* dram_init must store complete ramsize in gd->ram_size */
  158 + gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
  159 + PHYS_SDRAM_SIZE);
159 160  
160 161 return 0;
  162 +}
  163 +
  164 +void dram_init_banksize(void)
  165 +{
  166 + gd->bd->bi_dram[0].start = PHYS_SDRAM;
  167 + gd->bd->bi_dram[0].size = gd->ram_size;
161 168 }
162 169  
163 170 int board_eth_init(bd_t *bis)
include/configs/jadecpu.h
... ... @@ -146,6 +146,9 @@
146 146 #define PHYS_SDRAM 0x40000000 /* Start address of DDRRAM */
147 147 #define PHYS_SDRAM_SIZE 0x08000000 /* 128 megs */
148 148  
  149 +#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
  150 +#define CONFIG_SYS_INIT_SP_ADDR 0x01008000
  151 +
149 152 /*
150 153 * FLASH and environment organization
151 154 */