diff options
| author | Samuel Holland <[email protected]> | 2021-11-03 22:55:16 -0500 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-11-04 08:57:19 +0100 |
| commit | 40edc320b16271a725876b1b6f875cbd342c6582 (patch) | |
| tree | 52890055abf902ec90e4abdb0fe7adac441f7887 /scripts | |
| parent | 6e19dc84c14b3407dfc02d218244d1b3a9fbca3e (diff) | |
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 <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
