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