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