mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro
Add #ifdef guard for __SW_BOOT_SD macro like there are guards for all other __SW_BOOT_* macros. Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
f7b4db358c
commit
2c0073aadd
1 changed files with 4 additions and 1 deletions
|
@ -228,8 +228,11 @@ int checkboard(void)
|
|||
val = (in & io_config) | (out & (~io_config));
|
||||
|
||||
puts("rom_loc: ");
|
||||
if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD) {
|
||||
if (0) {
|
||||
#ifdef __SW_BOOT_SD
|
||||
} else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD) {
|
||||
puts("sd");
|
||||
#endif
|
||||
#ifdef __SW_BOOT_SD2
|
||||
} else if ((val & (~__SW_BOOT_MASK)) == __SW_BOOT_SD2) {
|
||||
puts("sd");
|
||||
|
|
Loading…
Reference in a new issue