]>
git.ipfire.org Git - people/ms/u-boot.git/blob - common/board_info.c
2 * SPDX-License-Identifier: GPL-2.0+
7 #include <linux/compiler.h>
9 int __weak
checkboard(void)
15 * If the root node of the DTB has a "model" property, show it.
16 * Then call checkboard().
18 int show_board_info(void)
20 #if defined(CONFIG_OF_CONTROL) && !defined(CONFIG_CUSTOM_BOARDINFO)
21 DECLARE_GLOBAL_DATA_PTR
;
24 model
= fdt_getprop(gd
->fdt_blob
, 0, "model", NULL
);
27 printf("Model: %s\n", model
);