]> Git Repo - u-boot.git/blame - common/board_info.c
spl: ram: Fix u_boot_pos calculation
[u-boot.git] / common / board_info.c
CommitLineData
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
7int __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 16int __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}
This page took 0.161178 seconds and 4 git commands to generate.