sysreset: Add poweroff-gpio driver

Add GPIO poweroff driver, which is based on the Linux
driver and uses the same DT binding.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Sebastian Reichel
2020-09-02 19:31:42 +02:00
committed by Stefano Babic
parent 436ba4e0c7
commit 8ccc6bffaa
3 changed files with 100 additions and 0 deletions

View File

@@ -43,6 +43,13 @@ config SYSRESET_CMD_POWEROFF
endif
config POWEROFF_GPIO
bool "Enable support for GPIO poweroff driver"
select DM_GPIO
help
Support for system poweroff using a GPIO pin. This can be used
for systems having a single GPIO to trigger a system poweroff.
config SYSRESET_GPIO
bool "Enable support for GPIO reset driver"
select DM_GPIO