mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
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>
This commit is contained in:
parent
6e19dc84c1
commit
40edc320b1
@ -1084,6 +1084,9 @@ config ARCH_SUNXI
|
|||||||
imply SPL_MMC if MMC
|
imply SPL_MMC if MMC
|
||||||
imply SPL_POWER
|
imply SPL_POWER
|
||||||
imply SPL_SERIAL
|
imply SPL_SERIAL
|
||||||
|
imply SYSRESET
|
||||||
|
imply SYSRESET_WATCHDOG
|
||||||
|
imply SYSRESET_WATCHDOG_AUTO
|
||||||
imply USB_GADGET
|
imply USB_GADGET
|
||||||
imply WDT
|
imply WDT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user