#ifndef __LINUX_MFD_RC5T583_H
#define __LINUX_MFD_RC5T583_H
#include <linux/mutex.h>
#include <linux/types.h>
#include <linux/regmap.h>
#define MAX_MAIN_INTERRUPT …
#define RC5T583_MAX_GPEDGE_REG …
#define RC5T583_MAX_INTERRUPT_EN_REGS …
#define RC5T583_MAX_INTERRUPT_MASK_REGS …
#define RC5T583_INT_EN_SYS1 …
#define RC5T583_INT_EN_SYS2 …
#define RC5T583_INT_EN_DCDC …
#define RC5T583_INT_EN_RTC …
#define RC5T583_INT_EN_ADC1 …
#define RC5T583_INT_EN_ADC2 …
#define RC5T583_INT_EN_ADC3 …
#define RC5T583_INTC_INTPOL …
#define RC5T583_INTC_INTEN …
#define RC5T583_INTC_INTMON …
#define RC5T583_INT_MON_GRP …
#define RC5T583_INT_MON_SYS1 …
#define RC5T583_INT_MON_SYS2 …
#define RC5T583_INT_MON_DCDC …
#define RC5T583_INT_MON_RTC …
#define RC5T583_INT_IR_SYS1 …
#define RC5T583_INT_IR_SYS2 …
#define RC5T583_INT_IR_DCDC …
#define RC5T583_INT_IR_RTC …
#define RC5T583_INT_IR_ADCL …
#define RC5T583_INT_IR_ADCH …
#define RC5T583_INT_IR_ADCEND …
#define RC5T583_INT_IR_GPIOR …
#define RC5T583_INT_IR_GPIOF …
#define RC5T583_SLPSEQ1 …
#define RC5T583_SLPSEQ2 …
#define RC5T583_SLPSEQ3 …
#define RC5T583_SLPSEQ4 …
#define RC5T583_SLPSEQ5 …
#define RC5T583_SLPSEQ6 …
#define RC5T583_SLPSEQ7 …
#define RC5T583_SLPSEQ8 …
#define RC5T583_SLPSEQ9 …
#define RC5T583_SLPSEQ10 …
#define RC5T583_SLPSEQ11 …
#define RC5T583_REG_DC0CTL …
#define RC5T583_REG_DC0DAC …
#define RC5T583_REG_DC0LATCTL …
#define RC5T583_REG_SR0CTL …
#define RC5T583_REG_DC1CTL …
#define RC5T583_REG_DC1DAC …
#define RC5T583_REG_DC1LATCTL …
#define RC5T583_REG_SR1CTL …
#define RC5T583_REG_DC2CTL …
#define RC5T583_REG_DC2DAC …
#define RC5T583_REG_DC2LATCTL …
#define RC5T583_REG_SR2CTL …
#define RC5T583_REG_DC3CTL …
#define RC5T583_REG_DC3DAC …
#define RC5T583_REG_DC3LATCTL …
#define RC5T583_REG_SR3CTL …
#define RC5T583_REG_LDOEN1 …
#define RC5T583_REG_LDOEN2 …
#define RC5T583_REG_LDODIS1 …
#define RC5T583_REG_LDODIS2 …
#define RC5T583_REG_LDO0DAC …
#define RC5T583_REG_LDO1DAC …
#define RC5T583_REG_LDO2DAC …
#define RC5T583_REG_LDO3DAC …
#define RC5T583_REG_LDO4DAC …
#define RC5T583_REG_LDO5DAC …
#define RC5T583_REG_LDO6DAC …
#define RC5T583_REG_LDO7DAC …
#define RC5T583_REG_LDO8DAC …
#define RC5T583_REG_LDO9DAC …
#define RC5T583_REG_DC0DAC_DS …
#define RC5T583_REG_DC1DAC_DS …
#define RC5T583_REG_DC2DAC_DS …
#define RC5T583_REG_DC3DAC_DS …
#define RC5T583_REG_LDO0DAC_DS …
#define RC5T583_REG_LDO1DAC_DS …
#define RC5T583_REG_LDO2DAC_DS …
#define RC5T583_REG_LDO3DAC_DS …
#define RC5T583_REG_LDO4DAC_DS …
#define RC5T583_REG_LDO5DAC_DS …
#define RC5T583_REG_LDO6DAC_DS …
#define RC5T583_REG_LDO7DAC_DS …
#define RC5T583_REG_LDO8DAC_DS …
#define RC5T583_REG_LDO9DAC_DS …
#define RC5T583_GPIO_IOSEL …
#define RC5T583_GPIO_PDEN …
#define RC5T583_GPIO_IOOUT …
#define RC5T583_GPIO_PGSEL …
#define RC5T583_GPIO_GPINV …
#define RC5T583_GPIO_GPDEB …
#define RC5T583_GPIO_GPEDGE1 …
#define RC5T583_GPIO_GPEDGE2 …
#define RC5T583_GPIO_EN_INT …
#define RC5T583_GPIO_MON_IOIN …
#define RC5T583_GPIO_GPOFUNC …
#define RC5T583_RTC_SEC …
#define RC5T583_RTC_MIN …
#define RC5T583_RTC_HOUR …
#define RC5T583_RTC_WDAY …
#define RC5T583_RTC_DAY …
#define RC5T583_RTC_MONTH …
#define RC5T583_RTC_YEAR …
#define RC5T583_RTC_ADJ …
#define RC5T583_RTC_AW_MIN …
#define RC5T583_RTC_AW_HOUR …
#define RC5T583_RTC_AW_WEEK …
#define RC5T583_RTC_AD_MIN …
#define RC5T583_RTC_AD_HOUR …
#define RC5T583_RTC_CTL1 …
#define RC5T583_RTC_CTL2 …
#define RC5T583_RTC_AY_MIN …
#define RC5T583_RTC_AY_HOUR …
#define RC5T583_RTC_AY_DAY …
#define RC5T583_RTC_AY_MONTH …
#define RC5T583_RTC_AY_YEAR …
#define RC5T583_MAX_REG …
#define RC5T583_NUM_REGS …
enum { … };
enum { … };
enum { … };
enum { … };
enum { … };
struct rc5t583 { … };
struct rc5t583_platform_data { … };
static inline int rc5t583_write(struct device *dev, uint8_t reg, uint8_t val)
{ … }
static inline int rc5t583_read(struct device *dev, uint8_t reg, uint8_t *val)
{ … }
static inline int rc5t583_set_bits(struct device *dev, unsigned int reg,
unsigned int bit_mask)
{ … }
static inline int rc5t583_clear_bits(struct device *dev, unsigned int reg,
unsigned int bit_mask)
{ … }
static inline int rc5t583_update(struct device *dev, unsigned int reg,
unsigned int val, unsigned int mask)
{ … }
int rc5t583_ext_power_req_config(struct device *dev, int deepsleep_id,
int ext_pwr_req, int deepsleep_slot_nr);
int rc5t583_irq_init(struct rc5t583 *rc5t583, int irq, int irq_base);
int rc5t583_irq_exit(struct rc5t583 *rc5t583);
#endif