blob: e26459fdd3bfdab64f23d309748d694e6285ab21 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hans de Goedebb930c32015-04-25 14:07:37 +02002/*
3 * (C) Copyright 2015 Hans de Goede <hdegoede@redhat.com>
4 *
5 * Sunxi PMIC bus access helpers header
Hans de Goedebb930c32015-04-25 14:07:37 +02006 */
7
8#ifndef _SUNXI_PMIC_BUS_H
Sam Edwardsd68c4612023-05-12 15:22:14 -06009#define _SUNXI_PMIC_BUS_H
Hans de Goedebb930c32015-04-25 14:07:37 +020010
Tom Rinib0f3f822024-05-01 19:30:20 -060011#include <linux/types.h>
12
Hans de Goedebb930c32015-04-25 14:07:37 +020013int pmic_bus_init(void);
14int pmic_bus_read(u8 reg, u8 *data);
15int pmic_bus_write(u8 reg, u8 data);
16int pmic_bus_setbits(u8 reg, u8 bits);
17int pmic_bus_clrbits(u8 reg, u8 bits);
18
19#endif