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
19 #define AXP_PMIC_MODE_REG 0x3e
20 #define AXP_PMIC_MODE_I2C 0x00
21 #define AXP_PMIC_MODE_P2WI 0x3e
22 #define AXP_PMIC_MODE_RSB 0x7c
24 #define AXP_PMIC_PRI_DEVICE_ADDR 0x3a3
25 #define AXP_PMIC_PRI_RUNTIME_ADDR 0x2d
26 #define AXP_PMIC_SEC_DEVICE_ADDR 0x745
27 #define AXP_PMIC_SEC_RUNTIME_ADDR 0x3a
29 int axp_set_dcdc1(unsigned int mvolt);
30 int axp_set_dcdc2(unsigned int mvolt);
31 int axp_set_dcdc3(unsigned int mvolt);
32 int axp_set_dcdc4(unsigned int mvolt);
33 int axp_set_dcdc5(unsigned int mvolt);
34 int axp_set_aldo1(unsigned int mvolt);
35 int axp_set_aldo2(unsigned int mvolt);
36 int axp_set_aldo3(unsigned int mvolt);
37 int axp_set_aldo4(unsigned int mvolt);
38 int axp_set_dldo(int dldo_num, unsigned int mvolt);
39 int axp_set_eldo(int eldo_num, unsigned int mvolt);
40 int axp_set_fldo(int fldo_num, unsigned int mvolt);
41 int axp_set_sw(bool on);
43 int axp_get_sid(unsigned int *sid);