]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: tegra: Support reboot modes
authorThierry Reding <treding@nvidia.com>
Tue, 6 May 2014 15:04:11 +0000 (17:04 +0200)
committerStephen Warren <swarren@nvidia.com>
Wed, 7 May 2014 15:58:03 +0000 (09:58 -0600)
commit498bb3da7e04ed82d9b66106c4baeb3000a7100e
treef4095319c121505340805cda85ebb667e6132955
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
ARM: tegra: Support reboot modes

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: Thierry Reding <treding@nvidia.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/pmc.c