]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/axp_pmic.h
usb: composite: Move bitmap related operations to ./include/linux/bitmap.h
[thirdparty/u-boot.git] / include / axp_pmic.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
6944aff1
HG
2/*
3 * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
4 *
5 * X-Powers AX Power Management IC support header
6944aff1
HG
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
795857df
CYT
18#ifdef CONFIG_AXP809_POWER
19#include <axp809.h>
20#endif
813c7372 21#ifdef CONFIG_AXP818_POWER
22#include <axp818.h>
23#endif
6944aff1
HG
24
25int axp_set_dcdc1(unsigned int mvolt);
26int axp_set_dcdc2(unsigned int mvolt);
27int axp_set_dcdc3(unsigned int mvolt);
28int axp_set_dcdc4(unsigned int mvolt);
29int axp_set_dcdc5(unsigned int mvolt);
30int axp_set_aldo1(unsigned int mvolt);
31int axp_set_aldo2(unsigned int mvolt);
32int axp_set_aldo3(unsigned int mvolt);
33int axp_set_aldo4(unsigned int mvolt);
3517a27d 34int axp_set_dldo(int dldo_num, unsigned int mvolt);
6944aff1 35int axp_set_eldo(int eldo_num, unsigned int mvolt);
38491d9c 36int axp_set_fldo(int fldo_num, unsigned int mvolt);
15278ccb 37int axp_set_sw(bool on);
6944aff1
HG
38int axp_init(void);
39int axp_get_sid(unsigned int *sid);
40
41#endif