diff options
author | Andy Yan <andy.yan@rock-chips.com> | 2016-07-06 21:27:26 +0800 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2016-07-06 17:16:27 +0200 |
commit | 4fcd504edbf7c793325511c2df8dcd083958e28a (patch) | |
tree | ab115927f14c80b50a006fde4fd2924df363fc47 /drivers/power/reset/Makefile | |
parent | 376e27e485cbe9f903369a002d07d5a01225d1d3 (diff) | |
download | blackbird-op-linux-4fcd504edbf7c793325511c2df8dcd083958e28a.tar.gz blackbird-op-linux-4fcd504edbf7c793325511c2df8dcd083958e28a.zip |
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: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
Tested-by: John Stultz <john.stultz@linaro.org>
Acked-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/reset/Makefile')
-rw-r--r-- | drivers/power/reset/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/reset/Makefile b/drivers/power/reset/Makefile index ab7aa8614d1f..d6b2560d5c4a 100644 --- a/drivers/power/reset/Makefile +++ b/drivers/power/reset/Makefile @@ -21,3 +21,5 @@ obj-$(CONFIG_POWER_RESET_SYSCON) += syscon-reboot.o obj-$(CONFIG_POWER_RESET_SYSCON_POWEROFF) += syscon-poweroff.o obj-$(CONFIG_POWER_RESET_RMOBILE) += rmobile-reset.o obj-$(CONFIG_POWER_RESET_ZX) += zx-reboot.o +obj-$(CONFIG_REBOOT_MODE) += reboot-mode.o +obj-$(CONFIG_SYSCON_REBOOT_MODE) += syscon-reboot-mode.o |