]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-tegra: enable sysreset driver
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 24 Oct 2023 07:49:04 +0000 (10:49 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 3 Nov 2023 21:40:11 +0000 (17:40 -0400)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/pmc.c

index 0e94b84fe6573a0cfdb417e1e5573be130081aab..f273778128786d7c4b8ee1f35a5f6d90ce195790 100644 (file)
@@ -60,6 +60,9 @@ config TEGRA_COMMON
        select MISC
        select OF_CONTROL
        select SPI
+       select SYSRESET
+       select SPL_SYSRESET if SPL
+       select SYSRESET_TEGRA
        imply CMD_DM
        imply CRC32_VERIFY
 
index 8d617bee63c99373bbdf3fbafccd6674027f98db..c4f5106750b80cc14ce501c2e4a0697e7b051ff2 100644 (file)
@@ -84,12 +84,3 @@ void tegra_pmc_writel(u32 value, unsigned long offset)
 
        writel(value, NV_PA_PMC_BASE + offset);
 }
-
-void reset_cpu(void)
-{
-       u32 value;
-
-       value = tegra_pmc_readl(PMC_CNTRL);
-       value |= PMC_CNTRL_MAIN_RST;
-       tegra_pmc_writel(value, PMC_CNTRL);
-}