Hans de Goede | 6944aff | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com> |
| 3 | * |
| 4 | * X-Powers AX Power Management IC support header |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | #ifndef _AXP_PMIC_H_ |
| 9 | |
| 10 | #ifdef CONFIG_AXP152_POWER |
| 11 | #include <axp152.h> |
| 12 | #endif |
| 13 | #ifdef CONFIG_AXP209_POWER |
| 14 | #include <axp209.h> |
| 15 | #endif |
| 16 | #ifdef CONFIG_AXP221_POWER |
| 17 | #include <axp221.h> |
| 18 | #endif |
vishnupatekar | 813c737 | 2015-11-29 01:07:21 +0800 | [diff] [blame] | 19 | #ifdef CONFIG_AXP818_POWER |
| 20 | #include <axp818.h> |
| 21 | #endif |
Hans de Goede | 6944aff | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 22 | |
| 23 | int axp_set_dcdc1(unsigned int mvolt); |
| 24 | int axp_set_dcdc2(unsigned int mvolt); |
| 25 | int axp_set_dcdc3(unsigned int mvolt); |
| 26 | int axp_set_dcdc4(unsigned int mvolt); |
| 27 | int axp_set_dcdc5(unsigned int mvolt); |
| 28 | int axp_set_aldo1(unsigned int mvolt); |
| 29 | int axp_set_aldo2(unsigned int mvolt); |
| 30 | int axp_set_aldo3(unsigned int mvolt); |
| 31 | int axp_set_aldo4(unsigned int mvolt); |
Chen-Yu Tsai | 3517a27 | 2016-01-12 14:42:37 +0800 | [diff] [blame] | 32 | int axp_set_dldo(int dldo_num, unsigned int mvolt); |
Hans de Goede | 6944aff | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 33 | int axp_set_eldo(int eldo_num, unsigned int mvolt); |
Chen-Yu Tsai | 38491d9 | 2016-03-30 00:26:48 +0800 | [diff] [blame] | 34 | int axp_set_fldo(int fldo_num, unsigned int mvolt); |
Hans de Goede | 6944aff | 2015-10-03 15:18:33 +0200 | [diff] [blame] | 35 | int axp_init(void); |
| 36 | int axp_get_sid(unsigned int *sid); |
| 37 | |
| 38 | #endif |