stpmic1: program pmic to keep only the debug unit on
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 30 Jul 2019 17:16:20 +0000 (19:16 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 27 Aug 2019 07:36:56 +0000 (09:36 +0200)
commit178a415534c51e0228f3999ec52e64c019f867ee
tree4c430dc5ffb6f9f219beab05060920501ca50af9
parent17ac2150c3c6356cf2d88e7e105061f02b3cada8
stpmic1: program pmic to keep only the debug unit on

Depending on backup register value, we maintain the debug unit
powered-on for debugging purpose.
Only BUCK1 is required for powering the debug unit, so revert
the setting for all the other power lanes, except BUCK3 that
has to be always on.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/mach-stm32mp/include/mach/stm32.h
board/st/stm32mp1/spl.c
include/power/stpmic1.h