blob: d789ad808623760b76ae57f6d4eba130879f57e5 [file] [log] [blame]
Hans de Goede6944aff2015-10-03 15:18:33 +02001/*
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
Chen-Yu Tsai795857d2016-05-02 10:28:15 +080019#ifdef CONFIG_AXP809_POWER
20#include <axp809.h>
21#endif
vishnupatekar813c7372015-11-29 01:07:21 +080022#ifdef CONFIG_AXP818_POWER
23#include <axp818.h>
24#endif
Hans de Goede6944aff2015-10-03 15:18:33 +020025
26int axp_set_dcdc1(unsigned int mvolt);
27int axp_set_dcdc2(unsigned int mvolt);
28int axp_set_dcdc3(unsigned int mvolt);
29int axp_set_dcdc4(unsigned int mvolt);
30int axp_set_dcdc5(unsigned int mvolt);
31int axp_set_aldo1(unsigned int mvolt);
32int axp_set_aldo2(unsigned int mvolt);
33int axp_set_aldo3(unsigned int mvolt);
34int axp_set_aldo4(unsigned int mvolt);
Chen-Yu Tsai3517a272016-01-12 14:42:37 +080035int axp_set_dldo(int dldo_num, unsigned int mvolt);
Hans de Goede6944aff2015-10-03 15:18:33 +020036int axp_set_eldo(int eldo_num, unsigned int mvolt);
Chen-Yu Tsai38491d92016-03-30 00:26:48 +080037int axp_set_fldo(int fldo_num, unsigned int mvolt);
Chen-Yu Tsai15278cc2016-05-02 10:28:12 +080038int axp_set_sw(bool on);
Hans de Goede6944aff2015-10-03 15:18:33 +020039int axp_init(void);
40int axp_get_sid(unsigned int *sid);
41
42#endif