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 | |
Tom Rini | b0f3f82 | 2024-05-01 19:30:20 -0600 | [diff] [blame] | 11 | #include <linux/types.h> |
| 12 | |
Hans de Goede | bb930c3 | 2015-04-25 14:07:37 +0200 | [diff] [blame] | 13 | int pmic_bus_init(void); |
| 14 | int pmic_bus_read(u8 reg, u8 *data); |
| 15 | int pmic_bus_write(u8 reg, u8 data); |
| 16 | int pmic_bus_setbits(u8 reg, u8 bits); |
| 17 | int pmic_bus_clrbits(u8 reg, u8 bits); |
| 18 | |
| 19 | #endif |