mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-29 07:33:29 +08:00
microblaze: Fix lmb memory initialization
Microblaze as Arm is using multiple memory banks which are read from DT that's why there is a need to initialized LMB based on bd->bi_dram[]. Without this fix memory base/size is all the time 0 and image relocation is not possible. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
9d877c2f54
commit
a750ded466
@ -582,7 +582,7 @@ ulong env_get_bootm_low(void)
|
||||
|
||||
#if defined(CONFIG_SYS_SDRAM_BASE)
|
||||
return CONFIG_SYS_SDRAM_BASE;
|
||||
#elif defined(CONFIG_ARM)
|
||||
#elif defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)
|
||||
return gd->bd->bi_dram[0].start;
|
||||
#else
|
||||
return 0;
|
||||
@ -599,7 +599,8 @@ phys_size_t env_get_bootm_size(void)
|
||||
return tmp;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARM) && defined(CONFIG_NR_DRAM_BANKS)
|
||||
#if (defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)) && \
|
||||
defined(CONFIG_NR_DRAM_BANKS)
|
||||
start = gd->bd->bi_dram[0].start;
|
||||
size = gd->bd->bi_dram[0].size;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user