xref: /openbmc/u-boot/arch/arm/mach-tegra/sys_info.c (revision e77e65df)
1 /*
2  * (C) Copyright 2010,2011
3  * NVIDIA Corporation <www.nvidia.com>
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #include <common.h>
9 #include <linux/ctype.h>
10 
11 static void upstring(char *s)
12 {
13 	while (*s) {
14 		*s = toupper(*s);
15 		s++;
16 	}
17 }
18 
19 /* Print CPU information */
20 int print_cpuinfo(void)
21 {
22 	char soc_name[10];
23 
24 	strncpy(soc_name, CONFIG_SYS_SOC, 10);
25 	upstring(soc_name);
26 	puts(soc_name);
27 	puts("\n");
28 
29 	/* TBD: Add printf of major/minor rev info, stepping, etc. */
30 	return 0;
31 }
32