2 * SPDX-License-Identifier: GPL-2.0+
7 #include <linux/compiler.h>
9 int __weak checkboard(void)
11 printf("Board: Unknown\n");
16 * If the root node of the DTB has a "model" property, show it.
17 * If CONFIG_OF_CONTROL is disabled or the "model" property is missing,
18 * fall back to checkboard().
20 int show_board_info(void)
22 #ifdef CONFIG_OF_CONTROL
23 DECLARE_GLOBAL_DATA_PTR;
26 model = fdt_getprop(gd->fdt_blob, 0, "model", NULL);
29 printf("Model: %s\n", model);