blob: de20325ecf3239666e5da6e5d23cbcba5811108c [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
Tom Warren61c6d0e2012-12-11 13:34:15 +000011void upstring(char *s)
12{
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}