Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56f1cc5f authored by Andy Yan's avatar Andy Yan Committed by Gerrit - the friendly Code Review server
Browse files

power: reset: add reboot mode driver



This driver parses the reboot commands like "reboot bootloader"
and "reboot recovery" to get a boot mode described in the
device tree , then call the write interfae to store the boot
mode in some place like special register or sram, which can
be read by the bootloader after system reboot, then the bootloader
can take different action according to the mode stored.

This is commonly used on Android based devices, in order to
reboot the device into fastboot or recovery mode.

Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: default avatarMoritz Fischer <moritz.fischer@ettus.com>
Tested-by: default avatarJohn Stultz <john.stultz@linaro.org>
Acked-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarAndy Yan <andy.yan@rock-chips.com>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
Git-commit: 4fcd504edbf7c793325511c2df8dcd083958e28a
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/



Change-Id: Id65f6b9186e7a5209542a380bae31a1d8933b931
Signed-off-by: default avatarWufeng.jiang <wufeng.jiang@codeaurora.org>
Signed-off-by: default avatarXiaogang Cui <xiaogang@codeaurora.org>
parent ce610f2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment