axp_pmic.h 1.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
 *
 * X-Powers AX Power Management IC support header
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */
#ifndef _AXP_PMIC_H_

#ifdef CONFIG_AXP152_POWER
#include <axp152.h>
#endif
#ifdef CONFIG_AXP209_POWER
#include <axp209.h>
#endif
#ifdef CONFIG_AXP221_POWER
#include <axp221.h>
#endif
19 20 21
#ifdef CONFIG_AXP809_POWER
#include <axp809.h>
#endif
22 23 24
#ifdef CONFIG_AXP818_POWER
#include <axp818.h>
#endif
25 26 27 28 29 30 31 32 33 34

int axp_set_dcdc1(unsigned int mvolt);
int axp_set_dcdc2(unsigned int mvolt);
int axp_set_dcdc3(unsigned int mvolt);
int axp_set_dcdc4(unsigned int mvolt);
int axp_set_dcdc5(unsigned int mvolt);
int axp_set_aldo1(unsigned int mvolt);
int axp_set_aldo2(unsigned int mvolt);
int axp_set_aldo3(unsigned int mvolt);
int axp_set_aldo4(unsigned int mvolt);
35
int axp_set_dldo(int dldo_num, unsigned int mvolt);
36
int axp_set_eldo(int eldo_num, unsigned int mvolt);
37
int axp_set_fldo(int fldo_num, unsigned int mvolt);
38
int axp_set_sw(bool on);
39 40 41 42
int axp_init(void);
int axp_get_sid(unsigned int *sid);

#endif