colibri_imx6: fix video stdout in default environment
[oweals/u-boot.git] / common / board_info.c
1 // SPDX-License-Identifier: GPL-2.0+
2
3 #include <common.h>
4 #include <init.h>
5 #include <linux/libfdt.h>
6 #include <linux/compiler.h>
7
8 int __weak checkboard(void)
9 {
10         return 0;
11 }
12
13 /*
14  * If the root node of the DTB has a "model" property, show it.
15  * Then call checkboard().
16  */
17 int __weak show_board_info(void)
18 {
19 #ifdef CONFIG_OF_CONTROL
20         DECLARE_GLOBAL_DATA_PTR;
21         const char *model;
22
23         model = fdt_getprop(gd->fdt_blob, 0, "model", NULL);
24
25         if (model)
26                 printf("Model: %s\n", model);
27 #endif
28
29         return checkboard();
30 }