summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/sec-core.c
diff options
context:
space:
mode:
authorSangbeom Kim <sbkim73@samsung.com>2012-07-11 21:07:55 +0900
committerSamuel Ortiz <sameo@linux.intel.com>2012-07-16 14:30:47 +0200
commit9b6d1343068d87f06c8dabf6628a30ea38082eb0 (patch)
tree0b00fea929094a4c2a81d6f7da08e8feefa8d5e6 /drivers/mfd/sec-core.c
parent54227bcf20fa0d8a0748c54747b9c39e8b16150d (diff)
downloadtalos-obmc-linux-9b6d1343068d87f06c8dabf6628a30ea38082eb0.tar.gz
talos-obmc-linux-9b6d1343068d87f06c8dabf6628a30ea38082eb0.zip
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[] = {
},
};
+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();
OpenPOWER on IntegriCloud