diff options
author | Ramakrishna Pallala <ramakrishna.pallala@intel.com> | 2015-04-02 15:19:47 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-04-09 05:26:15 -0400 |
commit | bdb01f78235537e6eee3bb8a985e2af00058c4db (patch) | |
tree | 2be309d5cbff22c337b9bb147adba51954d631fa /drivers/mfd | |
parent | 72715757880b36bdd7ff67f768a31324ee31c156 (diff) |
mfd: axp20x: Add support for extcon cell
This patch adds the mfd cell info for axp288 extcon device.
Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/axp20x.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 1386826f713d..d18029be6a78 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c | |||
@@ -290,6 +290,29 @@ static struct resource axp288_adc_resources[] = { | |||
290 | }, | 290 | }, |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static struct resource axp288_extcon_resources[] = { | ||
294 | { | ||
295 | .start = AXP288_IRQ_VBUS_FALL, | ||
296 | .end = AXP288_IRQ_VBUS_FALL, | ||
297 | .flags = IORESOURCE_IRQ, | ||
298 | }, | ||
299 | { | ||
300 | .start = AXP288_IRQ_VBUS_RISE, | ||
301 | .end = AXP288_IRQ_VBUS_RISE, | ||
302 | .flags = IORESOURCE_IRQ, | ||
303 | }, | ||
304 | { | ||
305 | .start = AXP288_IRQ_MV_CHNG, | ||
306 | .end = AXP288_IRQ_MV_CHNG, | ||
307 | .flags = IORESOURCE_IRQ, | ||
308 | }, | ||
309 | { | ||
310 | .start = AXP288_IRQ_BC_USB_CHNG, | ||
311 | .end = AXP288_IRQ_BC_USB_CHNG, | ||
312 | .flags = IORESOURCE_IRQ, | ||
313 | }, | ||
314 | }; | ||
315 | |||
293 | static struct resource axp288_charger_resources[] = { | 316 | static struct resource axp288_charger_resources[] = { |
294 | { | 317 | { |
295 | .start = AXP288_IRQ_OV, | 318 | .start = AXP288_IRQ_OV, |
@@ -345,6 +368,11 @@ static struct mfd_cell axp288_cells[] = { | |||
345 | .resources = axp288_adc_resources, | 368 | .resources = axp288_adc_resources, |
346 | }, | 369 | }, |
347 | { | 370 | { |
371 | .name = "axp288_extcon", | ||
372 | .num_resources = ARRAY_SIZE(axp288_extcon_resources), | ||
373 | .resources = axp288_extcon_resources, | ||
374 | }, | ||
375 | { | ||
348 | .name = "axp288_charger", | 376 | .name = "axp288_charger", |
349 | .num_resources = ARRAY_SIZE(axp288_charger_resources), | 377 | .num_resources = ARRAY_SIZE(axp288_charger_resources), |
350 | .resources = axp288_charger_resources, | 378 | .resources = axp288_charger_resources, |