Skip to contentSkip to conversation

mfd: s2mps11: Add samsung s2mps11 mfd support

PATCH Applied Sangbeom Kim 1 participant 1 message Jul 11, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 4/7 mfd: s2mps11: Add samsung s2mps11 mfd support

This patch add Samsung S2MPS11 mfd driver.
The S2MPS11 can support regulators and RTC.

---
 drivers/mfd/sec-core.c              |   10 ++
 include/linux/mfd/samsung/core.h    |   10 ++
 include/linux/mfd/samsung/s2mps11.h |  196 +++++++++++++++++++++++++++++++++++
 3 files changed, 216 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/mfd/samsung/s2mps11.h
drivers/mfd/sec-core.c +10 -0
index 3a9a467..2988efd 100644
@@ -54,6 +54,12 @@ static struct mfd_cell s5m8767_devs[] = {
 	},
 };
 
+static struct mfd_cell s2mps11_devs[] = {
+	{
+		.name = "s2mps11-pmic",
+	},
+};
+
 int sec_reg_read(struct sec_pmic_dev *sec_pmic, u8 reg, void *dest)
 {
 	return regmap_read(sec_pmic->regmap, reg, dest);
@@ -145,6 +151,10 @@ static int sec_pmic_probe(struct i2c_client *i2c,
 		ret = mfd_add_devices(sec_pmic->dev, -1, s5m8767_devs,
 					ARRAY_SIZE(s5m8767_devs), NULL, 0);
 		break;
+	case S2MPS11X:
+		ret = mfd_add_devices(sec_pmic->dev, -1, s2mps11_devs,
+					ARRAY_SIZE(s2mps11_devs), NULL, 0);
+		break;
 	default:
 		/* If this happens the probe function is problem */
 		BUG();
include/linux/mfd/samsung/core.h +10 -0
index 97cf642..b0f6beb 100644
@@ -20,6 +20,7 @@ enum sec_device_type {
 	S5M8751X,
 	S5M8763X,
 	S5M8767X,
+	S2MPS11X,
 };
 
 /**
@@ -98,9 +99,18 @@ struct sec_platform_data {
 	int				buck4_default_idx;
 
 	int                             buck_ramp_delay;
+
+	int				buck2_ramp_delay;
+	int				buck34_ramp_delay;
+	int				buck5_ramp_delay;
+	int				buck16_ramp_delay;
+	int				buck7810_ramp_delay;
+	int				buck9_ramp_delay;
+
 	bool                            buck2_ramp_enable;
 	bool                            buck3_ramp_enable;
 	bool                            buck4_ramp_enable;
+	bool				buck6_ramp_enable;
 
 	int				buck2_init;
 	int				buck3_init;
include/linux/mfd/samsung/s2mps11.h new file +196 -0

196 lines not on this page · raw message

Signature · 1 line
1.7.1