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