blob: 405044c3a32fca5c9ecdde31386884d95693f0ad [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hans de Goeded9ee84b2015-10-03 15:18:33 +02002/*
3 * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
4 *
5 * X-Powers AX Power Management IC support header
Hans de Goeded9ee84b2015-10-03 15:18:33 +02006 */
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
Jernej Skrabecfde828c2021-01-11 21:11:33 +010018#ifdef CONFIG_AXP305_POWER
19#include <axp305.h>
20#endif
Chen-Yu Tsaif1e66e72016-05-02 10:28:15 +080021#ifdef CONFIG_AXP809_POWER
22#include <axp809.h>
23#endif
vishnupatekar91bce9c2015-11-29 01:07:21 +080024#ifdef CONFIG_AXP818_POWER
25#include <axp818.h>
26#endif
Hans de Goeded9ee84b2015-10-03 15:18:33 +020027
28int axp_set_dcdc1(unsigned int mvolt);
29int axp_set_dcdc2(unsigned int mvolt);
30int axp_set_dcdc3(unsigned int mvolt);
31int axp_set_dcdc4(unsigned int mvolt);
32int axp_set_dcdc5(unsigned int mvolt);
33int axp_set_aldo1(unsigned int mvolt);
34int axp_set_aldo2(unsigned int mvolt);
35int axp_set_aldo3(unsigned int mvolt);
36int axp_set_aldo4(unsigned int mvolt);
Chen-Yu Tsai2e6911f2016-01-12 14:42:37 +080037int axp_set_dldo(int dldo_num, unsigned int mvolt);
Hans de Goeded9ee84b2015-10-03 15:18:33 +020038int axp_set_eldo(int eldo_num, unsigned int mvolt);
Chen-Yu Tsaid028fba2016-03-30 00:26:48 +080039int axp_set_fldo(int fldo_num, unsigned int mvolt);
Chen-Yu Tsai0e3efd32016-05-02 10:28:12 +080040int axp_set_sw(bool on);
Hans de Goeded9ee84b2015-10-03 15:18:33 +020041int axp_init(void);
42int axp_get_sid(unsigned int *sid);
43
44#endif