2015-01-14 16:07:05 +08:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <libfdt.h>
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
|
|
|
|
int __weak checkboard(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If the root node of the DTB has a "model" property, show it.
|
2015-07-09 19:58:03 +08:00
|
|
|
* Then call checkboard().
|
2015-01-14 16:07:05 +08:00
|
|
|
*/
|
2016-11-17 00:49:20 +08:00
|
|
|
int __weak show_board_info(void)
|
2015-01-14 16:07:05 +08:00
|
|
|
{
|
2016-11-17 00:49:19 +08:00
|
|
|
#ifdef CONFIG_OF_CONTROL
|
2015-01-14 16:07:05 +08:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
const char *model;
|
|
|
|
|
|
|
|
model = fdt_getprop(gd->fdt_blob, 0, "model", NULL);
|
|
|
|
|
2015-07-09 19:58:03 +08:00
|
|
|
if (model)
|
2015-01-14 16:07:05 +08:00
|
|
|
printf("Model: %s\n", model);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return checkboard();
|
|
|
|
}
|