Home
last modified time | relevance | path

Searched refs:pmic_bus_write (Results 1 – 8 of 8) sorted by relevance

/openbmc/u-boot/drivers/power/
H A Daxp221.c37 ret = pmic_bus_write(AXP221_DCDC1_CTRL, cfg); in axp_set_dcdc1()
59 ret = pmic_bus_write(AXP221_DCDC2_CTRL, cfg); in axp_set_dcdc2()
76 ret = pmic_bus_write(AXP221_DCDC3_CTRL, cfg); in axp_set_dcdc3()
93 ret = pmic_bus_write(AXP221_DCDC4_CTRL, cfg); in axp_set_dcdc4()
110 ret = pmic_bus_write(AXP221_DCDC5_CTRL, cfg); in axp_set_dcdc5()
127 ret = pmic_bus_write(AXP221_ALDO1_CTRL, cfg); in axp_set_aldo1()
144 ret = pmic_bus_write(AXP221_ALDO2_CTRL, cfg); in axp_set_aldo2()
161 ret = pmic_bus_write(AXP221_ALDO3_CTRL, cfg); in axp_set_aldo3()
229 ret = pmic_bus_write(AXP_GPIO0_CTRL, AXP_GPIO_CTRL_INPUT); in axp_init()
249 ret = pmic_bus_write(AXP221_PAGE, 1); in axp_get_sid()
[all …]
H A Daxp209.c55 rc = pmic_bus_write(AXP209_DCDC2_VOLTAGE, current); in axp_set_dcdc2()
72 rc = pmic_bus_write(AXP209_DCDC3_VOLTAGE, cfg); in axp_set_dcdc3()
95 rc = pmic_bus_write(AXP209_LDO24_VOLTAGE, reg); in axp_set_aldo2()
120 rc |= pmic_bus_write(AXP209_VRC_DCDC2_LDO3, cfg); in axp_set_aldo3()
155 rc = pmic_bus_write(AXP209_LDO3_VOLTAGE, cfg); in axp_set_aldo3()
183 rc = pmic_bus_write(AXP209_LDO24_VOLTAGE, reg); in axp_set_aldo4()
208 rc = pmic_bus_write(i, 0); in axp_init()
217 rc = pmic_bus_write(AXP_GPIO0_CTRL, AXP_GPIO_CTRL_INPUT); in axp_init()
221 rc = pmic_bus_write(AXP_GPIO1_CTRL, AXP_GPIO_CTRL_INPUT); in axp_init()
225 rc = pmic_bus_write(AXP_GPIO2_CTRL, AXP_GPIO_CTRL_INPUT); in axp_init()
[all …]
H A Daxp809.c38 ret = pmic_bus_write(AXP809_DCDC1_CTRL, cfg); in axp_set_dcdc1()
60 ret = pmic_bus_write(AXP809_DCDC2_CTRL, cfg); in axp_set_dcdc2()
77 ret = pmic_bus_write(AXP809_DCDC3_CTRL, cfg); in axp_set_dcdc3()
97 ret = pmic_bus_write(AXP809_DCDC5_CTRL, cfg); in axp_set_dcdc4()
114 ret = pmic_bus_write(AXP809_DCDC5_CTRL, cfg); in axp_set_dcdc5()
138 ret = pmic_bus_write(AXP809_ALDO1_CTRL + (aldo_num - 1), cfg); in axp_set_aldo()
179 ret = pmic_bus_write(AXP809_DLDO1_CTRL + (dldo_num - 1), cfg); in axp_set_dldo()
199 ret = pmic_bus_write(AXP809_ELDO1_CTRL + (eldo_num - 1), cfg); in axp_set_eldo()
224 pmic_bus_write(AXP809_SHUTDOWN, AXP809_SHUTDOWN_POWEROFF); in do_poweroff()
H A Daxp818.c38 ret = pmic_bus_write(AXP818_DCDC1_CTRL, cfg); in axp_set_dcdc1()
60 ret = pmic_bus_write(AXP818_DCDC2_CTRL, cfg); in axp_set_dcdc2()
82 ret = pmic_bus_write(AXP818_DCDC3_CTRL, cfg); in axp_set_dcdc3()
104 ret = pmic_bus_write(AXP818_DCDC5_CTRL, cfg); in axp_set_dcdc5()
125 ret = pmic_bus_write(AXP818_ALDO1_CTRL + (aldo_num - 1), cfg); in axp_set_aldo()
164 ret = pmic_bus_write(AXP818_DLDO1_CTRL + (dldo_num - 1), cfg); in axp_set_dldo()
185 ret = pmic_bus_write(AXP818_ELDO1_CTRL + (eldo_num - 1), cfg); in axp_set_eldo()
207 ret = pmic_bus_write(AXP818_FLDO1_CTRL + (fldo_num - 1), cfg); in axp_set_fldo()
260 pmic_bus_write(AXP818_SHUTDOWN, AXP818_SHUTDOWN_POWEROFF); in do_poweroff()
H A Daxp152.c35 rc = pmic_bus_write(AXP152_DCDC2_VOLTAGE, current); in axp_set_dcdc2()
46 return pmic_bus_write(AXP152_DCDC3_VOLTAGE, target); in axp_set_dcdc3()
53 return pmic_bus_write(AXP152_DCDC4_VOLTAGE, target); in axp_set_dcdc4()
60 return pmic_bus_write(AXP152_LDO2_VOLTAGE, target); in axp_set_aldo2()
84 pmic_bus_write(AXP152_SHUTDOWN, AXP152_POWEROFF); in do_poweroff()
/openbmc/u-boot/arch/arm/mach-sunxi/
H A Dpmic_bus.c78 int pmic_bus_write(u8 reg, u8 data) in pmic_bus_write() function
108 return pmic_bus_write(reg, val); in pmic_bus_setbits()
124 return pmic_bus_write(reg, val); in pmic_bus_clrbits()
/openbmc/u-boot/drivers/gpio/
H A Daxp_gpio.c50 return pmic_bus_write(reg, AXP_GPIO_CTRL_INPUT); in axp_gpio_direction_input()
76 return pmic_bus_write(reg, val ? AXP_GPIO_CTRL_OUTPUT_HIGH : in axp_gpio_direction_output()
134 return pmic_bus_write(reg, val ? AXP_GPIO_CTRL_OUTPUT_HIGH : in axp_gpio_set_value()
/openbmc/u-boot/arch/arm/include/asm/arch-sunxi/
H A Dpmic_bus.h13 int pmic_bus_write(u8 reg, u8 data);