aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-06-23 15:18:52 +0200
committerPeng Fan <peng.fan@nxp.com>2022-07-03 15:13:51 +0800
commitf7b4db358ce57b9d48930c9f88b523885a5d072f (patch)
tree4134eb67d8396d00548090aa021f60be6e63a06b /board
parent67ddd562515bda4d139df22cb318a6fc804fc573 (diff)
downloadu-boot-f7b4db358ce57b9d48930c9f88b523885a5d072f.zip
u-boot-f7b4db358ce57b9d48930c9f88b523885a5d072f.tar.gz
u-boot-f7b4db358ce57b9d48930c9f88b523885a5d072f.tar.bz2
board: freescale: p1_p2_rdb_pc: Allow to compile without BOARD_NAME
Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c6
1 files changed, 5 insertions, 1 deletions
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 947bbc9..949fe17 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);