mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-17 23:48:52 +09:00
![vishnupatekar](/assets/img/avatar_default.png)
AXP818 is rsb based PMIC and used on Allwinner A83T H8 Homlet dev board. It's registers are different and calculating reg config is different than that of earlier axp power ICs. DCDC1, DCDC2, DCDC3 and DCDC5 is implemented at the moment. all other voltages can be added subsequently. AXP datasheet is uploaded to wiki: http://linux-sunxi.org/File:AXP818_datasheet_Revision1.0.pdf Signed-off-by: Vishnu Patekar <vishnupatekar0510@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
41 lines
1020 B
C
41 lines
1020 B
C
/*
|
|
* (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
|
|
#ifdef CONFIG_AXP818_POWER
|
|
#include <axp818.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
|