[PATCH v3 6/6] sunxi: Use sysreset framework for poweroff/reset

Stefan Roese sr at denx.de
Thu Nov 4 08:48:29 CET 2021


On 04.11.21 04:55, Samuel Holland wrote:
> 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 at canonical.com>
> Signed-off-by: Samuel Holland <samuel at sholland.org>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
> 
> (no changes since v2)
> 
> Changes in v2:
>   - New patch
> 
>   arch/arm/Kconfig | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index b4808d4c75..ae911d6e35 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
>   
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list