* [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro
@ 2022-04-28 19:06 Pali Rohár
2022-06-23 13:25 ` [PATCH v2] " Pali Rohár
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2022-04-28 19:06 UTC (permalink / raw)
To: Priyanka Jain, Sinan Akman; +Cc: u-boot
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 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 e559a77b2dac..a8318ff40b6a 100644
--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@ -209,8 +209,11 @@ int checkboard(void)
val = ((in ^ invert) & 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");
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH v2] board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro
2022-04-28 19:06 [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro Pali Rohár
@ 2022-06-23 13:25 ` Pali Rohár
0 siblings, 0 replies; 2+ messages in thread
From: Pali Rohár @ 2022-06-23 13:25 UTC (permalink / raw)
To: Priyanka Jain, Peng Fan (OSS); +Cc: u-boot
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>
---
Changes in v2:
* Rebase on top of next branch, commit 9121478ee6f2aee381f8fe49d8997d43527d351a
---
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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 947bbc9a5ab7..ffa9aebad1c0 100644
--- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
+++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c
@@ -224,8 +224,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");
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-23 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-28 19:06 [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without __SW_BOOT_SD macro Pali Rohár
2022-06-23 13:25 ` [PATCH v2] " Pali Rohár
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox