aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-11-03 22:55:16 -0500
committerStefan Roese <sr@denx.de>2021-11-04 08:57:19 +0100
commit40edc320b16271a725876b1b6f875cbd342c6582 (patch)
tree52890055abf902ec90e4abdb0fe7adac441f7887 /arch/arm/Kconfig
parent6e19dc84c14b3407dfc02d218244d1b3a9fbca3e (diff)
downloadu-boot-40edc320b16271a725876b1b6f875cbd342c6582.zip
u-boot-40edc320b16271a725876b1b6f875cbd342c6582.tar.gz
u-boot-40edc320b16271a725876b1b6f875cbd342c6582.tar.bz2
sunxi: Use sysreset framework for poweroff/reset
Instead of hardcoding the watchdog for reset, and the PMIC for poweroff, use the sysreset framework to manage the available poweroff/reset backends. This allows (as examples) using the PMIC to do a cold reset, and using a GPIO to power off H3/H5 boards lacking a PMIC. Furthermore, it removes the need to hardcode watchdog MMIO addresses, since the sysreset backends can be discovered using the device tree. Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r--arch/arm/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index b4808d4..ae911d6 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1084,6 +1084,9 @@ config ARCH_SUNXI
imply SPL_MMC if MMC
imply SPL_POWER
imply SPL_SERIAL
+ imply SYSRESET
+ imply SYSRESET_WATCHDOG
+ imply SYSRESET_WATCHDOG_AUTO
imply USB_GADGET
imply WDT