linux/drivers/soc/tegra
Jon Hunter 765d95f8ac soc/tegra: pmc: Add reboot notifier
The Tegra PMC driver implements a restart handler that supports Tegra
specific reboot commands such as placing the device into 'recovery' mode
in order to reprogram the platform. This is accomplished by setting the
appropriate bit in the PMC scratch0 register prior to rebooting the
platform.

For Tegra platforms that support PSCI or EFI, the default Tegra restart
handler is not called and the PSCI or EFI restart handler is called
instead. Hence, for Tegra platforms that support PSCI or EFI, the Tegra
specific reboot commands do not currently work. Fix this by moving the
code that programs the PMC scratch0 register into a separate reboot
notifier that will always be called on reboot.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2021-12-16 14:03:38 +01:00
..
fuse soc/tegra: fuse: Enable fuse clock on suspend for Tegra124 2021-08-11 11:55:56 +02:00
ari-tegra186.c soc/tegra: Add Tegra186 ARI driver 2021-10-08 21:42:38 +02:00
common.c soc/tegra: Don't print error message when OPPs not available 2021-12-16 14:03:38 +01:00
flowctrl.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
Kconfig soc/tegra: Make regulator couplers depend on CONFIG_REGULATOR 2021-08-02 14:30:46 +02:00
Makefile soc/tegra: Add Tegra186 ARI driver 2021-10-08 21:42:38 +02:00
pmc.c soc/tegra: pmc: Add reboot notifier 2021-12-16 14:03:38 +01:00
powergate-bpmp.c soc/tegra: bpmp: Remove unused including <linux/version.h> 2021-08-11 11:51:39 +02:00
regulators-tegra20.c soc/tegra: regulators: Support core domain state syncing 2021-06-02 10:58:55 +02:00
regulators-tegra30.c soc/tegra: regulators: Support core domain state syncing 2021-06-02 10:58:55 +02:00