]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
0365ffcc MY |
2 | |
3 | #include <common.h> | |
b08c8c48 | 4 | #include <linux/libfdt.h> |
0365ffcc MY |
5 | #include <linux/compiler.h> |
6 | ||
7 | int __weak checkboard(void) | |
8 | { | |
0365ffcc MY |
9 | return 0; |
10 | } | |
11 | ||
12 | /* | |
13 | * If the root node of the DTB has a "model" property, show it. | |
dac326b8 | 14 | * Then call checkboard(). |
0365ffcc | 15 | */ |
f7637cc0 | 16 | int __weak show_board_info(void) |
0365ffcc | 17 | { |
62e7a5c5 | 18 | #ifdef CONFIG_OF_CONTROL |
0365ffcc MY |
19 | DECLARE_GLOBAL_DATA_PTR; |
20 | const char *model; | |
21 | ||
22 | model = fdt_getprop(gd->fdt_blob, 0, "model", NULL); | |
23 | ||
dac326b8 | 24 | if (model) |
0365ffcc | 25 | printf("Model: %s\n", model); |
0365ffcc MY |
26 | #endif |
27 | ||
28 | return checkboard(); | |
29 | } |