Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010,2011 |
| 3 | * NVIDIA Corporation <www.nvidia.com> |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
Tom Warren | 61c6d0e | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 9 | #include <linux/ctype.h> |
Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 10 | |
Jeroen Hofstee | 93dfae7 | 2014-10-08 22:57:46 +0200 | [diff] [blame] | 11 | static void upstring(char *s) |
Tom Warren | 61c6d0e | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 12 | { |
| 13 | while (*s) { |
| 14 | *s = toupper(*s); |
| 15 | s++; |
| 16 | } |
| 17 | } |
| 18 | |
Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 19 | /* Print CPU information */ |
| 20 | int print_cpuinfo(void) |
| 21 | { |
Tom Warren | 61c6d0e | 2012-12-11 13:34:15 +0000 | [diff] [blame] | 22 | 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 Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 28 | |
| 29 | /* TBD: Add printf of major/minor rev info, stepping, etc. */ |
| 30 | return 0; |
| 31 | } |