]> git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/tegra-common/sys_info.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / cpu / tegra-common / sys_info.c
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 #ifdef CONFIG_DISPLAY_CPUINFO
12 void upstring(char *s)
13 {
14 while (*s) {
15 *s = toupper(*s);
16 s++;
17 }
18 }
19
20 /* Print CPU information */
21 int print_cpuinfo(void)
22 {
23 char soc_name[10];
24
25 strncpy(soc_name, CONFIG_SYS_SOC, 10);
26 upstring(soc_name);
27 puts(soc_name);
28 puts("\n");
29
30 /* TBD: Add printf of major/minor rev info, stepping, etc. */
31 return 0;
32 }
33 #endif /* CONFIG_DISPLAY_CPUINFO */