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