summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-sunxi/pmic_bus.h
blob: 9c4372a8810aa25dc78a1e203d819e7bce624a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
 *
 * Sunxi PMIC bus access helpers header
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#ifndef _SUNXI_PMIC_BUS_H
#define _SUNXI_PMIS_BUS_H

int pmic_bus_init(void);
int pmic_bus_read(u8 reg, u8 *data);
int pmic_bus_write(u8 reg, u8 data);
int pmic_bus_setbits(u8 reg, u8 bits);
int pmic_bus_clrbits(u8 reg, u8 bits);

#endif