sysreset: move stm32mp sysreset poweroff implementation to sysreset uclass
authorUrja Rannikko <urjaman@gmail.com>
Thu, 16 May 2019 21:48:42 +0000 (21:48 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 19 Aug 2019 04:43:26 +0000 (12:43 +0800)
commitb8050511c6ee4ab60ef4248dff42aff187696249
tree01e451f3b985b4b14b79c4b45b94b26845eb3dc9
parent857f39d7b09804566b23e0f20fcb04601f2ecb52
sysreset: move stm32mp sysreset poweroff implementation to sysreset uclass

This is a generic implementation. Add CONFIG_SYSRESET_CMD_POWEROFF
to signal when we need it. Enable it from the STPMIC1 config and in
sandbox.

The config flag is transitionary, that is it can be removed after all
poweroff implementations use sysreset, and just have CMD_POWEROFF depend
on sysreset.

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/Kconfig
arch/arm/mach-stm32mp/Makefile
arch/arm/mach-stm32mp/cmd_poweroff.c [deleted file]
drivers/power/pmic/Kconfig
drivers/sysreset/Kconfig
drivers/sysreset/sysreset-uclass.c