]>
Commit | Line | Data |
---|---|---|
3f82b1d3 TW |
1 | /* |
2 | * (C) Copyright 2010,2011 | |
3 | * NVIDIA Corporation <www.nvidia.com> | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
3f82b1d3 TW |
6 | */ |
7 | ||
8 | #include <common.h> | |
b2871037 | 9 | #include <linux/ctype.h> |
3f82b1d3 TW |
10 | |
11 | #ifdef CONFIG_DISPLAY_CPUINFO | |
b2871037 TW |
12 | void upstring(char *s) |
13 | { | |
14 | while (*s) { | |
15 | *s = toupper(*s); | |
16 | s++; | |
17 | } | |
18 | } | |
19 | ||
3f82b1d3 TW |
20 | /* Print CPU information */ |
21 | int print_cpuinfo(void) | |
22 | { | |
b2871037 TW |
23 | char soc_name[10]; |
24 | ||
25 | strncpy(soc_name, CONFIG_SYS_SOC, 10); | |
26 | upstring(soc_name); | |
27 | puts(soc_name); | |
28 | puts("\n"); | |
3f82b1d3 TW |
29 | |
30 | /* TBD: Add printf of major/minor rev info, stepping, etc. */ | |
31 | return 0; | |
32 | } | |
33 | #endif /* CONFIG_DISPLAY_CPUINFO */ |