summaryrefslogtreecommitdiff
path: root/src/drivers/xpowers/axp209/axp209.h
blob: c9cdd7efba972958c59474a1d1e597050b494dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Definitions for X-Powers AXP 209 Power Management Unit
 *
 * Copyright (C) 2013  Alexandru Gagniuc <mr.nuke.me@gmail.com>
 * Subject to the GNU GPL v2, or (at your option) any later version.
 */

#include <types.h>
#include "chip.h"

#define AXP209_I2C_ADDR (0x68 >> 1)

enum cb_err axp209_init(u8 bus);
enum cb_err axp209_set_dcdc2_voltage(u8 bus, u16 millivolts);
enum cb_err axp209_set_dcdc3_voltage(u8 bus, u16 millivolts);
enum cb_err axp209_set_ldo2_voltage(u8 bus, u16 millivolts);
enum cb_err axp209_set_ldo3_voltage(u8 bus, u16 millivolts);
enum cb_err axp209_set_ldo4_voltage(u8 bus, u16 millivolts);
enum cb_err axp209_set_voltages(u8 bus, const struct
				drivers_xpowers_axp209_config *cfg);