1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
5 * X-Powers AX Power Management IC support header
9 #ifdef CONFIG_AXP152_POWER
12 #ifdef CONFIG_AXP209_POWER
15 #ifdef CONFIG_AXP221_POWER
18 #ifdef CONFIG_AXP809_POWER
21 #ifdef CONFIG_AXP818_POWER
25 int axp_set_dcdc1(unsigned int mvolt);
26 int axp_set_dcdc2(unsigned int mvolt);
27 int axp_set_dcdc3(unsigned int mvolt);
28 int axp_set_dcdc4(unsigned int mvolt);
29 int axp_set_dcdc5(unsigned int mvolt);
30 int axp_set_aldo1(unsigned int mvolt);
31 int axp_set_aldo2(unsigned int mvolt);
32 int axp_set_aldo3(unsigned int mvolt);
33 int axp_set_aldo4(unsigned int mvolt);
34 int axp_set_dldo(int dldo_num, unsigned int mvolt);
35 int axp_set_eldo(int eldo_num, unsigned int mvolt);
36 int axp_set_fldo(int fldo_num, unsigned int mvolt);
37 int axp_set_sw(bool on);
39 int axp_get_sid(unsigned int *sid);