1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0+ 3*4882a593Smuzhiyun */ 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include <common.h> 6*4882a593Smuzhiyun #include <linux/libfdt.h> 7*4882a593Smuzhiyun #include <linux/compiler.h> 8*4882a593Smuzhiyun checkboard(void)9*4882a593Smuzhiyunint __weak checkboard(void) 10*4882a593Smuzhiyun { 11*4882a593Smuzhiyun return 0; 12*4882a593Smuzhiyun } 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun /* 15*4882a593Smuzhiyun * If the root node of the DTB has a "model" property, show it. 16*4882a593Smuzhiyun * Then call checkboard(). 17*4882a593Smuzhiyun */ show_board_info(void)18*4882a593Smuzhiyunint __weak show_board_info(void) 19*4882a593Smuzhiyun { 20*4882a593Smuzhiyun #ifdef CONFIG_OF_CONTROL 21*4882a593Smuzhiyun DECLARE_GLOBAL_DATA_PTR; 22*4882a593Smuzhiyun const char *model; 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun model = fdt_getprop(gd->fdt_blob, 0, "model", NULL); 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun if (model) 27*4882a593Smuzhiyun printf("Model: %s\n", model); 28*4882a593Smuzhiyun #endif 29*4882a593Smuzhiyun printf("MPIDR: 0x%lx\n", (ulong)read_mpidr()); 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun #ifdef CONFIG_ARM64_BOOT_AARCH32 32*4882a593Smuzhiyun if (!(gd->flags & GD_FLG_RELOC)) 33*4882a593Smuzhiyun printf("CPU: AArch32\n"); 34*4882a593Smuzhiyun #endif 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun return checkboard(); 37*4882a593Smuzhiyun } 38