FROMLIST: power: reset: add reboot mode driver
authorAndy Yan <andy.yan@rock-chips.com>
Tue, 1 Mar 2016 12:12:18 +0000 (20:12 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 4 Mar 2016 06:25:43 +0000 (14:25 +0800)
commitc9d9b8082821668dfacb4c7a3fe9f8569acb29e1
tree6beaf7252e168ab9503fe21660843756b7daba07
parentbf1c11414eed2ff272f080b41dc02d348244e702
FROMLIST: power: reset: add reboot mode driver

This driver parse the reboot commands like "reboot loader"
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.

Change-Id: Ifce5a22493a52f3e15332bbf3c94ce7217d7d17c
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Tested-by: John Stultz <john.stultz@linaro.org>
Acked-by: John Stultz <john.stultz@linaro.org>
drivers/power/reset/Kconfig
drivers/power/reset/Makefile
drivers/power/reset/reboot-mode.c [new file with mode: 0644]
drivers/power/reset/reboot-mode.h [new file with mode: 0644]
drivers/power/reset/syscon-reboot-mode.c [new file with mode: 0644]