• Thierry Reding's avatar
    ARM: tegra: Support reboot modes · 498bb3da
    Thierry Reding authored
    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: default avatarThierry Reding <treding@nvidia.com>
    Tested-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
    Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
    498bb3da
pmc.c 10.1 KB