Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Hans de Goede | d9ee84b | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com> |
| 4 | * |
| 5 | * X-Powers AX Power Management IC support header |
Hans de Goede | d9ee84b | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 6 | */ |
| 7 | #ifndef _AXP_PMIC_H_ |
| 8 | |
| 9 | #ifdef CONFIG_AXP152_POWER |
| 10 | #include <axp152.h> |
| 11 | #endif |
| 12 | #ifdef CONFIG_AXP209_POWER |
| 13 | #include <axp209.h> |
| 14 | #endif |
| 15 | #ifdef CONFIG_AXP221_POWER |
| 16 | #include <axp221.h> |
| 17 | #endif |
Chen-Yu Tsai | f1e66e7 | 2016-05-02 10:28:15 +0800 | [diff] [blame] | 18 | #ifdef CONFIG_AXP809_POWER |
| 19 | #include <axp809.h> |
| 20 | #endif |
vishnupatekar | 91bce9c | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 21 | #ifdef CONFIG_AXP818_POWER |
| 22 | #include <axp818.h> |
| 23 | #endif |
Hans de Goede | d9ee84b | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 24 | |
| 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); |
Chen-Yu Tsai | 2e6911f | 2016-01-12 14:42:37 +0800 | [diff] [blame] | 34 | int axp_set_dldo(int dldo_num, unsigned int mvolt); |
Hans de Goede | d9ee84b | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 35 | int axp_set_eldo(int eldo_num, unsigned int mvolt); |
Chen-Yu Tsai | d028fba | 2016-03-30 00:26:48 +0800 | [diff] [blame] | 36 | int axp_set_fldo(int fldo_num, unsigned int mvolt); |
Chen-Yu Tsai | 0e3efd3 | 2016-05-02 10:28:12 +0800 | [diff] [blame] | 37 | int axp_set_sw(bool on); |
Hans de Goede | d9ee84b | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 38 | int axp_init(void); |
| 39 | int axp_get_sid(unsigned int *sid); |
| 40 | |
| 41 | #endif |