| // SPDX-License-Identifier: GPL-2.0+ |
| * (C) Copyright 2010,2011 |
| * NVIDIA Corporation <www.nvidia.com> |
| #if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30) |
| #include <asm/arch-tegra/pmc.h> |
| static char *get_reset_cause(void) |
| struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; |
| switch (pmc->pmc_reset_status) { |
| /* Print CPU information */ |
| printf("SoC: %s\n", CONFIG_SYS_SOC); |
| #if defined(CONFIG_TEGRA124) || defined(CONFIG_TEGRA30) |
| printf("Reset cause: %s\n", get_reset_cause()); |
| /* TBD: Add printf of major/minor rev info, stepping, etc. */ |