X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Faxp_pmic.h;h=10091d0bb278ce275cbe6b17ab4135f4a452cc19;hb=c859f2a77d98e0eced780775d668b4b76a97926c;hp=3b01c49cc935def3eb6a5d4a1585acbe396b5855;hpb=a5d4785ccb4ae8c5414490b14a9112a944318217;p=u-boot diff --git a/include/axp_pmic.h b/include/axp_pmic.h index 3b01c49cc9..10091d0bb2 100644 --- a/include/axp_pmic.h +++ b/include/axp_pmic.h @@ -1,9 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2015 Hans de Goede * * X-Powers AX Power Management IC support header - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _AXP_PMIC_H_ @@ -16,6 +15,9 @@ #ifdef CONFIG_AXP221_POWER #include #endif +#ifdef CONFIG_AXP809_POWER +#include +#endif #ifdef CONFIG_AXP818_POWER #include #endif @@ -29,11 +31,10 @@ int axp_set_aldo1(unsigned int mvolt); int axp_set_aldo2(unsigned int mvolt); int axp_set_aldo3(unsigned int mvolt); int axp_set_aldo4(unsigned int mvolt); -int axp_set_dldo1(unsigned int mvolt); -int axp_set_dldo2(unsigned int mvolt); -int axp_set_dldo3(unsigned int mvolt); -int axp_set_dldo4(unsigned int mvolt); +int axp_set_dldo(int dldo_num, unsigned int mvolt); int axp_set_eldo(int eldo_num, unsigned int mvolt); +int axp_set_fldo(int fldo_num, unsigned int mvolt); +int axp_set_sw(bool on); int axp_init(void); int axp_get_sid(unsigned int *sid);