summaryrefslogtreecommitdiff
path: root/board/samsung/smdk5250
diff options
context:
space:
mode:
authorRajeshwari Shinde <rajeshwari.s@samsung.com>2013-02-18 02:51:49 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-03-12 10:35:10 +0900
commit07f17507c4309d3ccc1fbfd912d078a9ca609aba (patch)
tree0e25783b86274c503997d6fed0af2512be782ba3 /board/samsung/smdk5250
parentc42ffff02a1edd24fc50e5efb33ead1bfa843a26 (diff)
downloadu-boot-imx-07f17507c4309d3ccc1fbfd912d078a9ca609aba.zip
u-boot-imx-07f17507c4309d3ccc1fbfd912d078a9ca609aba.tar.gz
u-boot-imx-07f17507c4309d3ccc1fbfd912d078a9ca609aba.tar.bz2
SMDK5250: FDT: Retrieve board model via DT
Print out the board model by parsing the device tree file. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung/smdk5250')
-rw-r--r--board/samsung/smdk5250/smdk5250.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c
index 6f6f2c2..0097b3f 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