mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
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>
This commit is contained in:
parent
696f6cc9ba
commit
b9d74b4810
3 changed files with 13 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
TEXT_BASE = 0x46000000
|
TEXT_BASE = 0x10000000
|
||||||
|
|
|
@ -154,12 +154,19 @@ int misc_init_r(void)
|
||||||
*/
|
*/
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
gd->bd->bi_dram[0].start = PHYS_SDRAM;
|
/* dram_init must store complete ramsize in gd->ram_size */
|
||||||
gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
|
gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
|
||||||
|
PHYS_SDRAM_SIZE);
|
||||||
|
|
||||||
return 0;
|
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 board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
|
@ -146,6 +146,9 @@
|
||||||
#define PHYS_SDRAM 0x40000000 /* Start address of DDRRAM */
|
#define PHYS_SDRAM 0x40000000 /* Start address of DDRRAM */
|
||||||
#define PHYS_SDRAM_SIZE 0x08000000 /* 128 megs */
|
#define PHYS_SDRAM_SIZE 0x08000000 /* 128 megs */
|
||||||
|
|
||||||
|
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
|
||||||
|
#define CONFIG_SYS_INIT_SP_ADDR 0x01008000
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FLASH and environment organization
|
* FLASH and environment organization
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue