blob: 5933c35ddd43e9b4242f33fc3d9952404d82088a [file] [log] [blame]
Tom Warren41b68382011-01-27 10:58:05 +00001/*
2 * (C) Copyright 2010,2011
3 * NVIDIA Corporation <www.nvidia.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Tom Warren41b68382011-01-27 10:58:05 +00006 */
7
8#include <common.h>
Tom Warren61c6d0e2012-12-11 13:34:15 +00009#include <linux/ctype.h>
Tom Warren41b68382011-01-27 10:58:05 +000010
Jeroen Hofstee93dfae72014-10-08 22:57:46 +020011static void upstring(char *s)
Tom Warren61c6d0e2012-12-11 13:34:15 +000012{
13 while (*s) {
14 *s = toupper(*s);
15 s++;
16 }
17}
18
Tom Warren41b68382011-01-27 10:58:05 +000019/* Print CPU information */
20int print_cpuinfo(void)
21{
Tom Warren61c6d0e2012-12-11 13:34:15 +000022 char soc_name[10];
23
24 strncpy(soc_name, CONFIG_SYS_SOC, 10);
25 upstring(soc_name);
26 puts(soc_name);
27 puts("\n");
Tom Warren41b68382011-01-27 10:58:05 +000028
29 /* TBD: Add printf of major/minor rev info, stepping, etc. */
30 return 0;
31}