~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/u-boot/arch/arm/cpu/tegra-common/sys_info.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * (C) Copyright 2010,2011
 
3
 * NVIDIA Corporation <www.nvidia.com>
 
4
 *
 
5
 * SPDX-License-Identifier:     GPL-2.0+
 
6
 */
 
7
 
 
8
#include <common.h>
 
9
#include <linux/ctype.h>
 
10
 
 
11
void upstring(char *s)
 
12
{
 
13
        while (*s) {
 
14
                *s = toupper(*s);
 
15
                s++;
 
16
        }
 
17
}
 
18
 
 
19
/* Print CPU information */
 
20
int print_cpuinfo(void)
 
21
{
 
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");
 
28
 
 
29
        /* TBD: Add printf of major/minor rev info, stepping, etc. */
 
30
        return 0;
 
31
}