mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-31 22:39:08 +09:00
![Hans de Goede](/assets/img/avatar_default.png)
Move the register helpers used to access the registers via p2wi resp. rsb bus on the otherwise identical axp221 and axp223 pmics to a separate file, so that they can be used by the upcoming standalone axp gpio driver too. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Ian Campbell <ijc@hellion.org.uk>
19 lines
387 B
C
19 lines
387 B
C
/*
|
|
* (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
|