From: Rajeshwari Shinde Date: Mon, 18 Feb 2013 02:51:49 +0000 (+0000) Subject: SMDK5250: FDT: Retrieve board model via DT X-Git-Tag: v2013.04-rc2~14^2~5^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=07f17507c4309d3ccc1fbfd912d078a9ca609aba;p=u-boot SMDK5250: FDT: Retrieve board model via DT Print out the board model by parsing the device tree file. Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass Signed-off-by: Minkyu Kang --- diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 6f6f2c240f..0097b3fda7 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -336,8 +336,17 @@ int board_eth_init(bd_t *bis) #ifdef CONFIG_DISPLAY_BOARDINFO int checkboard(void) { - printf("\nBoard: SMDK5250\n"); +#ifdef CONFIG_OF_CONTROL + const char *board_name; + board_name = fdt_getprop(gd->fdt_blob, 0, "model", NULL); + if (board_name == NULL) + printf("\nUnknown Board\n"); + else + printf("\nBoard: %s\n", board_name); +#else + printf("\nBoard: SMDK5250\n"); +#endif return 0; } #endif