SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Functions | Variables
axp333.c File Reference
#include <io.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <common.h>
#include <log.h>
#include <pmu/axp.h>
Include dependency graph for axp333.c:

Functions

int pmu_axp333_init (sunxi_i2c_t *i2c_dev)
 
int pmu_axp333_set_vol (sunxi_i2c_t *i2c_dev, char *name, int set_vol, int onoff)
 
int pmu_axp333_get_vol (sunxi_i2c_t *i2c_dev, char *name)
 
void pmu_axp333_dump (sunxi_i2c_t *i2c_dev)
 

Variables

static axp_contrl_info axp_ctrl_tbl []
 

Function Documentation

◆ pmu_axp333_dump()

void pmu_axp333_dump ( sunxi_i2c_t i2c_dev)

◆ pmu_axp333_get_vol()

int pmu_axp333_get_vol ( sunxi_i2c_t i2c_dev,
char *  name 
)

◆ pmu_axp333_init()

int pmu_axp333_init ( sunxi_i2c_t i2c_dev)

◆ pmu_axp333_set_vol()

int pmu_axp333_set_vol ( sunxi_i2c_t i2c_dev,
char *  name,
int  set_vol,
int  onoff 
)

Variable Documentation

◆ axp_ctrl_tbl

axp_contrl_info axp_ctrl_tbl[]
static
Initial value:
= {
{ "dcdc1", 500, 3400, AXP333_DC1OUT_VOL, 0x7f, AXP333_DCDC_LDO_POWER_ON_OFF_CTL1, 0, 0,
{ {500, 1200, 10}, {1220, 1540, 20}, {1600, 3400, 100} } },
{ "dcdc2", 500, 1840, AXP333_DC2OUT_VOL, 0x7f, AXP333_DCDC_LDO_POWER_ON_OFF_CTL1, 1, 0,
{ {500, 1200, 10}, {1220, 1840, 20}, } },
{ "dcdc3", 500, 3400, AXP333_DC3OUT_VOL, 0x7f, AXP333_DCDC_LDO_POWER_ON_OFF_CTL1, 2, 0,
{ {500, 1200, 10}, {1220, 1840, 20}, {3100, 3400, 100} } },
{ "aldo1", 500, 3500, AXP333_ALDO1OUT_VOL, 0x1f, AXP333_DCDC_LDO_POWER_ON_OFF_CTL1, 3, 0,
{ {500, 3500, 100}, } },
{ "aldo2", 500, 3500, AXP333_ALDO2OUT_VOL, 0x1f, AXP333_DCDC_LDO_POWER_ON_OFF_CTL1, 4, 0,
{ {500, 3500, 100}, } },
}
#define AXP333_ALDO2OUT_VOL
Definition reg-axp333.h:20
#define AXP333_DC2OUT_VOL
Definition reg-axp333.h:16
#define AXP333_ALDO1OUT_VOL
Definition reg-axp333.h:19
#define AXP333_DC3OUT_VOL
Definition reg-axp333.h:17
#define AXP333_DC1OUT_VOL
Definition reg-axp333.h:15
#define AXP333_DCDC_LDO_POWER_ON_OFF_CTL1
Definition reg-axp333.h:13