2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2011-01-27 10:58:05 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2010,2011
|
|
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2012-12-11 13:34:15 +00:00
|
|
|
#include <linux/ctype.h>
|
2011-01-27 10:58:05 +00:00
|
|
|
|
2014-10-08 20:57:46 +00:00
|
|
|
static void upstring(char *s)
|
2012-12-11 13:34:15 +00:00
|
|
|
{
|
|
|
|
while (*s) {
|
|
|
|
*s = toupper(*s);
|
|
|
|
s++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-27 10:58:05 +00:00
|
|
|
/* Print CPU information */
|
|
|
|
int print_cpuinfo(void)
|
|
|
|
{
|
2012-12-11 13:34:15 +00:00
|
|
|
char soc_name[10];
|
|
|
|
|
|
|
|
strncpy(soc_name, CONFIG_SYS_SOC, 10);
|
|
|
|
upstring(soc_name);
|
|
|
|
puts(soc_name);
|
|
|
|
puts("\n");
|
2011-01-27 10:58:05 +00:00
|
|
|
|
|
|
|
/* TBD: Add printf of major/minor rev info, stepping, etc. */
|
|
|
|
return 0;
|
|
|
|
}
|