@@ -283,7 +283,10 @@ int checkboard(void)
board_name = fdt_getprop(gd->fdt_blob, 0, "model", NULL);
printf("Board: %s\n", board_name ? board_name : "unknown");
-
+#ifdef CONFIG_BOARD_TYPES
+ const char *board_type = get_board_type();
+ printf("Model: %s\n", board_type ? board_type : "unknown");
+#endif
return 0;
}
#endif
@@ -37,6 +37,7 @@ void draw_logo(void);
void set_dfu_boot_alt(int bootmode);
#endif
#ifdef CONFIG_BOARD_TYPES
+const char *get_board_type(void);
const char *get_board_type_fdt(void);
#endif
For support of multiple board types in a one config - it is welcome to display the current board model. This is what get_board_type() should return. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Piotr Wilczek <p.wilczek@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com> --- board/samsung/common/board.c | 5 ++++- include/samsung/misc.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-)