• J
    soc/tegra: pmc: Add reboot notifier · 765d95f8
    Jon Hunter 提交于
    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: NJon Hunter <jonathanh@nvidia.com>
    Reviewed-by: NDmitry Osipenko <digetx@gmail.com>
    Tested-by: NDmitry Osipenko <digetx@gmail.com>
    Signed-off-by: NThierry Reding <treding@nvidia.com>
    765d95f8
pmc.c 100.5 KB