blob: 9975f33e0b9431b348e41df39fa77ac2ec5a8e97 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Tom Warren41b68382011-01-27 10:58:05 +00002/*
3 * (C) Copyright 2010,2011
4 * NVIDIA Corporation <www.nvidia.com>
Tom Warren41b68382011-01-27 10:58:05 +00005 */
6
7#include <common.h>
Tom Warren61c6d0e2012-12-11 13:34:15 +00008#include <linux/ctype.h>
Tom Warren41b68382011-01-27 10:58:05 +00009
Jeroen Hofstee93dfae72014-10-08 22:57:46 +020010static void upstring(char *s)
Tom Warren61c6d0e2012-12-11 13:34:15 +000011{
12 while (*s) {
13 *s = toupper(*s);
14 s++;
15 }
16}
17
Tom Warren41b68382011-01-27 10:58:05 +000018/* Print CPU information */
19int print_cpuinfo(void)
20{
Tom Warren61c6d0e2012-12-11 13:34:15 +000021 char soc_name[10];
22
23 strncpy(soc_name, CONFIG_SYS_SOC, 10);
24 upstring(soc_name);
25 puts(soc_name);
26 puts("\n");
Tom Warren41b68382011-01-27 10:58:05 +000027
28 /* TBD: Add printf of major/minor rev info, stepping, etc. */
29 return 0;
30}