mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
sunxi: power: Unify axp pmic function names
Stop prefixing the axp functions for setting voltages, etc. with the model number, there ever is only one pmic driver built into u-boot, this allows simplifying the callers. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
401175220d
commit
6944aff1ca
12 changed files with 106 additions and 148 deletions
37
include/axp_pmic.h
Normal file
37
include/axp_pmic.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* (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
|
||||
|
||||
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);
|
||||
int axp_set_dldo1(unsigned int mvolt);
|
||||
int axp_set_dldo2(unsigned int mvolt);
|
||||
int axp_set_dldo3(unsigned int mvolt);
|
||||
int axp_set_dldo4(unsigned int mvolt);
|
||||
int axp_set_eldo(int eldo_num, unsigned int mvolt);
|
||||
int axp_init(void);
|
||||
int axp_get_sid(unsigned int *sid);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue