2011-01-27 10:58:05 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2010,2011
|
|
|
|
* NVIDIA Corporation <www.nvidia.com>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2011-01-27 10:58:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2012-12-11 13:34:15 +00:00
|
|
|
#include <linux/ctype.h>
|
2011-01-27 10:58:05 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_DISPLAY_CPUINFO
|
2012-12-11 13:34:15 +00:00
|
|
|
void upstring(char *s)
|
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
#endif /* CONFIG_DISPLAY_CPUINFO */
|