diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-08 21:20:26 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-04 19:26:02 +0300 |
commit | 29d7153ec384e072755e8951a8a33f29372f925c (patch) | |
tree | b4ff954c27a2e645593f01811dee4e2823d3bf5c /include/power/max77686_pmic.h | |
parent | 7abf178bb815df7d7e1f6c5db202e02ae7d9489f (diff) | |
download | u-boot-29d7153ec384e072755e8951a8a33f29372f925c.tar.xz |
power: Rename CONFIG_POWER to CONFIG_POWER_LEGACY
This option is used in pre-driver model code and much of it has never
been converted to driver model.
We want to add a new option to enable power support, so we can use a
simple rule in the Makefile. Rename this one, which is really about
a particular implementation of power.
Also update the pmic.h header file so it either includes the legacy
API or the driver model one.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/power/max77686_pmic.h')
-rw-r--r-- | include/power/max77686_pmic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/power/max77686_pmic.h b/include/power/max77686_pmic.h index 82fe3509a0..95ba61d953 100644 --- a/include/power/max77686_pmic.h +++ b/include/power/max77686_pmic.h @@ -154,7 +154,7 @@ enum { OPMODE_ON, }; -#ifdef CONFIG_POWER +#ifdef CONFIG_POWER_LEGACY int max77686_set_ldo_voltage(struct pmic *p, int ldo, ulong uV); int max77686_set_ldo_mode(struct pmic *p, int ldo, char opmode); int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV); |