diff options
author | Bengt Jonsson <bengt.g.jonsson@stericsson.com> | 2012-01-13 10:20:36 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-06 12:46:33 -0500 |
commit | 992b133a5d85ced4ff0fbdab22e9196cf571e0c9 (patch) | |
tree | c8efb5f56e1f456026ef1a0319b2cf0177b5e951 /drivers/mfd | |
parent | 6b6fae2b890826c99f9e62cceec4f859c98ee575 (diff) |
mfd: Spawned db8500 regulators update
As drivers have progressed and got some more review we have
consequently moved things around:
- Some device drivers have changed name and some were wrong
from the beginning.
- We removed the dependency from some domains to the VAPE
domain - SIA MMDSP, SIA PIPE, SVA MMDSP and SVA PIPE power
domains are handled outside the framework while ESRAM12
and ESRAM34 are actually handled inside the PRCMU.
Reviewed-by: Rickard Andersson <rickard.andersson@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/db8500-prcmu.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 945932719327..13856392cb27 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c | |||
@@ -2687,19 +2687,17 @@ static struct regulator_consumer_supply db8500_vape_consumers[] = { | |||
2687 | REGULATOR_SUPPLY("vcore", "uart1"), | 2687 | REGULATOR_SUPPLY("vcore", "uart1"), |
2688 | REGULATOR_SUPPLY("vcore", "uart2"), | 2688 | REGULATOR_SUPPLY("vcore", "uart2"), |
2689 | REGULATOR_SUPPLY("v-ape", "nmk-ske-keypad.0"), | 2689 | REGULATOR_SUPPLY("v-ape", "nmk-ske-keypad.0"), |
2690 | REGULATOR_SUPPLY("v-hsi", "ste_hsi.0"), | ||
2690 | }; | 2691 | }; |
2691 | 2692 | ||
2692 | static struct regulator_consumer_supply db8500_vsmps2_consumers[] = { | 2693 | static struct regulator_consumer_supply db8500_vsmps2_consumers[] = { |
2693 | /* CG2900 and CW1200 power to off-chip peripherals */ | ||
2694 | REGULATOR_SUPPLY("gbf_1v8", "cg2900-uart.0"), | ||
2695 | REGULATOR_SUPPLY("wlan_1v8", "cw1200.0"), | ||
2696 | REGULATOR_SUPPLY("musb_1v8", "ab8500-usb.0"), | 2694 | REGULATOR_SUPPLY("musb_1v8", "ab8500-usb.0"), |
2697 | /* AV8100 regulator */ | 2695 | /* AV8100 regulator */ |
2698 | REGULATOR_SUPPLY("hdmi_1v8", "0-0070"), | 2696 | REGULATOR_SUPPLY("hdmi_1v8", "0-0070"), |
2699 | }; | 2697 | }; |
2700 | 2698 | ||
2701 | static struct regulator_consumer_supply db8500_b2r2_mcde_consumers[] = { | 2699 | static struct regulator_consumer_supply db8500_b2r2_mcde_consumers[] = { |
2702 | REGULATOR_SUPPLY("vsupply", "b2r2.0"), | 2700 | REGULATOR_SUPPLY("vsupply", "b2r2_bus"), |
2703 | REGULATOR_SUPPLY("vsupply", "mcde"), | 2701 | REGULATOR_SUPPLY("vsupply", "mcde"), |
2704 | }; | 2702 | }; |
2705 | 2703 | ||
@@ -2736,6 +2734,7 @@ static struct regulator_consumer_supply db8500_esram12_consumers[] = { | |||
2736 | static struct regulator_consumer_supply db8500_esram34_consumers[] = { | 2734 | static struct regulator_consumer_supply db8500_esram34_consumers[] = { |
2737 | REGULATOR_SUPPLY("v-esram34", "mcde"), | 2735 | REGULATOR_SUPPLY("v-esram34", "mcde"), |
2738 | REGULATOR_SUPPLY("esram34", "cm_control"), | 2736 | REGULATOR_SUPPLY("esram34", "cm_control"), |
2737 | REGULATOR_SUPPLY("lcla_esram", "dma40.0"), | ||
2739 | }; | 2738 | }; |
2740 | 2739 | ||
2741 | static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | 2740 | static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { |
@@ -2792,7 +2791,7 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2792 | }, | 2791 | }, |
2793 | }, | 2792 | }, |
2794 | [DB8500_REGULATOR_SWITCH_SVAMMDSP] = { | 2793 | [DB8500_REGULATOR_SWITCH_SVAMMDSP] = { |
2795 | .supply_regulator = "db8500-vape", | 2794 | /* dependency to u8500-vape is handled outside regulator framework */ |
2796 | .constraints = { | 2795 | .constraints = { |
2797 | .name = "db8500-sva-mmdsp", | 2796 | .name = "db8500-sva-mmdsp", |
2798 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2797 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
@@ -2808,7 +2807,7 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2808 | }, | 2807 | }, |
2809 | }, | 2808 | }, |
2810 | [DB8500_REGULATOR_SWITCH_SVAPIPE] = { | 2809 | [DB8500_REGULATOR_SWITCH_SVAPIPE] = { |
2811 | .supply_regulator = "db8500-vape", | 2810 | /* dependency to u8500-vape is handled outside regulator framework */ |
2812 | .constraints = { | 2811 | .constraints = { |
2813 | .name = "db8500-sva-pipe", | 2812 | .name = "db8500-sva-pipe", |
2814 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2813 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
@@ -2817,7 +2816,7 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2817 | .num_consumer_supplies = ARRAY_SIZE(db8500_svapipe_consumers), | 2816 | .num_consumer_supplies = ARRAY_SIZE(db8500_svapipe_consumers), |
2818 | }, | 2817 | }, |
2819 | [DB8500_REGULATOR_SWITCH_SIAMMDSP] = { | 2818 | [DB8500_REGULATOR_SWITCH_SIAMMDSP] = { |
2820 | .supply_regulator = "db8500-vape", | 2819 | /* dependency to u8500-vape is handled outside regulator framework */ |
2821 | .constraints = { | 2820 | .constraints = { |
2822 | .name = "db8500-sia-mmdsp", | 2821 | .name = "db8500-sia-mmdsp", |
2823 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2822 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
@@ -2832,7 +2831,7 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2832 | }, | 2831 | }, |
2833 | }, | 2832 | }, |
2834 | [DB8500_REGULATOR_SWITCH_SIAPIPE] = { | 2833 | [DB8500_REGULATOR_SWITCH_SIAPIPE] = { |
2835 | .supply_regulator = "db8500-vape", | 2834 | /* dependency to u8500-vape is handled outside regulator framework */ |
2836 | .constraints = { | 2835 | .constraints = { |
2837 | .name = "db8500-sia-pipe", | 2836 | .name = "db8500-sia-pipe", |
2838 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2837 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
@@ -2860,7 +2859,10 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2860 | .num_consumer_supplies = ARRAY_SIZE(db8500_b2r2_mcde_consumers), | 2859 | .num_consumer_supplies = ARRAY_SIZE(db8500_b2r2_mcde_consumers), |
2861 | }, | 2860 | }, |
2862 | [DB8500_REGULATOR_SWITCH_ESRAM12] = { | 2861 | [DB8500_REGULATOR_SWITCH_ESRAM12] = { |
2863 | .supply_regulator = "db8500-vape", | 2862 | /* |
2863 | * esram12 is set in retention and supplied by Vsafe when Vape is off, | ||
2864 | * no need to hold Vape | ||
2865 | */ | ||
2864 | .constraints = { | 2866 | .constraints = { |
2865 | .name = "db8500-esram12", | 2867 | .name = "db8500-esram12", |
2866 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2868 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
@@ -2875,7 +2877,10 @@ static struct regulator_init_data db8500_regulators[DB8500_NUM_REGULATORS] = { | |||
2875 | }, | 2877 | }, |
2876 | }, | 2878 | }, |
2877 | [DB8500_REGULATOR_SWITCH_ESRAM34] = { | 2879 | [DB8500_REGULATOR_SWITCH_ESRAM34] = { |
2878 | .supply_regulator = "db8500-vape", | 2880 | /* |
2881 | * esram34 is set in retention and supplied by Vsafe when Vape is off, | ||
2882 | * no need to hold Vape | ||
2883 | */ | ||
2879 | .constraints = { | 2884 | .constraints = { |
2880 | .name = "db8500-esram34", | 2885 | .name = "db8500-esram34", |
2881 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 2886 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |