diff options
author | Piotr Wilczek <p.wilczek@samsung.com> | 2014-03-07 14:59:42 +0100 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-03-12 19:54:59 +0900 |
commit | 4c1dd998523633c8649c6e322ffe6f625dcc234e (patch) | |
tree | 209a037ab97f8bf2a617adf9d05fc6c81811bf54 /board/samsung/common/board.c | |
parent | 3577fe8be9dc8c8aa027361d6424efba9f97f553 (diff) | |
download | u-boot-imx-4c1dd998523633c8649c6e322ffe6f625dcc234e.zip u-boot-imx-4c1dd998523633c8649c6e322ffe6f625dcc234e.tar.gz u-boot-imx-4c1dd998523633c8649c6e322ffe6f625dcc234e.tar.bz2 |
board:samsung: move checkboard to common file
The checkboard function's implementation is common for all
DT supporting boards and should be placed in the board common file.
Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Chander Kashyap <k.chander@samsung.com>
Cc: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
Cc: Amar <amarendra.xt@samsung.com>
Acked-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung/common/board.c')
-rw-r--r-- | board/samsung/common/board.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index cd873bc..f8562b2 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -377,7 +377,19 @@ int board_mmc_init(bd_t *bis) return ret; } #endif + +#ifdef CONFIG_DISPLAY_BOARDINFO +int checkboard(void) +{ + const char *board_name; + + board_name = fdt_getprop(gd->fdt_blob, 0, "model", NULL); + printf("Board: %s\n", board_name ? board_name : "unknown"); + + return 0; +} #endif +#endif /* CONFIG_OF_CONTROL */ #ifdef CONFIG_BOARD_LATE_INIT int board_late_init(void) |