#include <linux/module.h>
#include <linux/platform_data/isl9305.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/of_regulator.h>
#define ISL9305_DCD1OUT 0x0
#define ISL9305_DCD2OUT 0x1
#define ISL9305_LDO1OUT 0x2
#define ISL9305_LDO2OUT 0x3
#define ISL9305_DCD_PARAMETER 0x4
#define ISL9305_SYSTEM_PARAMETER 0x5
#define ISL9305_DCD_SRCTL 0x6
#define ISL9305_MAX_REG ISL9305_DCD_SRCTL
#define ISL9305_DCD_PHASE 0x40
#define ISL9305_DCD2_ULTRA 0x20
#define ISL9305_DCD1_ULTRA 0x10
#define ISL9305_DCD2_BLD 0x08
#define ISL9305_DCD1_BLD 0x04
#define ISL9305_DCD2_MODE 0x02
#define ISL9305_DCD1_MODE 0x01
#define ISL9305_I2C_EN 0x40
#define ISL9305_DCDPOR_MASK 0x30
#define ISL9305_LDO2_EN 0x08
#define ISL9305_LDO1_EN 0x04
#define ISL9305_DCD2_EN 0x02
#define ISL9305_DCD1_EN 0x01
#define ISL9305_DCD2SR_MASK 0xc0
#define ISL9305_DCD1SR_MASK 0x07