summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2013-02-07 15:04:33 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:42:29 +0900
commit350d1f5a66df8d571f439bb004adca722266f793 (patch)
treee9f209414558eab1f9a539ab33560740f7062da3 /include
parent95a6be7409b38ec064017a2a1c3367816e170d74 (diff)
downloadlinux-3.10-350d1f5a66df8d571f439bb004adca722266f793.tar.gz
linux-3.10-350d1f5a66df8d571f439bb004adca722266f793.tar.bz2
linux-3.10-350d1f5a66df8d571f439bb004adca722266f793.zip
regulator: max77693: Add regulator driver for max77693
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/max77693-private.h14
-rw-r--r--include/linux/mfd/max77693.h27
2 files changed, 41 insertions, 0 deletions
diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
index 1aa4f13cdfa..e005fb2418d 100644
--- a/include/linux/mfd/max77693-private.h
+++ b/include/linux/mfd/max77693-private.h
@@ -238,6 +238,20 @@ enum max77693_haptic_reg {
MAX77693_HAPTIC_REG_END,
};
+/* MAX77693 CHG_CNFG_00 register */
+#define CHG_CNFG_00_MODE_SHIFT 0
+#define CHG_CNFG_00_CHG_SHIFT 0
+#define CHG_CNFG_00_OTG_SHIFT 1
+#define CHG_CNFG_00_BUCK_SHIFT 2
+#define CHG_CNFG_00_BOOST_SHIFT 3
+#define CHG_CNFG_00_DIS_MUIC_CTRL_SHIFT 5
+#define CHG_CNFG_00_MODE_MASK (0xf << CHG_CNFG_00_MODE_SHIFT)
+#define CHG_CNFG_00_CHG_MASK (1 << CHG_CNFG_00_CHG_SHIFT)
+#define CHG_CNFG_00_OTG_MASK (1 << CHG_CNFG_00_OTG_SHIFT)
+#define CHG_CNFG_00_BUCK_MASK (1 << CHG_CNFG_00_BUCK_SHIFT)
+#define CHG_CNFG_00_BOOST_MASK (1 << CHG_CNFG_00_BOOST_SHIFT)
+#define CHG_CNFG_00_DIS_MUIC_CTRL_MASK (1 << CHG_CNFG_00_DIS_MUIC_CTRL_SHIFT)
+
enum max77693_irq_source {
LED_INT = 0,
TOPSYS_INT,
diff --git a/include/linux/mfd/max77693.h b/include/linux/mfd/max77693.h
index 3109a6c5c94..77d82074b1d 100644
--- a/include/linux/mfd/max77693.h
+++ b/include/linux/mfd/max77693.h
@@ -30,6 +30,25 @@
#ifndef __LINUX_MFD_MAX77693_H
#define __LINUX_MFD_MAX77693_H
+/* MAX77686 regulator IDs */
+enum max77693_regulators {
+ MAX77693_ESAFEOUT1 = 0,
+ MAX77693_ESAFEOUT2,
+
+ MAX77693_CHARGER,
+
+ MAX77693_USBHOST,
+ MAX77693_USB,
+
+ MAX77693_REG_MAX,
+};
+
+struct max77693_regulator_data {
+ int id;
+ struct regulator_init_data *initdata;
+ struct device_node *of_node;
+};
+
struct max77693_reg_data {
u8 addr;
u8 data;
@@ -50,9 +69,17 @@ struct max77693_muic_platform_data {
};
struct max77693_platform_data {
+ /* IRQ */
+ int irq_base;
+ int irq_gpio;
int wakeup;
+ struct max77693_muic_data *muic;
+ bool (*is_default_uart_path_cp) (void);
+ struct max77693_regulator_data *regulators;
+ int num_regulators;
/* muic data */
struct max77693_muic_platform_data *muic_data;
};
+
#endif /* __LINUX_MFD_MAX77693_H */