mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
powerpc/85xx: Fix compile errors if CONFIG_SYS_{BR,OR}0_PRELIM aren't set
Add ifdef protection in LBC code to handle the case in which CONFIG_SYS_BR0_PRELIM and CONFIG_SYS_OR0_PRELIM arent defined for a build. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
be1ff615ea
commit
9829feffec
1 changed files with 2 additions and 0 deletions
|
@ -58,8 +58,10 @@ void init_early_memctl_regs(void)
|
|||
#endif
|
||||
/* now restrict to preliminary range */
|
||||
if (init_br1) {
|
||||
#if defined(CONFIG_SYS_BR0_PRELIM) && defined(CONFIG_SYS_OR0_PRELIM)
|
||||
set_lbc_br(0, CONFIG_SYS_BR0_PRELIM);
|
||||
set_lbc_or(0, CONFIG_SYS_OR0_PRELIM);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
|
||||
set_lbc_or(1, CONFIG_SYS_OR1_PRELIM);
|
||||
|
|
Loading…
Reference in a new issue