OSDN Git Service

regulator: spm-regulator: Add support for FTS426 type regulators
authorTirupathi Reddy <tirupath@codeaurora.org>
Fri, 28 Apr 2017 03:14:11 +0000 (08:44 +0530)
committerTirupathi Reddy <tirupath@codeaurora.org>
Mon, 5 Jun 2017 08:13:18 +0000 (13:43 +0530)
commit94296ec070c34a73ddc729d6521c88f3b8f7d714
treedcd6e1e58ebd03340ac41b1d3b71905e83080819
parenta62f42964d5606a6ef123f4608f6cb5241598c25
regulator: spm-regulator: Add support for FTS426 type regulators

Add support for PMIC FTSMPS 426 type regulators.  These have a
4 mV step size and a voltage control scheme consisting of two
8-bit registers defining a 16-bit voltage set point in units of
millivolts.

Also address the mode register configuration differences between
FTSMPS 426 type regulators and other regulators supported in
spm-regulator driver file.

CRs-Fixed: 2037603
Change-Id: Ide54c8c9dd8113ab4588979ec97915403b3ecab1
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
drivers/regulator/spm-regulator.c