linux_dsm_epyc7002/include/linux/mfd
Axel Lin 6290d60656 regulator: tps65217: Convert to use linear ranges
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>
2013-08-30 15:26:03 +01:00
..
abx500 For the 3.11 merge we only have one new MFD driver for the Kontron PLD. 2013-07-10 11:10:27 -07:00
arizona For the 3.11 merge we only have one new MFD driver for the Kontron PLD. 2013-07-10 11:10:27 -07:00
da9052 mfd: da9052/53 lockup fix 2013-01-27 01:35:32 +01:00
da9055 This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
pcf50633
pm8xxx
samsung For the 3.11 merge we only have one new MFD driver for the Kontron PLD. 2013-07-10 11:10:27 -07:00
syscon ARM: clps711x: Add support for SYSCON driver 2013-06-11 15:47:45 -07:00
wm831x mfd: wm831x: Don't forward declare enum wm831x_auxadc 2013-03-12 09:29:20 +01:00
wm8350
wm8994 For the 3.11 merge we only have one new MFD driver for the Kontron PLD. 2013-07-10 11:10:27 -07:00
88pm80x.h mfd: 88pm800: Add regulator sub device 2013-06-18 09:41:12 +02:00
88pm860x.h
aat2870.h
ab3100.h
abx500.h ab8500_{bmdata,fg}: Add const attributes to some data arrays 2013-04-16 17:34:36 -07:00
adp5520.h
as3711.h
asic3.h
core.h
cros_ec_commands.h mfd: Add ChromeOS EC messages header 2013-04-05 11:20:13 +02:00
cros_ec.h mfd: Add ChromeOS EC implementation 2013-04-05 11:20:13 +02:00
da903x.h
davinci_voicecodec.h For the 3.11 merge we only have one new MFD driver for the Kontron PLD. 2013-07-10 11:10:27 -07:00
db8500-prcmu.h ARM: ux500: move PM-related PRCMU functions to machine 2013-04-08 13:57:53 +02:00
dbx500-prcmu.h mfd: db8500: Update BML clock register for db8580 2013-06-06 18:17:16 -07:00
ds1wm.h
ezx-pcap.h
htc-egpio.h
htc-pasic3.h
intel_msic.h
janz.h
kempld.h mfd: Kontron PLD mfd driver 2013-06-24 13:48:22 +02:00
lm3533.h
lp8788-isink.h
lp8788.h backlight: add new lp8788 backlight driver 2013-02-27 19:10:09 -08:00
lpc_ich.h
max8907.h
max8925.h mfd: max8925: Add irqdomain for dt 2013-02-14 00:23:00 +01:00
max8997-private.h extcon: max8997: Consolidate duplicate code for checking ADC/CHG cable type 2013-02-14 07:54:22 +09:00
max8997.h extcon: max8997: Use workqueue to check cable state after completing boot of platform 2013-02-14 07:54:49 +09:00
max8998-private.h mfd: max8998: Add support for Device Tree 2013-06-30 23:30:04 +02:00
max8998.h mfd: max8998: Add support for Device Tree 2013-06-30 23:30:04 +02:00
max77686-private.h
max77686.h
max77693-private.h regulator: max77693: Add max77693 regualtor driver. 2013-06-25 11:31:29 +01:00
max77693.h regulator: max77693: Add max77693 regualtor driver. 2013-06-25 11:31:29 +01:00
mc13xxx.h leds: leds-mc13783: Add MC13892 LED support 2013-06-20 16:21:34 -07:00
mc13783.h
mc13892.h
mcp.h
menelaus.h
palmas.h For the 3.11 merge we only have one new MFD driver for the Kontron PLD. 2013-07-10 11:10:27 -07:00
rc5t583.h
rdc321x.h
retu.h mfd: retu: Add Tahvo support 2013-04-19 00:45:20 +02:00
rtsx_common.h mfd: rtsx: Add clock divider hook 2013-01-27 01:30:20 +01:00
rtsx_pci.h mfd: rtsx: Add support for RTL8411B 2013-06-11 19:27:51 +02:00
si476x-core.h mfd: si476x: Don't use 0bNNN 2013-04-26 17:23:30 +02:00
si476x-platform.h mfd: si476x: Add header files and Kbuild plumbing 2013-04-19 18:38:13 +02:00
si476x-reports.h mfd: si476x: Add header files and Kbuild plumbing 2013-04-19 18:38:13 +02:00
smsc.h
sta2x11-mfd.h
stmpe.h mfd: support stmpe1801 18 bits enhanced port expander 2013-04-09 14:15:58 +02:00
syscon.h mfd: syscon: Add missing struct device_node declaration 2013-04-09 11:52:32 +02:00
t7l66xb.h
tc3589x.h
tc6387xb.h
tc6393xb.h
ti_am335x_tscadc.h input: ti_am335x_adc: use only FIFO0 and clean up a little 2013-06-12 18:50:22 +02:00
ti_ssp.h
tmio.h mmc: sdhi/tmio: switch to using dmaengine_slave_config() 2013-05-26 14:23:20 -04:00
tps6105x.h
tps6507x.h Input: tps6507x-ts - convert to polled input device infrastructure 2013-07-01 11:38:41 -07:00
tps6586x.h This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
tps65090.h For 3.10 we have a few new MFD drivers for: 2013-05-05 17:36:20 -07:00
tps65217.h regulator: tps65217: Convert to use linear ranges 2013-08-30 15:26:03 +01:00
tps65910.h
tps65912.h mfd: tps65912: Declare and use tps65912_irq_exit() 2013-03-12 09:25:50 +01:00
tps80031.h
twl4030-audio.h
twl6040.h mfd: twl6040: Update register bit definitions 2013-06-24 16:05:58 +01:00
ucb1x00.h
viperboard.h
wl1273-core.h
wm8400-audio.h
wm8400-private.h
wm8400.h