1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * X-Powers AX Power Management IC support header
11 #ifdef CONFIG_AXP152_POWER
14 #ifdef CONFIG_AXP209_POWER
17 #ifdef CONFIG_AXP221_POWER
20 #ifdef CONFIG_AXP305_POWER
23 #ifdef CONFIG_AXP809_POWER
26 #ifdef CONFIG_AXP818_POWER
30 #define AXP_PMIC_MODE_REG 0x3e
31 #define AXP_PMIC_MODE_I2C 0x00
32 #define AXP_PMIC_MODE_P2WI 0x3e
33 #define AXP_PMIC_MODE_RSB 0x7c
35 #define AXP_PMIC_PRI_DEVICE_ADDR 0x3a3
36 #define AXP_PMIC_PRI_RUNTIME_ADDR 0x2d
37 #define AXP_PMIC_SEC_DEVICE_ADDR 0x745
38 #define AXP_PMIC_SEC_RUNTIME_ADDR 0x3a
40 int axp_set_dcdc1(unsigned int mvolt);
41 int axp_set_dcdc2(unsigned int mvolt);
42 int axp_set_dcdc3(unsigned int mvolt);
43 int axp_set_dcdc4(unsigned int mvolt);
44 int axp_set_dcdc5(unsigned int mvolt);
45 int axp_set_aldo1(unsigned int mvolt);
46 int axp_set_aldo2(unsigned int mvolt);
47 int axp_set_aldo3(unsigned int mvolt);
48 int axp_set_aldo4(unsigned int mvolt);
49 int axp_set_dldo(int dldo_num, unsigned int mvolt);
50 int axp_set_eldo(int eldo_num, unsigned int mvolt);
51 int axp_set_fldo(int fldo_num, unsigned int mvolt);
52 int axp_set_sw(bool on);
54 int axp_get_sid(unsigned int *sid);