aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Geis <pgwipeout@gmail.com>2018-07-24 09:25:40 -0400
committerMark Brown <broonie@kernel.org>2018-07-24 10:37:03 -0400
commitad66225dff3f30fece4f5133ea14058c95f4e29a (patch)
tree660e91856accd0606c08dce35252f53fadf8b3fa
parenta70a4694ed38fb68407c142db0f53722553bedea (diff)
regulator: Add sw2_sw4 voltage table to cpcap regulator.
SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware. Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra. Signed-off-by: Peter Geis <pgwipeout@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/cpcap-regulator.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/regulator/cpcap-regulator.c b/drivers/regulator/cpcap-regulator.c
index bd910fe123d9..c0b1e04bd90f 100644
--- a/drivers/regulator/cpcap-regulator.c
+++ b/drivers/regulator/cpcap-regulator.c
@@ -271,6 +271,29 @@ static struct regulator_ops cpcap_regulator_ops = {
271}; 271};
272 272
273static const unsigned int unknown_val_tbl[] = { 0, }; 273static const unsigned int unknown_val_tbl[] = { 0, };
274static const unsigned int sw2_sw4_val_tbl[] = { 612500, 625000, 637500,
275 650000, 662500, 675000,
276 687500, 700000, 712500,
277 725000, 737500, 750000,
278 762500, 775000, 787500,
279 800000, 812500, 825000,
280 837500, 850000, 862500,
281 875000, 887500, 900000,
282 912500, 925000, 937500,
283 950000, 962500, 975000,
284 987500, 1000000, 1012500,
285 1025000, 1037500, 1050000,
286 1062500, 1075000, 1087500,
287 1100000, 1112500, 1125000,
288 1137500, 1150000, 1162500,
289 1175000, 1187500, 1200000,
290 1212500, 1225000, 1237500,
291 1250000, 1262500, 1275000,
292 1287500, 1300000, 1312500,
293 1325000, 1337500, 1350000,
294 1362500, 1375000, 1387500,
295 1400000, 1412500, 1425000,
296 1437500, 1450000, 1462500, };
274static const unsigned int sw5_val_tbl[] = { 0, 5050000, }; 297static const unsigned int sw5_val_tbl[] = { 0, 5050000, };
275static const unsigned int vcam_val_tbl[] = { 2600000, 2700000, 2800000, 298static const unsigned int vcam_val_tbl[] = { 2600000, 2700000, 2800000,
276 2900000, }; 299 2900000, };