mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-09 04:45:16 +07:00
![]() Below is the equation in original code: tps65217_uv1_ranges: 0 ... 24: uV = vsel * 25000 + 900000; 25 ... 52: uV = (vsel - 24) * 50000 + 1500000; = (vsel - 25) * 50000 + 1550000; 53 ... 55: uV = (vsel - 52) * 100000 + 2900000; = (vsel - 53) * 100000 + 3000000; 56 ... 62: uV = 3300000; tps65217_uv2_ranges: 0 ... 8: uV = vsel * 50000 + 1500000; 9 ... 13: uV = (vsel - 8) * 100000 + 1900000; = (vsel - 9) * 100000 + 2000000; 14 ... 31: uV = (vsel - 13) * 50000 + 2400000; = (vsel - 14) * 50000 + 2450000; The voltage tables are composed of linear ranges. This patch converts this driver to use multiple linear ranges APIs. In original code, voltage range for DCDC1 is 900000 ~ 1800000 and voltage range for DCDC3 is 900000 ~ 1500000. This patch separates the range 25~52 in tps65217_uv1_ranges table to two linear ranges: 25~30 and 31~52. This change makes it possible to reuse the same linear_ranges table for DCDCx. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org> |
||
---|---|---|
.. | ||
abx500 | ||
arizona | ||
da9052 | ||
da9055 | ||
pcf50633 | ||
pm8xxx | ||
samsung | ||
syscon | ||
wm831x | ||
wm8350 | ||
wm8994 | ||
88pm80x.h | ||
88pm860x.h | ||
aat2870.h | ||
ab3100.h | ||
abx500.h | ||
adp5520.h | ||
as3711.h | ||
asic3.h | ||
core.h | ||
cros_ec_commands.h | ||
cros_ec.h | ||
da903x.h | ||
davinci_voicecodec.h | ||
db8500-prcmu.h | ||
dbx500-prcmu.h | ||
ds1wm.h | ||
ezx-pcap.h | ||
htc-egpio.h | ||
htc-pasic3.h | ||
intel_msic.h | ||
janz.h | ||
kempld.h | ||
lm3533.h | ||
lp8788-isink.h | ||
lp8788.h | ||
lpc_ich.h | ||
max8907.h | ||
max8925.h | ||
max8997-private.h | ||
max8997.h | ||
max8998-private.h | ||
max8998.h | ||
max77686-private.h | ||
max77686.h | ||
max77693-private.h | ||
max77693.h | ||
mc13xxx.h | ||
mc13783.h | ||
mc13892.h | ||
mcp.h | ||
menelaus.h | ||
palmas.h | ||
rc5t583.h | ||
rdc321x.h | ||
retu.h | ||
rtsx_common.h | ||
rtsx_pci.h | ||
si476x-core.h | ||
si476x-platform.h | ||
si476x-reports.h | ||
smsc.h | ||
sta2x11-mfd.h | ||
stmpe.h | ||
syscon.h | ||
t7l66xb.h | ||
tc3589x.h | ||
tc6387xb.h | ||
tc6393xb.h | ||
ti_am335x_tscadc.h | ||
ti_ssp.h | ||
tmio.h | ||
tps6105x.h | ||
tps6507x.h | ||
tps6586x.h | ||
tps65090.h | ||
tps65217.h | ||
tps65910.h | ||
tps65912.h | ||
tps80031.h | ||
twl4030-audio.h | ||
twl6040.h | ||
ucb1x00.h | ||
viperboard.h | ||
wl1273-core.h | ||
wm8400-audio.h | ||
wm8400-private.h | ||
wm8400.h |