aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2014-07-25 11:24:44 -0400
committerLee Jones <lee.jones@linaro.org>2014-07-28 03:09:10 -0400
commit5fc6c39653f1c34de3f2357d50ba5baff6b6e482 (patch)
tree996865d30355eac358cd8ae166dac11a2a2fc9bd /drivers/mfd
parent996c2d4f5834402daabd126bbbc55fd7683d558d (diff)
mfd: arizona: Map MICVDD from extcon device to the Arizona core
The extcon driver should be able to get its regulator against rather than against the main arizona device, we must add a supply mapping allowing the regulator to be located. This patch does so. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/arizona-core.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
index e0d415efb24d..cf3689f7e984 100644
--- a/drivers/mfd/arizona-core.c
+++ b/drivers/mfd/arizona-core.c
@@ -578,17 +578,21 @@ static const struct mfd_cell early_devs[] = {
578}; 578};
579 579
580static const char *wm5102_supplies[] = { 580static const char *wm5102_supplies[] = {
581 "MICVDD",
581 "DBVDD2", 582 "DBVDD2",
582 "DBVDD3", 583 "DBVDD3",
583 "CPVDD", 584 "CPVDD",
584 "SPKVDDL", 585 "SPKVDDL",
585 "SPKVDDR", 586 "SPKVDDR",
586 "MICVDD",
587}; 587};
588 588
589static const struct mfd_cell wm5102_devs[] = { 589static const struct mfd_cell wm5102_devs[] = {
590 { .name = "arizona-micsupp" }, 590 { .name = "arizona-micsupp" },
591 { .name = "arizona-extcon" }, 591 {
592 .name = "arizona-extcon",
593 .parent_supplies = wm5102_supplies,
594 .num_parent_supplies = 1, /* We only need MICVDD */
595 },
592 { .name = "arizona-gpio" }, 596 { .name = "arizona-gpio" },
593 { .name = "arizona-haptics" }, 597 { .name = "arizona-haptics" },
594 { .name = "arizona-pwm" }, 598 { .name = "arizona-pwm" },
@@ -601,7 +605,11 @@ static const struct mfd_cell wm5102_devs[] = {
601 605
602static const struct mfd_cell wm5110_devs[] = { 606static const struct mfd_cell wm5110_devs[] = {
603 { .name = "arizona-micsupp" }, 607 { .name = "arizona-micsupp" },
604 { .name = "arizona-extcon" }, 608 {
609 .name = "arizona-extcon",
610 .parent_supplies = wm5102_supplies,
611 .num_parent_supplies = 1, /* We only need MICVDD */
612 },
605 { .name = "arizona-gpio" }, 613 { .name = "arizona-gpio" },
606 { .name = "arizona-haptics" }, 614 { .name = "arizona-haptics" },
607 { .name = "arizona-pwm" }, 615 { .name = "arizona-pwm" },
@@ -621,7 +629,11 @@ static const char *wm8997_supplies[] = {
621 629
622static const struct mfd_cell wm8997_devs[] = { 630static const struct mfd_cell wm8997_devs[] = {
623 { .name = "arizona-micsupp" }, 631 { .name = "arizona-micsupp" },
624 { .name = "arizona-extcon" }, 632 {
633 .name = "arizona-extcon",
634 .parent_supplies = wm8997_supplies,
635 .num_parent_supplies = 1, /* We only need MICVDD */
636 },
625 { .name = "arizona-gpio" }, 637 { .name = "arizona-gpio" },
626 { .name = "arizona-haptics" }, 638 { .name = "arizona-haptics" },
627 { .name = "arizona-pwm" }, 639 { .name = "arizona-pwm" },