aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/sec-core.c
diff options
context:
space:
mode:
authorSangbeom Kim <sbkim73@samsung.com>2012-07-11 08:07:55 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-16 08:30:47 -0400
commit9b6d1343068d87f06c8dabf6628a30ea38082eb0 (patch)
tree0b00fea929094a4c2a81d6f7da08e8feefa8d5e6 /drivers/mfd/sec-core.c
parent54227bcf20fa0d8a0748c54747b9c39e8b16150d (diff)
mfd: Add samsung s2mps11 mfd support
This patch add Samsung S2MPS11 mfd driver. The S2MPS11 can support regulators and RTC. Signed-off-by: Sangbeom Kim <sbkim73@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/sec-core.c')
-rw-r--r--drivers/mfd/sec-core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 3a9a467534e3..2988efde11eb 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -54,6 +54,12 @@ static struct mfd_cell s5m8767_devs[] = {
54 }, 54 },
55}; 55};
56 56
57static struct mfd_cell s2mps11_devs[] = {
58 {
59 .name = "s2mps11-pmic",
60 },
61};
62
57int sec_reg_read(struct sec_pmic_dev *sec_pmic, u8 reg, void *dest) 63int sec_reg_read(struct sec_pmic_dev *sec_pmic, u8 reg, void *dest)
58{ 64{
59 return regmap_read(sec_pmic->regmap, reg, dest); 65 return regmap_read(sec_pmic->regmap, reg, dest);
@@ -145,6 +151,10 @@ static int sec_pmic_probe(struct i2c_client *i2c,
145 ret = mfd_add_devices(sec_pmic->dev, -1, s5m8767_devs, 151 ret = mfd_add_devices(sec_pmic->dev, -1, s5m8767_devs,
146 ARRAY_SIZE(s5m8767_devs), NULL, 0); 152 ARRAY_SIZE(s5m8767_devs), NULL, 0);
147 break; 153 break;
154 case S2MPS11X:
155 ret = mfd_add_devices(sec_pmic->dev, -1, s2mps11_devs,
156 ARRAY_SIZE(s2mps11_devs), NULL, 0);
157 break;
148 default: 158 default:
149 /* If this happens the probe function is problem */ 159 /* If this happens the probe function is problem */
150 BUG(); 160 BUG();