diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-07-13 12:04:56 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-07-19 11:49:55 +0300 |
commit | 0d832b322109e76953bc58e4d2723d2c73dfb604 (patch) | |
tree | 39b8280cee5607447505728a07dcad51e205dc5d /drivers/sysreset/Kconfig | |
parent | 501fc50a2964210412cb39679d0ac8e994c40ef8 (diff) | |
download | u-boot-0d832b322109e76953bc58e4d2723d2c73dfb604.tar.xz |
sysreset: Add support for gpio-restart
The Linux kernel has binding for gpio-restart node.
This patch is adding basic support without supporting any optional
properties.
This driver was tested on Microblaze system where gpio is connected to
SoC reset logic.
Output value is handled via gpios cells values.
In gpio_reboot_request() set_value is writing 1 because
dm_gpio_set_value() is capable to changing it when it is ACTIVE_LOW.
...
if (desc->flags & GPIOD_ACTIVE_LOW)
value = !value;
...
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sysreset/Kconfig')
-rw-r--r-- | drivers/sysreset/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kconfig index a6d48e8a66..cec612ed50 100644 --- a/drivers/sysreset/Kconfig +++ b/drivers/sysreset/Kconfig @@ -15,6 +15,14 @@ config SYSRESET if SYSRESET +config SYSRESET_GPIO + bool "Enable support for GPIO reset driver" + select GPIO + help + Reset support via GPIO pin connected reset logic. This is used for + example on Microblaze where reset logic can be controlled via GPIO + pin which triggers cpu reset. + config SYSRESET_PSCI bool "Enable support for PSCI System Reset" depends on ARM_PSCI_FW |