Home
last modified time | relevance | path

Searched refs:aldo_num (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/power/
Daxp809.c122 int axp_set_aldo(int aldo_num, unsigned int mvolt) in axp_set_aldo() argument
127 if (aldo_num < 1 || aldo_num > 3) in axp_set_aldo()
130 if (mvolt == 0 && aldo_num == 3) in axp_set_aldo()
135 AXP809_OUTPUT_CTRL1_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()
138 ret = pmic_bus_write(AXP809_ALDO1_CTRL + (aldo_num - 1), cfg); in axp_set_aldo()
142 if (aldo_num == 3) in axp_set_aldo()
146 AXP809_OUTPUT_CTRL1_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()
Daxp818.c112 int axp_set_aldo(int aldo_num, unsigned int mvolt) in axp_set_aldo() argument
117 if (aldo_num < 1 || aldo_num > 3) in axp_set_aldo()
122 AXP818_OUTPUT_CTRL3_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()
125 ret = pmic_bus_write(AXP818_ALDO1_CTRL + (aldo_num - 1), cfg); in axp_set_aldo()
130 AXP818_OUTPUT_CTRL3_ALDO1_EN << (aldo_num - 1)); in axp_set_aldo()