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