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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user