• T
    ARM: tegra: Support reboot modes · 498bb3da
    Thierry Reding 提交于
    The boot ROM on Tegra SoCs supports booting into forced recovery mode
    (RCM) by setting a bit in the PMC scratch register 0. Similarily, the
    Android bootloader examines some of the bits in this register to disable
    autoboot or enter recovery mode.
    
    Support these modes by setting the corresponding bits depending on the
    specified reboot command (forced-recovery, bootloader, recovery). Recent
    systemd-based distributions allow this to be specified using an optional
    argument to the reboot command.
    Signed-off-by: NThierry Reding <treding@nvidia.com>
    Tested-by: NAlexandre Courbot <acourbot@nvidia.com>
    Signed-off-by: NStephen Warren <swarren@nvidia.com>
    498bb3da
pmc.c 10.1 KB