summaryrefslogtreecommitdiff
path: root/src/drivers/xpowers/axp209/axp209.h
blob: 1d369f590cb4a28a14465a1536228df9c9165773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * 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>

#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);