Hans de Goede | bb930c3 | 2015-04-25 14:07:37 +0200 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com> | ||||
3 | * | ||||
4 | * Sunxi PMIC bus access helpers header | ||||
5 | * | ||||
6 | * SPDX-License-Identifier: GPL-2.0+ | ||||
7 | */ | ||||
8 | |||||
9 | #ifndef _SUNXI_PMIC_BUS_H | ||||
10 | #define _SUNXI_PMIS_BUS_H | ||||
11 | |||||
12 | int pmic_bus_init(void); | ||||
13 | int pmic_bus_read(u8 reg, u8 *data); | ||||
14 | int pmic_bus_write(u8 reg, u8 data); | ||||
15 | int pmic_bus_setbits(u8 reg, u8 bits); | ||||
16 | int pmic_bus_clrbits(u8 reg, u8 bits); | ||||
17 | |||||
18 | #endif |