Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2010,2011 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 8 | #include <linux/ctype.h> |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 9 | |
Jeroen Hofstee | 19d7bf3 | 2014-10-08 22:57:46 +0200 | [diff] [blame] | 10 | static void upstring(char *s) |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 11 | { |
| 12 | while (*s) { |
| 13 | *s = toupper(*s); |
| 14 | s++; |
| 15 | } |
| 16 | } |
| 17 | |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 18 | /* Print CPU information */ |
| 19 | int print_cpuinfo(void) |
| 20 | { |
Tom Warren | b287103 | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 21 | char soc_name[10]; |
| 22 | |
| 23 | strncpy(soc_name, CONFIG_SYS_SOC, 10); |
| 24 | upstring(soc_name); |
| 25 | puts(soc_name); |
| 26 | puts("\n"); |
Tom Warren | 3f82b1d | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 27 | |
| 28 | /* TBD: Add printf of major/minor rev info, stepping, etc. */ |
| 29 | return 0; |
| 30 | } |