linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Geis <pgwipeout@gmail.com>
To: lgirdwood@gmail.com, broonie@kernel.org
Cc: robh+dt@kernel.org, mark.rutland@arm.com,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-tegra@vger.kernel.org
Subject: [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator.
Date: Sat, 21 Jul 2018 07:23:31 -0400	[thread overview]
Message-ID: <17c10727-cab3-4736-281a-d4ace1cdbb82@gmail.com> (raw)

Re-sending due to email address typo.

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>
---
  drivers/regulator/cpcap-regulator.c | 23 +++++++++++++++++++++++
  1 file changed, 23 insertions(+)

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 = {
  };

  static const unsigned int unknown_val_tbl[] = { 0, };
+static const unsigned int sw2_sw4_val_tbl[] = { 612500, 625000, 637500,
+                                               650000, 662500, 675000,
+                                               687500, 700000, 712500,
+                                               725000, 737500, 750000,
+                                               762500, 775000, 787500,
+                                               800000, 812500, 825000,
+                                               837500, 850000, 862500,
+                                               875000, 887500, 900000,
+                                               912500, 925000, 937500,
+                                               950000, 962500, 975000,
+                                               987500, 1000000, 1012500,
+                                               1025000, 1037500, 1050000,
+                                               1062500, 1075000, 1087500,
+                                               1100000, 1112500, 1125000,
+                                               1137500, 1150000, 1162500,
+                                               1175000, 1187500, 1200000,
+                                               1212500, 1225000, 1237500,
+                                               1250000, 1262500, 1275000,
+                                               1287500, 1300000, 1312500,
+                                               1325000, 1337500, 1350000,
+                                               1362500, 1375000, 1387500,
+                                               1400000, 1412500, 1425000,
+                                               1437500, 1450000, 
1462500, };
  static const unsigned int sw5_val_tbl[] = { 0, 5050000, };
  static const unsigned int vcam_val_tbl[] = { 2600000, 2700000, 2800000,
                                              2900000, };
-- 
2.17.1

             reply	other threads:[~2018-07-21 11:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-21 11:23 Peter Geis [this message]
2018-07-23 10:25 ` [PATCH 1/2] Add sw2_sw4 voltage table to cpcap regulator Mark Brown
  -- strict thread matches above, loose matches on Subject: below --
2018-07-23 17:58 Peter Geis
2018-07-23 18:13 ` Mark Brown
2018-07-23 18:37   ` Peter Geis
2018-07-23 19:20     ` Dmitry Osipenko
2018-07-23 19:43       ` Peter Geis
2018-07-21  0:43 Peter Geis
2018-07-23 17:01 ` Mark Brown
2018-07-23 17:57   ` Peter Geis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17c10727-cab3-4736-281a-d4ace1cdbb82@gmail.com \
    --to=pgwipeout@gmail.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).