Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 1 | /* |
Vikram Mulukutla | bc2e957 | 2011-11-04 03:41:38 -0700 | [diff] [blame] | 2 | * Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 14 | #include <linux/regulator/pm8xxx-regulator.h> |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 15 | |
Stepan Moskovchenko | 5a83dba | 2011-12-05 17:30:17 -0800 | [diff] [blame] | 16 | #include "board-8064.h" |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 17 | |
| 18 | #define VREG_CONSUMERS(_id) \ |
| 19 | static struct regulator_consumer_supply vreg_consumers_##_id[] |
| 20 | |
| 21 | /* |
| 22 | * Consumer specific regulator names: |
| 23 | * regulator name consumer dev_name |
| 24 | */ |
| 25 | VREG_CONSUMERS(L1) = { |
| 26 | REGULATOR_SUPPLY("8921_l1", NULL), |
| 27 | }; |
| 28 | VREG_CONSUMERS(L2) = { |
| 29 | REGULATOR_SUPPLY("8921_l2", NULL), |
Jeyaprakash Soundrapandian | f0d4d01 | 2012-01-16 15:12:20 -0800 | [diff] [blame] | 30 | REGULATOR_SUPPLY("mipi_csi_vdd", "4-001a"), |
| 31 | REGULATOR_SUPPLY("mipi_csi_vdd", "4-006c"), |
Ravishangar Kalyanam | c2fee31 | 2012-02-09 19:11:22 -0800 | [diff] [blame] | 32 | REGULATOR_SUPPLY("lvds_pll_vdda", "lvds.0"), |
| 33 | REGULATOR_SUPPLY("dsi1_pll_vdda", "mipi_dsi.1"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 34 | }; |
| 35 | VREG_CONSUMERS(L3) = { |
| 36 | REGULATOR_SUPPLY("8921_l3", NULL), |
Hemant Kumar | 6ddad59 | 2011-08-03 19:31:56 -0700 | [diff] [blame] | 37 | REGULATOR_SUPPLY("HSUSB_3p3", "msm_otg"), |
Manu Gautam | dccbca4 | 2011-11-08 15:13:38 +0530 | [diff] [blame] | 38 | REGULATOR_SUPPLY("HSUSB_3p3", "msm_ehci_host.0"), |
| 39 | REGULATOR_SUPPLY("HSUSB_3p3", "msm_ehci_host.1"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 40 | }; |
| 41 | VREG_CONSUMERS(L4) = { |
| 42 | REGULATOR_SUPPLY("8921_l4", NULL), |
Hemant Kumar | 6ddad59 | 2011-08-03 19:31:56 -0700 | [diff] [blame] | 43 | REGULATOR_SUPPLY("HSUSB_1p8", "msm_otg"), |
Manu Gautam | dccbca4 | 2011-11-08 15:13:38 +0530 | [diff] [blame] | 44 | REGULATOR_SUPPLY("HSUSB_1p8", "msm_ehci_host.0"), |
| 45 | REGULATOR_SUPPLY("HSUSB_1p8", "msm_ehci_host.1"), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 46 | REGULATOR_SUPPLY("iris_vddxo", "wcnss_wlan.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 47 | }; |
| 48 | VREG_CONSUMERS(L5) = { |
| 49 | REGULATOR_SUPPLY("8921_l5", NULL), |
Sahitya Tummala | b4d883f | 2011-08-23 10:44:51 +0530 | [diff] [blame] | 50 | REGULATOR_SUPPLY("sdc_vdd", "msm_sdcc.1"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 51 | }; |
| 52 | VREG_CONSUMERS(L6) = { |
| 53 | REGULATOR_SUPPLY("8921_l6", NULL), |
Sahitya Tummala | b4d883f | 2011-08-23 10:44:51 +0530 | [diff] [blame] | 54 | REGULATOR_SUPPLY("sdc_vdd", "msm_sdcc.3"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 55 | }; |
| 56 | VREG_CONSUMERS(L7) = { |
| 57 | REGULATOR_SUPPLY("8921_l7", NULL), |
Sahitya Tummala | b4d883f | 2011-08-23 10:44:51 +0530 | [diff] [blame] | 58 | REGULATOR_SUPPLY("sdc_vddp", "msm_sdcc.3"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 59 | }; |
| 60 | VREG_CONSUMERS(L8) = { |
| 61 | REGULATOR_SUPPLY("8921_l8", NULL), |
Jeyaprakash Soundrapandian | f0d4d01 | 2012-01-16 15:12:20 -0800 | [diff] [blame] | 62 | REGULATOR_SUPPLY("cam_vana", "4-001a"), |
| 63 | REGULATOR_SUPPLY("cam_vana", "4-006c"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 64 | }; |
| 65 | VREG_CONSUMERS(L9) = { |
| 66 | REGULATOR_SUPPLY("8921_l9", NULL), |
Anirudh Ghayal | 2917a5a | 2012-02-05 19:51:07 -0800 | [diff] [blame] | 67 | REGULATOR_SUPPLY("vdd", "3-0024"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 68 | }; |
| 69 | VREG_CONSUMERS(L10) = { |
| 70 | REGULATOR_SUPPLY("8921_l10", NULL), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 71 | REGULATOR_SUPPLY("iris_vddpa", "wcnss_wlan.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 72 | }; |
| 73 | VREG_CONSUMERS(L11) = { |
| 74 | REGULATOR_SUPPLY("8921_l11", NULL), |
Ravishangar Kalyanam | c2fee31 | 2012-02-09 19:11:22 -0800 | [diff] [blame] | 75 | REGULATOR_SUPPLY("dsi1_avdd", "mipi_dsi.1"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 76 | }; |
| 77 | VREG_CONSUMERS(L12) = { |
Jeyaprakash Soundrapandian | f0d4d01 | 2012-01-16 15:12:20 -0800 | [diff] [blame] | 78 | REGULATOR_SUPPLY("cam_vdig", "4-001a"), |
| 79 | REGULATOR_SUPPLY("cam_vdig", "4-006c"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 80 | REGULATOR_SUPPLY("8921_l12", NULL), |
| 81 | }; |
| 82 | VREG_CONSUMERS(L14) = { |
| 83 | REGULATOR_SUPPLY("8921_l14", NULL), |
| 84 | }; |
| 85 | VREG_CONSUMERS(L15) = { |
| 86 | REGULATOR_SUPPLY("8921_l15", NULL), |
| 87 | }; |
| 88 | VREG_CONSUMERS(L16) = { |
| 89 | REGULATOR_SUPPLY("8921_l16", NULL), |
Jeyaprakash Soundrapandian | f0d4d01 | 2012-01-16 15:12:20 -0800 | [diff] [blame] | 90 | REGULATOR_SUPPLY("cam_vaf", "4-001a"), |
| 91 | REGULATOR_SUPPLY("cam_vaf", "4-006c"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 92 | }; |
| 93 | VREG_CONSUMERS(L17) = { |
| 94 | REGULATOR_SUPPLY("8921_l17", NULL), |
| 95 | }; |
| 96 | VREG_CONSUMERS(L18) = { |
| 97 | REGULATOR_SUPPLY("8921_l18", NULL), |
| 98 | }; |
| 99 | VREG_CONSUMERS(L22) = { |
| 100 | REGULATOR_SUPPLY("8921_l22", NULL), |
| 101 | }; |
| 102 | VREG_CONSUMERS(L23) = { |
| 103 | REGULATOR_SUPPLY("8921_l23", NULL), |
Swaminathan Sathappan | 2316e08 | 2012-02-03 14:07:17 -0800 | [diff] [blame] | 104 | REGULATOR_SUPPLY("pll_vdd", "pil_qdsp6v4.1"), |
| 105 | REGULATOR_SUPPLY("pll_vdd", "pil_qdsp6v4.2"), |
| 106 | |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 107 | }; |
| 108 | VREG_CONSUMERS(L24) = { |
| 109 | REGULATOR_SUPPLY("8921_l24", NULL), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 110 | REGULATOR_SUPPLY("riva_vddmx", "wcnss_wlan.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 111 | }; |
| 112 | VREG_CONSUMERS(L25) = { |
| 113 | REGULATOR_SUPPLY("8921_l25", NULL), |
Swaminathan Sathappan | 2f51a75 | 2011-12-05 12:51:19 -0800 | [diff] [blame] | 114 | REGULATOR_SUPPLY("VDDD_CDC_D", "tabla-slim"), |
| 115 | REGULATOR_SUPPLY("CDC_VDDA_A_1P2V", "tabla-slim"), |
Swaminathan Sathappan | 2316e08 | 2012-02-03 14:07:17 -0800 | [diff] [blame] | 116 | REGULATOR_SUPPLY("VDDD_CDC_D", "tabla2x-slim"), |
| 117 | REGULATOR_SUPPLY("CDC_VDDA_A_1P2V", "tabla2x-slim"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 118 | }; |
| 119 | VREG_CONSUMERS(L26) = { |
| 120 | REGULATOR_SUPPLY("8921_l26", NULL), |
Matt Wagantall | b94b9a5 | 2012-02-02 21:59:54 -0800 | [diff] [blame] | 121 | REGULATOR_SUPPLY("core_vdd", "pil_qdsp6v4.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 122 | }; |
| 123 | VREG_CONSUMERS(L27) = { |
| 124 | REGULATOR_SUPPLY("8921_l27", NULL), |
Swaminathan Sathappan | 2316e08 | 2012-02-03 14:07:17 -0800 | [diff] [blame] | 125 | REGULATOR_SUPPLY("core_vdd", "pil_qdsp6v4.2"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 126 | }; |
| 127 | VREG_CONSUMERS(L28) = { |
| 128 | REGULATOR_SUPPLY("8921_l28", NULL), |
Swaminathan Sathappan | 2316e08 | 2012-02-03 14:07:17 -0800 | [diff] [blame] | 129 | REGULATOR_SUPPLY("core_vdd", "pil_qdsp6v4.1"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 130 | }; |
| 131 | VREG_CONSUMERS(S1) = { |
| 132 | REGULATOR_SUPPLY("8921_s1", NULL), |
| 133 | }; |
| 134 | VREG_CONSUMERS(S2) = { |
| 135 | REGULATOR_SUPPLY("8921_s2", NULL), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 136 | REGULATOR_SUPPLY("iris_vddrfa", "wcnss_wlan.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 137 | }; |
| 138 | VREG_CONSUMERS(S3) = { |
| 139 | REGULATOR_SUPPLY("8921_s3", NULL), |
Hemant Kumar | 6ddad59 | 2011-08-03 19:31:56 -0700 | [diff] [blame] | 140 | REGULATOR_SUPPLY("HSUSB_VDDCX", "msm_otg"), |
Manu Gautam | dccbca4 | 2011-11-08 15:13:38 +0530 | [diff] [blame] | 141 | REGULATOR_SUPPLY("HSUSB_VDDCX", "msm_ehci_host.0"), |
| 142 | REGULATOR_SUPPLY("HSUSB_VDDCX", "msm_ehci_host.1"), |
Hemant Kumar | a945b47 | 2012-01-25 15:08:06 -0800 | [diff] [blame] | 143 | REGULATOR_SUPPLY("HSIC_VDDCX", "msm_hsic_host"), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 144 | REGULATOR_SUPPLY("riva_vddcx", "wcnss_wlan.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 145 | }; |
| 146 | VREG_CONSUMERS(S4) = { |
| 147 | REGULATOR_SUPPLY("8921_s4", NULL), |
Sahitya Tummala | b4d883f | 2011-08-23 10:44:51 +0530 | [diff] [blame] | 148 | REGULATOR_SUPPLY("sdc_vccq", "msm_sdcc.1"), |
Swaminathan Sathappan | 2f51a75 | 2011-12-05 12:51:19 -0800 | [diff] [blame] | 149 | REGULATOR_SUPPLY("VDDIO_CDC", "tabla-slim"), |
| 150 | REGULATOR_SUPPLY("CDC_VDD_CP", "tabla-slim"), |
| 151 | REGULATOR_SUPPLY("CDC_VDDA_TX", "tabla-slim"), |
| 152 | REGULATOR_SUPPLY("CDC_VDDA_RX", "tabla-slim"), |
Swaminathan Sathappan | 2316e08 | 2012-02-03 14:07:17 -0800 | [diff] [blame] | 153 | REGULATOR_SUPPLY("VDDIO_CDC", "tabla2x-slim"), |
| 154 | REGULATOR_SUPPLY("CDC_VDD_CP", "tabla2x-slim"), |
| 155 | REGULATOR_SUPPLY("CDC_VDDA_TX", "tabla2x-slim"), |
| 156 | REGULATOR_SUPPLY("CDC_VDDA_RX", "tabla2x-slim"), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 157 | REGULATOR_SUPPLY("riva_vddpx", "wcnss_wlan.0"), |
Jing Lin | 21ed4de | 2012-02-05 15:53:28 -0800 | [diff] [blame] | 158 | REGULATOR_SUPPLY("vcc_i2c", "3-005b"), |
Anirudh Ghayal | 2917a5a | 2012-02-05 19:51:07 -0800 | [diff] [blame] | 159 | REGULATOR_SUPPLY("vcc_i2c", "3-0024"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 160 | }; |
| 161 | VREG_CONSUMERS(S5) = { |
| 162 | REGULATOR_SUPPLY("8921_s5", NULL), |
Vikram Mulukutla | bc2e957 | 2011-11-04 03:41:38 -0700 | [diff] [blame] | 163 | REGULATOR_SUPPLY("krait0", NULL), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 164 | }; |
| 165 | VREG_CONSUMERS(S6) = { |
| 166 | REGULATOR_SUPPLY("8921_s6", NULL), |
Vikram Mulukutla | bc2e957 | 2011-11-04 03:41:38 -0700 | [diff] [blame] | 167 | REGULATOR_SUPPLY("krait1", NULL), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 168 | }; |
| 169 | VREG_CONSUMERS(S7) = { |
| 170 | REGULATOR_SUPPLY("8921_s7", NULL), |
| 171 | }; |
| 172 | VREG_CONSUMERS(LVS1) = { |
| 173 | REGULATOR_SUPPLY("8921_lvs1", NULL), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 174 | REGULATOR_SUPPLY("iris_vddio", "wcnss_wlan.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 175 | }; |
| 176 | VREG_CONSUMERS(LVS2) = { |
| 177 | REGULATOR_SUPPLY("8921_lvs2", NULL), |
Subramanian Srinivasan | 04d2c83 | 2012-01-17 11:26:36 -0800 | [diff] [blame] | 178 | REGULATOR_SUPPLY("iris_vdddig", "wcnss_wlan.0"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 179 | }; |
| 180 | VREG_CONSUMERS(LVS3) = { |
| 181 | REGULATOR_SUPPLY("8921_lvs3", NULL), |
| 182 | }; |
| 183 | VREG_CONSUMERS(LVS4) = { |
| 184 | REGULATOR_SUPPLY("8921_lvs4", NULL), |
| 185 | }; |
| 186 | VREG_CONSUMERS(LVS5) = { |
| 187 | REGULATOR_SUPPLY("8921_lvs5", NULL), |
Jeyaprakash Soundrapandian | f0d4d01 | 2012-01-16 15:12:20 -0800 | [diff] [blame] | 188 | REGULATOR_SUPPLY("cam_vio", "4-001a"), |
| 189 | REGULATOR_SUPPLY("cam_vio", "4-006c"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 190 | }; |
| 191 | VREG_CONSUMERS(LVS6) = { |
| 192 | REGULATOR_SUPPLY("8921_lvs6", NULL), |
| 193 | }; |
| 194 | VREG_CONSUMERS(LVS7) = { |
| 195 | REGULATOR_SUPPLY("8921_lvs7", NULL), |
Matt Wagantall | 52dd062 | 2012-02-02 18:26:16 -0800 | [diff] [blame] | 196 | REGULATOR_SUPPLY("pll_vdd", "pil_riva"), |
Ravishangar Kalyanam | c2fee31 | 2012-02-09 19:11:22 -0800 | [diff] [blame] | 197 | REGULATOR_SUPPLY("lvds_vdda", "lvds.0"), |
| 198 | REGULATOR_SUPPLY("dsi1_vddio", "mipi_dsi.1"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 199 | }; |
| 200 | VREG_CONSUMERS(USB_OTG) = { |
| 201 | REGULATOR_SUPPLY("8921_usb_otg", NULL), |
Hemant Kumar | d86c488 | 2012-01-24 19:39:37 -0800 | [diff] [blame] | 202 | REGULATOR_SUPPLY("vbus_otg", "msm_otg"), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 203 | }; |
| 204 | VREG_CONSUMERS(HDMI_MVS) = { |
| 205 | REGULATOR_SUPPLY("8921_hdmi_mvs", NULL), |
| 206 | }; |
| 207 | VREG_CONSUMERS(NCP) = { |
| 208 | REGULATOR_SUPPLY("8921_ncp", NULL), |
| 209 | }; |
Jay Chokshi | 7805b5a | 2011-11-07 15:55:30 -0800 | [diff] [blame] | 210 | VREG_CONSUMERS(8821_S0) = { |
| 211 | REGULATOR_SUPPLY("8821_s0", NULL), |
Vikram Mulukutla | bc2e957 | 2011-11-04 03:41:38 -0700 | [diff] [blame] | 212 | REGULATOR_SUPPLY("krait2", NULL), |
Jay Chokshi | 7805b5a | 2011-11-07 15:55:30 -0800 | [diff] [blame] | 213 | }; |
| 214 | VREG_CONSUMERS(8821_S1) = { |
| 215 | REGULATOR_SUPPLY("8821_s1", NULL), |
Vikram Mulukutla | bc2e957 | 2011-11-04 03:41:38 -0700 | [diff] [blame] | 216 | REGULATOR_SUPPLY("krait3", NULL), |
Jay Chokshi | 7805b5a | 2011-11-07 15:55:30 -0800 | [diff] [blame] | 217 | }; |
David Collins | f0d0073 | 2012-01-25 15:46:50 -0800 | [diff] [blame] | 218 | VREG_CONSUMERS(EXT_5V) = { |
| 219 | REGULATOR_SUPPLY("ext_5v", NULL), |
| 220 | }; |
Jay Chokshi | 1de4f9d | 2012-02-07 16:11:31 -0800 | [diff] [blame] | 221 | VREG_CONSUMERS(EXT_MPP8) = { |
| 222 | REGULATOR_SUPPLY("ext_mpp8", NULL), |
| 223 | }; |
David Collins | f0d0073 | 2012-01-25 15:46:50 -0800 | [diff] [blame] | 224 | VREG_CONSUMERS(EXT_3P3V) = { |
| 225 | REGULATOR_SUPPLY("ext_3p3v", NULL), |
Stepan Moskovchenko | c71c979 | 2012-01-31 18:12:44 -0800 | [diff] [blame] | 226 | REGULATOR_SUPPLY("vdd_io", "spi0.2"), |
Hemant Kumar | 94e7da2 | 2012-02-03 16:52:29 -0800 | [diff] [blame] | 227 | REGULATOR_SUPPLY("mhl_ext_3p3v", "msm_otg"), |
Ravishangar Kalyanam | c2fee31 | 2012-02-09 19:11:22 -0800 | [diff] [blame] | 228 | REGULATOR_SUPPLY("lvds_vccs_3p3v", "lvds.0"), |
| 229 | REGULATOR_SUPPLY("dsi1_vccs_3p3v", "mipi_dsi.1"), |
David Collins | f0d0073 | 2012-01-25 15:46:50 -0800 | [diff] [blame] | 230 | }; |
David Collins | 390fc33 | 2012-02-07 14:38:16 -0800 | [diff] [blame] | 231 | VREG_CONSUMERS(EXT_TS_SW) = { |
| 232 | REGULATOR_SUPPLY("ext_ts_sw", NULL), |
Jing Lin | 21ed4de | 2012-02-05 15:53:28 -0800 | [diff] [blame] | 233 | REGULATOR_SUPPLY("vdd_ana", "3-005b"), |
David Collins | 390fc33 | 2012-02-07 14:38:16 -0800 | [diff] [blame] | 234 | }; |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 235 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 236 | #define PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, _modes, _ops, \ |
| 237 | _apply_uV, _pull_down, _always_on, _supply_regulator, \ |
| 238 | _system_uA, _enable_time, _reg_id) \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 239 | { \ |
| 240 | .init_data = { \ |
| 241 | .constraints = { \ |
| 242 | .valid_modes_mask = _modes, \ |
| 243 | .valid_ops_mask = _ops, \ |
| 244 | .min_uV = _min_uV, \ |
| 245 | .max_uV = _max_uV, \ |
| 246 | .input_uV = _max_uV, \ |
| 247 | .apply_uV = _apply_uV, \ |
| 248 | .always_on = _always_on, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 249 | .name = _name, \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 250 | }, \ |
| 251 | .num_consumer_supplies = \ |
| 252 | ARRAY_SIZE(vreg_consumers_##_id), \ |
| 253 | .consumer_supplies = vreg_consumers_##_id, \ |
| 254 | .supply_regulator = _supply_regulator, \ |
| 255 | }, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 256 | .id = _reg_id, \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 257 | .pull_down_enable = _pull_down, \ |
| 258 | .system_uA = _system_uA, \ |
| 259 | .enable_time = _enable_time, \ |
| 260 | } |
| 261 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 262 | #define PM8XXX_LDO(_id, _name, _always_on, _pull_down, _min_uV, _max_uV, \ |
| 263 | _enable_time, _supply_regulator, _system_uA, _reg_id) \ |
| 264 | PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 265 | | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE | \ |
| 266 | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE | \ |
| 267 | REGULATOR_CHANGE_DRMS, 0, _pull_down, _always_on, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 268 | _supply_regulator, _system_uA, _enable_time, _reg_id) |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 269 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 270 | #define PM8XXX_NLDO1200(_id, _name, _always_on, _pull_down, _min_uV, \ |
| 271 | _max_uV, _enable_time, _supply_regulator, _system_uA, _reg_id) \ |
| 272 | PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 273 | | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE | \ |
| 274 | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE | \ |
| 275 | REGULATOR_CHANGE_DRMS, 0, _pull_down, _always_on, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 276 | _supply_regulator, _system_uA, _enable_time, _reg_id) |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 277 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 278 | #define PM8XXX_SMPS(_id, _name, _always_on, _pull_down, _min_uV, _max_uV, \ |
| 279 | _enable_time, _supply_regulator, _system_uA, _reg_id) \ |
| 280 | PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 281 | | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE | \ |
| 282 | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE | \ |
| 283 | REGULATOR_CHANGE_DRMS, 0, _pull_down, _always_on, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 284 | _supply_regulator, _system_uA, _enable_time, _reg_id) |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 285 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 286 | #define PM8XXX_FTSMPS(_id, _name, _always_on, _pull_down, _min_uV, _max_uV, \ |
| 287 | _enable_time, _supply_regulator, _system_uA, _reg_id) \ |
| 288 | PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, REGULATOR_MODE_NORMAL, \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 289 | REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_STATUS \ |
| 290 | | REGULATOR_CHANGE_MODE, 0, _pull_down, _always_on, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 291 | _supply_regulator, _system_uA, _enable_time, _reg_id) |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 292 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 293 | #define PM8XXX_VS(_id, _name, _always_on, _pull_down, _enable_time, \ |
| 294 | _supply_regulator, _reg_id) \ |
| 295 | PM8XXX_VREG_INIT(_id, _name, 0, 0, 0, REGULATOR_CHANGE_STATUS, 0, \ |
| 296 | _pull_down, _always_on, _supply_regulator, 0, _enable_time, \ |
| 297 | _reg_id) |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 298 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 299 | #define PM8XXX_VS300(_id, _name, _always_on, _pull_down, _enable_time, \ |
| 300 | _supply_regulator, _reg_id) \ |
| 301 | PM8XXX_VREG_INIT(_id, _name, 0, 0, 0, REGULATOR_CHANGE_STATUS, 0, \ |
| 302 | _pull_down, _always_on, _supply_regulator, 0, _enable_time, \ |
| 303 | _reg_id) |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 304 | |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 305 | #define PM8XXX_NCP(_id, _name, _always_on, _min_uV, _max_uV, _enable_time, \ |
| 306 | _supply_regulator, _reg_id) \ |
| 307 | PM8XXX_VREG_INIT(_id, _name, _min_uV, _max_uV, 0, \ |
| 308 | REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_STATUS, 0, 0, \ |
| 309 | _always_on, _supply_regulator, 0, _enable_time, _reg_id) |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 310 | |
| 311 | /* Pin control initialization */ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 312 | #define PM8XXX_PC(_id, _name, _always_on, _pin_fn, _pin_ctrl, \ |
| 313 | _supply_regulator, _reg_id) \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 314 | { \ |
| 315 | .init_data = { \ |
| 316 | .constraints = { \ |
| 317 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, \ |
| 318 | .always_on = _always_on, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 319 | .name = _name, \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 320 | }, \ |
| 321 | .num_consumer_supplies = \ |
| 322 | ARRAY_SIZE(vreg_consumers_##_id##_PC), \ |
| 323 | .consumer_supplies = vreg_consumers_##_id##_PC, \ |
| 324 | .supply_regulator = _supply_regulator, \ |
| 325 | }, \ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 326 | .id = _reg_id, \ |
| 327 | .pin_fn = PM8XXX_VREG_PIN_FN_##_pin_fn, \ |
| 328 | .pin_ctrl = _pin_ctrl, \ |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 329 | } |
| 330 | |
David Collins | f0d0073 | 2012-01-25 15:46:50 -0800 | [diff] [blame] | 331 | #define GPIO_VREG(_id, _reg_name, _gpio_label, _gpio, _supply_regulator) \ |
| 332 | [GPIO_VREG_ID_##_id] = { \ |
| 333 | .init_data = { \ |
| 334 | .constraints = { \ |
| 335 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, \ |
| 336 | }, \ |
| 337 | .num_consumer_supplies = \ |
| 338 | ARRAY_SIZE(vreg_consumers_##_id), \ |
| 339 | .consumer_supplies = vreg_consumers_##_id, \ |
| 340 | .supply_regulator = _supply_regulator, \ |
| 341 | }, \ |
| 342 | .regulator_name = _reg_name, \ |
| 343 | .gpio_label = _gpio_label, \ |
| 344 | .gpio = _gpio, \ |
| 345 | } |
| 346 | |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 347 | #define SAW_VREG_INIT(_id, _name, _min_uV, _max_uV) \ |
| 348 | { \ |
| 349 | .constraints = { \ |
| 350 | .name = _name, \ |
| 351 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, \ |
| 352 | .min_uV = _min_uV, \ |
| 353 | .max_uV = _max_uV, \ |
| 354 | }, \ |
| 355 | .num_consumer_supplies = ARRAY_SIZE(vreg_consumers_##_id), \ |
| 356 | .consumer_supplies = vreg_consumers_##_id, \ |
| 357 | } |
| 358 | |
David Collins | 2782b5c | 2012-02-06 10:02:42 -0800 | [diff] [blame] | 359 | #define RPM_INIT(_id, _min_uV, _max_uV, _modes, _ops, _apply_uV, _default_uV, \ |
| 360 | _peak_uA, _avg_uA, _pull_down, _pin_ctrl, _freq, _pin_fn, \ |
| 361 | _force_mode, _power_mode, _state, _sleep_selectable, \ |
| 362 | _always_on, _supply_regulator, _system_uA) \ |
| 363 | { \ |
| 364 | .init_data = { \ |
| 365 | .constraints = { \ |
| 366 | .valid_modes_mask = _modes, \ |
| 367 | .valid_ops_mask = _ops, \ |
| 368 | .min_uV = _min_uV, \ |
| 369 | .max_uV = _max_uV, \ |
| 370 | .input_uV = _min_uV, \ |
| 371 | .apply_uV = _apply_uV, \ |
| 372 | .always_on = _always_on, \ |
| 373 | }, \ |
| 374 | .num_consumer_supplies = \ |
| 375 | ARRAY_SIZE(vreg_consumers_##_id), \ |
| 376 | .consumer_supplies = vreg_consumers_##_id, \ |
| 377 | .supply_regulator = _supply_regulator, \ |
| 378 | }, \ |
| 379 | .id = RPM_VREG_ID_PM8921_##_id, \ |
| 380 | .default_uV = _default_uV, \ |
| 381 | .peak_uA = _peak_uA, \ |
| 382 | .avg_uA = _avg_uA, \ |
| 383 | .pull_down_enable = _pull_down, \ |
| 384 | .pin_ctrl = _pin_ctrl, \ |
| 385 | .freq = RPM_VREG_FREQ_##_freq, \ |
| 386 | .pin_fn = _pin_fn, \ |
| 387 | .force_mode = _force_mode, \ |
| 388 | .power_mode = _power_mode, \ |
| 389 | .state = _state, \ |
| 390 | .sleep_selectable = _sleep_selectable, \ |
| 391 | .system_uA = _system_uA, \ |
| 392 | } |
| 393 | |
| 394 | #define RPM_LDO(_id, _always_on, _pd, _sleep_selectable, _min_uV, _max_uV, \ |
| 395 | _supply_regulator, _system_uA, _init_peak_uA) \ |
| 396 | RPM_INIT(_id, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \ |
| 397 | | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE \ |
| 398 | | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE \ |
| 399 | | REGULATOR_CHANGE_DRMS, 0, _max_uV, _init_peak_uA, 0, _pd, \ |
| 400 | RPM_VREG_PIN_CTRL_NONE, NONE, RPM_VREG_PIN_FN_8960_NONE, \ |
| 401 | RPM_VREG_FORCE_MODE_8960_NONE, RPM_VREG_POWER_MODE_8960_PWM, \ |
| 402 | RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \ |
| 403 | _supply_regulator, _system_uA) |
| 404 | |
| 405 | #define RPM_SMPS(_id, _always_on, _pd, _sleep_selectable, _min_uV, _max_uV, \ |
| 406 | _supply_regulator, _system_uA, _freq) \ |
| 407 | RPM_INIT(_id, _min_uV, _max_uV, REGULATOR_MODE_NORMAL \ |
| 408 | | REGULATOR_MODE_IDLE, REGULATOR_CHANGE_VOLTAGE \ |
| 409 | | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_MODE \ |
| 410 | | REGULATOR_CHANGE_DRMS, 0, _max_uV, _system_uA, 0, _pd, \ |
| 411 | RPM_VREG_PIN_CTRL_NONE, _freq, RPM_VREG_PIN_FN_8960_NONE, \ |
| 412 | RPM_VREG_FORCE_MODE_8960_NONE, RPM_VREG_POWER_MODE_8960_PWM, \ |
| 413 | RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \ |
| 414 | _supply_regulator, _system_uA) |
| 415 | |
| 416 | #define RPM_VS(_id, _always_on, _pd, _sleep_selectable, _supply_regulator) \ |
| 417 | RPM_INIT(_id, 0, 0, 0, REGULATOR_CHANGE_STATUS, 0, 0, 1000, 1000, _pd, \ |
| 418 | RPM_VREG_PIN_CTRL_NONE, NONE, RPM_VREG_PIN_FN_8960_NONE, \ |
| 419 | RPM_VREG_FORCE_MODE_8960_NONE, RPM_VREG_POWER_MODE_8960_PWM, \ |
| 420 | RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \ |
| 421 | _supply_regulator, 0) |
| 422 | |
| 423 | #define RPM_NCP(_id, _always_on, _sleep_selectable, _min_uV, _max_uV, \ |
| 424 | _supply_regulator, _freq) \ |
| 425 | RPM_INIT(_id, _min_uV, _max_uV, 0, REGULATOR_CHANGE_VOLTAGE \ |
| 426 | | REGULATOR_CHANGE_STATUS, 0, _max_uV, 1000, 1000, 0, \ |
| 427 | RPM_VREG_PIN_CTRL_NONE, _freq, RPM_VREG_PIN_FN_8960_NONE, \ |
| 428 | RPM_VREG_FORCE_MODE_8960_NONE, RPM_VREG_POWER_MODE_8960_PWM, \ |
| 429 | RPM_VREG_STATE_OFF, _sleep_selectable, _always_on, \ |
| 430 | _supply_regulator, 0) |
| 431 | |
| 432 | /* Pin control initialization */ |
| 433 | #define RPM_PC_INIT(_id, _always_on, _pin_fn, _pin_ctrl, _supply_regulator) \ |
| 434 | { \ |
| 435 | .init_data = { \ |
| 436 | .constraints = { \ |
| 437 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, \ |
| 438 | .always_on = _always_on, \ |
| 439 | }, \ |
| 440 | .num_consumer_supplies = \ |
| 441 | ARRAY_SIZE(vreg_consumers_##_id##_PC), \ |
| 442 | .consumer_supplies = vreg_consumers_##_id##_PC, \ |
| 443 | .supply_regulator = _supply_regulator, \ |
| 444 | }, \ |
| 445 | .id = RPM_VREG_ID_PM8921_##_id##_PC, \ |
| 446 | .pin_fn = RPM_VREG_PIN_FN_8960_##_pin_fn, \ |
| 447 | .pin_ctrl = _pin_ctrl, \ |
| 448 | } |
| 449 | |
David Collins | f0d0073 | 2012-01-25 15:46:50 -0800 | [diff] [blame] | 450 | /* GPIO regulator constraints */ |
| 451 | struct gpio_regulator_platform_data |
| 452 | apq8064_gpio_regulator_pdata[] __devinitdata = { |
| 453 | /* ID vreg_name gpio_label gpio supply */ |
| 454 | GPIO_VREG(EXT_5V, "ext_5v", "ext_5v_en", PM8921_MPP_PM_TO_SYS(7), NULL), |
| 455 | GPIO_VREG(EXT_3P3V, "ext_3p3v", "ext_3p3v_en", |
| 456 | APQ8064_EXT_3P3V_REG_EN_GPIO, NULL), |
David Collins | 390fc33 | 2012-02-07 14:38:16 -0800 | [diff] [blame] | 457 | GPIO_VREG(EXT_TS_SW, "ext_ts_sw", "ext_ts_sw_en", |
| 458 | PM8921_GPIO_PM_TO_SYS(23), "ext_3p3v"), |
Jay Chokshi | 1de4f9d | 2012-02-07 16:11:31 -0800 | [diff] [blame] | 459 | GPIO_VREG(EXT_MPP8, "ext_mpp8", "ext_mpp8_en", |
| 460 | PM8921_MPP_PM_TO_SYS(8), NULL), |
David Collins | f0d0073 | 2012-01-25 15:46:50 -0800 | [diff] [blame] | 461 | }; |
| 462 | |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 463 | /* SAW regulator constraints */ |
Jay Chokshi | 7805b5a | 2011-11-07 15:55:30 -0800 | [diff] [blame] | 464 | struct regulator_init_data msm8064_saw_regulator_pdata_8921_s5 = |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 465 | /* ID vreg_name min_uV max_uV */ |
Jay Chokshi | 7805b5a | 2011-11-07 15:55:30 -0800 | [diff] [blame] | 466 | SAW_VREG_INIT(S5, "8921_s5", 950000, 1150000); |
| 467 | struct regulator_init_data msm8064_saw_regulator_pdata_8921_s6 = |
| 468 | SAW_VREG_INIT(S6, "8921_s6", 950000, 1150000); |
| 469 | |
| 470 | struct regulator_init_data msm8064_saw_regulator_pdata_8821_s0 = |
| 471 | /* ID vreg_name min_uV max_uV */ |
| 472 | SAW_VREG_INIT(8821_S0, "8821_s0", 950000, 1150000); |
| 473 | struct regulator_init_data msm8064_saw_regulator_pdata_8821_s1 = |
| 474 | SAW_VREG_INIT(8821_S1, "8821_s1", 950000, 1150000); |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 475 | |
| 476 | /* PM8921 regulator constraints */ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 477 | struct pm8xxx_regulator_platform_data |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 478 | msm8064_pm8921_regulator_pdata[] __devinitdata = { |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 479 | /* |
David Collins | 2782b5c | 2012-02-06 10:02:42 -0800 | [diff] [blame] | 480 | * ID name always_on pd min_uV max_uV en_t supply |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 481 | * system_uA reg_ID |
| 482 | */ |
David Collins | 7501674 | 2011-12-02 15:04:25 -0800 | [diff] [blame] | 483 | PM8XXX_NLDO1200(L26, "8921_l26", 0, 1, 1050000, 1050000, 200, "8921_s7", |
David Collins | 2782b5c | 2012-02-06 10:02:42 -0800 | [diff] [blame] | 484 | 0, 1), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 485 | |
David Collins | 2782b5c | 2012-02-06 10:02:42 -0800 | [diff] [blame] | 486 | /* ID name always_on pd en_t supply reg_ID */ |
| 487 | PM8XXX_VS300(USB_OTG, "8921_usb_otg", 0, 0, 0, "ext_5v", 2), |
| 488 | PM8XXX_VS300(HDMI_MVS, "8921_hdmi_mvs", 0, 1, 0, "ext_5v", 3), |
| 489 | }; |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 490 | |
David Collins | 2782b5c | 2012-02-06 10:02:42 -0800 | [diff] [blame] | 491 | static struct rpm_regulator_init_data |
| 492 | apq8064_rpm_regulator_init_data[] __devinitdata = { |
| 493 | /* ID a_on pd ss min_uV max_uV supply sys_uA freq */ |
| 494 | RPM_SMPS(S1, 1, 1, 0, 1225000, 1225000, NULL, 100000, 3p20), |
| 495 | RPM_SMPS(S2, 0, 1, 0, 1300000, 1300000, NULL, 0, 1p60), |
| 496 | RPM_SMPS(S3, 0, 1, 1, 500000, 1150000, NULL, 100000, 4p80), |
| 497 | RPM_SMPS(S4, 1, 1, 0, 1800000, 1800000, NULL, 100000, 1p60), |
| 498 | RPM_SMPS(S7, 0, 1, 0, 1300000, 1300000, NULL, 100000, 3p20), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 499 | |
David Collins | 2782b5c | 2012-02-06 10:02:42 -0800 | [diff] [blame] | 500 | /* ID a_on pd ss min_uV max_uV supply sys_uA init_ip */ |
| 501 | RPM_LDO(L1, 1, 1, 0, 1100000, 1100000, "8921_s4", 0, 10000), |
| 502 | RPM_LDO(L2, 0, 1, 0, 1200000, 1200000, "8921_s4", 0, 0), |
| 503 | RPM_LDO(L3, 0, 1, 0, 3075000, 3075000, NULL, 0, 0), |
| 504 | RPM_LDO(L4, 1, 1, 0, 1800000, 1800000, NULL, 10000, 10000), |
| 505 | RPM_LDO(L5, 0, 1, 0, 2950000, 2950000, NULL, 0, 0), |
| 506 | RPM_LDO(L6, 0, 1, 0, 2950000, 2950000, NULL, 0, 0), |
| 507 | RPM_LDO(L7, 0, 1, 0, 1850000, 2950000, NULL, 0, 0), |
| 508 | RPM_LDO(L8, 0, 1, 0, 2800000, 2800000, NULL, 0, 0), |
| 509 | RPM_LDO(L9, 0, 1, 0, 2850000, 2850000, NULL, 0, 0), |
| 510 | RPM_LDO(L10, 0, 1, 0, 2900000, 2900000, NULL, 0, 0), |
| 511 | RPM_LDO(L11, 0, 1, 0, 3000000, 3000000, NULL, 0, 0), |
| 512 | RPM_LDO(L12, 0, 1, 0, 1200000, 1200000, "8921_s4", 0, 0), |
| 513 | RPM_LDO(L14, 0, 1, 0, 1800000, 1800000, NULL, 0, 0), |
| 514 | RPM_LDO(L15, 0, 1, 0, 1800000, 2950000, NULL, 0, 0), |
| 515 | RPM_LDO(L16, 0, 1, 0, 2800000, 2800000, NULL, 0, 0), |
| 516 | RPM_LDO(L17, 0, 1, 0, 2000000, 2000000, NULL, 0, 0), |
| 517 | RPM_LDO(L18, 0, 1, 0, 1300000, 1800000, "8921_s4", 0, 0), |
| 518 | RPM_LDO(L22, 0, 1, 0, 2600000, 2600000, NULL, 0, 0), |
| 519 | RPM_LDO(L23, 0, 1, 0, 1800000, 1800000, NULL, 0, 0), |
| 520 | RPM_LDO(L24, 0, 1, 1, 750000, 1150000, "8921_s1", 10000, 10000), |
| 521 | RPM_LDO(L25, 1, 1, 0, 1225000, 1225000, "8921_s1", 10000, 10000), |
| 522 | RPM_LDO(L27, 0, 1, 0, 1100000, 1100000, "8921_s7", 0, 0), |
| 523 | RPM_LDO(L28, 0, 1, 0, 1050000, 1050000, "8921_s7", 0, 0), |
| 524 | |
| 525 | /* ID a_on pd ss supply */ |
| 526 | RPM_VS(LVS1, 0, 1, 0, "8921_s4"), |
| 527 | RPM_VS(LVS2, 0, 1, 0, "8921_s1"), |
| 528 | RPM_VS(LVS3, 0, 1, 0, "8921_s4"), |
| 529 | RPM_VS(LVS4, 0, 1, 0, "8921_s4"), |
| 530 | RPM_VS(LVS5, 0, 1, 0, "8921_s4"), |
| 531 | RPM_VS(LVS6, 0, 1, 0, "8921_s4"), |
| 532 | RPM_VS(LVS7, 1, 1, 1, "8921_s4"), |
| 533 | |
| 534 | /* ID a_on ss min_uV max_uV supply freq */ |
| 535 | RPM_NCP(NCP, 0, 0, 1800000, 1800000, "8921_l6", 1p60), |
Jay Chokshi | ea67c62 | 2011-07-29 17:12:26 -0700 | [diff] [blame] | 536 | }; |
| 537 | |
| 538 | int msm8064_pm8921_regulator_pdata_len __devinitdata = |
| 539 | ARRAY_SIZE(msm8064_pm8921_regulator_pdata); |
David Collins | 2782b5c | 2012-02-06 10:02:42 -0800 | [diff] [blame] | 540 | |
| 541 | struct rpm_regulator_platform_data apq8064_rpm_regulator_pdata __devinitdata = { |
| 542 | .init_data = apq8064_rpm_regulator_init_data, |
| 543 | .num_regulators = ARRAY_SIZE(apq8064_rpm_regulator_init_data), |
| 544 | .version = RPM_VREG_VERSION_8960, |
| 545 | .vreg_id_vdd_mem = RPM_VREG_ID_PM8921_L24, |
| 546 | .vreg_id_vdd_dig = RPM_VREG_ID_PM8921_S3, |
| 547 | }; |