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