diff options
author | Martin Fuzzey <martin.fuzzey@flowbird.group> | 2020-01-14 15:56:17 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-27 19:54:20 -0500 |
commit | 7ae22d8479c9e832c0a9a18de705553535a1a9f6 (patch) | |
tree | e1fd1c923cc3fc31056c3d565a2131d93e7d8bd9 /include | |
parent | 483880c490b0fbd4e4be5a93f55947a42066f825 (diff) |
power: regulator: add driver for Dialog DA9063 PMIC
Add a driver for the regulators in the the DA9063 PMIC.
Robert Beckett: move regulator modes to header so board code can set
modes. Correct mode mask used in ldo_set_mode.
Add an option CONFIG_SPL_DM_REGULATOR_DA9063.
Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group>
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/power/da9063_pmic.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/power/da9063_pmic.h b/include/power/da9063_pmic.h index 9b0f76c04f..273a07ef41 100644 --- a/include/power/da9063_pmic.h +++ b/include/power/da9063_pmic.h @@ -305,4 +305,16 @@ #define DA9063_LDO_DRIVER "da9063_ldo" #define DA9063_BUCK_DRIVER "da9063_buck" +/* Regulator modes */ +enum { + DA9063_LDOMODE_SLEEP, + DA9063_LDOMODE_NORMAL +}; + +enum { + DA9063_BUCKMODE_SLEEP, + DA9063_BUCKMODE_SYNC, + DA9063_BUCKMODE_AUTO, +}; + #endif |