
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(-)
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index 87d42e5..5cb86a4 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -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 diff --git a/include/samsung/misc.h b/include/samsung/misc.h index 914137e..a302432 100644 --- a/include/samsung/misc.h +++ b/include/samsung/misc.h @@ -37,6 +37,7 @@ void draw_logo(void); void set_dfu_alt_boot(int bootmode); #endif #ifdef CONFIG_BOARD_TYPES +const char *get_board_type(void); const char *get_board_type_fdt(void); #endif