All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without CONFIG_BOARDNAME
@ 2022-05-02 16:26 Pali Rohár
  2022-06-23 13:18 ` [PATCH v2] board: freescale: p1_p2_rdb_pc: Allow to compile without BOARD_NAME Pali Rohár
  0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2022-05-02 16:26 UTC (permalink / raw)
  To: Priyanka Jain; +Cc: u-boot

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 6 +++++-
 1 file changed, 5 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 53ff121d3b3d..0b10701f4d48 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
@@ -205,7 +205,11 @@ int checkboard(void)
 	u8 in, out, invert, io_config, val;
 	int bus_num = CONFIG_SYS_SPD_BUS_NUM;
 
-	printf("Board: %s CPLD: V%d.%d PCBA: V%d.0\n", CONFIG_BOARDNAME,
+#ifdef CONFIG_BOARDNAME
+	printf("Board: %s ", CONFIG_BOARDNAME);
+#endif
+
+	printf("CPLD: V%d.%d PCBA: V%d.0\n",
 		in_8(&cpld_data->cpld_rev_major) & 0x0F,
 		in_8(&cpld_data->cpld_rev_minor) & 0x0F,
 		in_8(&cpld_data->pcba_rev) & 0x0F);
-- 
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 BOARD_NAME
  2022-05-02 16:26 [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without CONFIG_BOARDNAME Pali Rohár
@ 2022-06-23 13:18 ` Pali Rohár
  0 siblings, 0 replies; 2+ messages in thread
From: Pali Rohár @ 2022-06-23 13:18 UTC (permalink / raw)
  To: Priyanka Jain, Peng Fan (OSS); +Cc: u-boot

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 | 6 +++++-
 1 file changed, 5 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..949fe170ffd2 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
@@ -186,7 +186,11 @@ int checkboard(void)
 	int bus_num = CONFIG_SYS_SPD_BUS_NUM;
 
 	/* FIXME: This should just use the model from the device tree or similar */
-	printf("Board: %s CPLD: V%d.%d PCBA: V%d.0\n", BOARD_NAME,
+#ifdef BOARD_NAME
+	printf("Board: %s ", BOARD_NAME);
+#endif
+
+	printf("CPLD: V%d.%d PCBA: V%d.0\n",
 		in_8(&cpld_data->cpld_rev_major) & 0x0F,
 		in_8(&cpld_data->cpld_rev_minor) & 0x0F,
 		in_8(&cpld_data->pcba_rev) & 0x0F);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-23 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 16:26 [PATCH] board: freescale: p1_p2_rdb_pc: Allow to compile without CONFIG_BOARDNAME Pali Rohár
2022-06-23 13:18 ` [PATCH v2] board: freescale: p1_p2_rdb_pc: Allow to compile without BOARD_NAME Pali Rohár

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.