diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-07-30 19:16:20 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2019-08-27 09:36:56 +0200 |
commit | 178a415534c51e0228f3999ec52e64c019f867ee (patch) | |
tree | 4c430dc5ffb6f9f219beab05060920501ca50af9 /include/power | |
parent | 17ac2150c3c6356cf2d88e7e105061f02b3cada8 (diff) | |
download | u-boot-178a415534c51e0228f3999ec52e64c019f867ee.tar.gz |
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>
Diffstat (limited to 'include/power')
-rw-r--r-- | include/power/stpmic1.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/power/stpmic1.h b/include/power/stpmic1.h index 0e6721d852..d90a1a9c93 100644 --- a/include/power/stpmic1.h +++ b/include/power/stpmic1.h @@ -22,11 +22,12 @@ /* BUCKS_MRST_CR */ #define STPMIC1_MRST_BUCK(buck) BIT(buck) -#define STPMIC1_MRST_BUCK_ALL GENMASK(3, 0) +#define STPMIC1_MRST_BUCK_DEBUG (STPMIC1_MRST_BUCK(STPMIC1_BUCK1) | \ + STPMIC1_MRST_BUCK(STPMIC1_BUCK3)) /* LDOS_MRST_CR */ #define STPMIC1_MRST_LDO(ldo) BIT(ldo) -#define STPMIC1_MRST_LDO_ALL GENMASK(6, 0) +#define STPMIC1_MRST_LDO_DEBUG 0 /* BUCKx_MAIN_CR (x=1...4) */ #define STPMIC1_BUCK_ENA BIT(0) |