mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
powerpc/85xx: do not reloc l2srbar if CONFIG_FLASH_BASE is not defined
This fixes the compiling error for the board which doesn't have NOR flash (so CONFIG_FLASH_BASE is not defined) Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@@ -327,7 +327,7 @@ int cpu_init_r(void)
|
||||
if (l2cache->l2ctl & MPC85xx_L2CTL_L2E) {
|
||||
puts("already enabled");
|
||||
l2srbar = l2cache->l2srbar0;
|
||||
#ifdef CONFIG_SYS_INIT_L2_ADDR
|
||||
#if defined(CONFIG_SYS_INIT_L2_ADDR) && defined(CONFIG_SYS_FLASH_BASE)
|
||||
if (l2cache->l2ctl & MPC85xx_L2CTL_L2SRAM_ENTIRE
|
||||
&& l2srbar >= CONFIG_SYS_FLASH_BASE) {
|
||||
l2srbar = CONFIG_SYS_INIT_L2_ADDR;
|
||||
|
||||
Reference in New Issue
Block a user