Message ID | d38d3fea-dc7d-09fe-651e-386b36befde1@gmail.com |
---|---|
State | Deferred |
Headers | show |
Series | Add support for cpcap regulators on Tegra devices. | expand |
On Fri, Jul 20, 2018 at 08:43:49PM -0400, Peter Geis wrote: > 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. This fails to apply with: Applying: Add sw2_sw4 voltage table to cpcap regulator. .git/rebase-apply/patch:37: trailing whitespace. 1437500, 1450000, error: corrupt patch at line 38 Patch failed at 0001 Add sw2_sw4 voltage table to cpcap regulator. Please check and resend.
On 07/23/2018 01:01 PM, Mark Brown wrote: > On Fri, Jul 20, 2018 at 08:43:49PM -0400, Peter Geis wrote: >> 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. > > This fails to apply with: > > Applying: Add sw2_sw4 voltage table to cpcap regulator. > .git/rebase-apply/patch:37: trailing whitespace. > 1437500, 1450000, > error: corrupt patch at line 38 > Patch failed at 0001 Add sw2_sw4 voltage table to cpcap regulator. > > Please check and resend. > Apologies, I accidentally converted all of the tabs to spaces. Re-sending both patches with tabulation intact. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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,
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(+) 2900000, };