1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2010,2011
4 * NVIDIA Corporation <www.nvidia.com>
8 #include <linux/ctype.h>
9 #if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30)
10 #include <asm/arch-tegra/pmc.h>
12 static char *get_reset_cause(void)
14 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE;
16 switch (pmc->pmc_reset_status) {
32 /* Print CPU information */
33 int print_cpuinfo(void)
35 printf("SoC: %s\n", CONFIG_SYS_SOC);
36 #if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30)
37 printf("Reset cause: %s\n", get_reset_cause());
40 /* TBD: Add printf of major/minor rev info, stepping, etc. */