projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7b4db3
)
board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro
author
Pali Rohár
<pali@kernel.org>
Thu, 23 Jun 2022 13:25:36 +0000
(15:25 +0200)
committer
Peng Fan
<peng.fan@nxp.com>
Sun, 3 Jul 2022 07:13:51 +0000
(15:13 +0800)
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>
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
patch
|
blob
|
history
diff --git
a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
index
949fe17
..
56bc355
100644
(file)
--- a/
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@
-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");