diff options
author | Christian Hohnstaedt <Christian.Hohnstaedt@wago.com> | 2019-02-22 11:38:54 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-02-22 18:16:18 +0300 |
commit | e5c8ba0635a81f90f51efd3d9a4c0c404e463d0f (patch) | |
tree | 0897ceae42b267efbba4835f9232407c729d7d58 /include/linux/mfd/tps65218.h | |
parent | bf1fc259e8a40b9eb059a161db0d6d3d6b8c94e4 (diff) | |
download | linux-e5c8ba0635a81f90f51efd3d9a4c0c404e463d0f.tar.xz |
regulator: tps65218: Add support for LS2
Re-use the "tps65218_pmic_*_current_limit()" functions of LS3
and calculate the different required bit-shift by counting the
trailing 0s in "struct regulator_desc.csel_mask"
Signed-off-by: Christian Hohnstaedt <Christian.Hohnstaedt@wago.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/mfd/tps65218.h')
-rw-r--r-- | include/linux/mfd/tps65218.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mfd/tps65218.h b/include/linux/mfd/tps65218.h index c204d9a79436..45cdcd0fee53 100644 --- a/include/linux/mfd/tps65218.h +++ b/include/linux/mfd/tps65218.h @@ -208,6 +208,7 @@ enum tps65218_regulator_id { /* LDOs */ TPS65218_LDO_1, /* LS's */ + TPS65218_LS_2, TPS65218_LS_3, }; @@ -218,7 +219,7 @@ enum tps65218_regulator_id { /* Number of LDO voltage regulators available */ #define TPS65218_NUM_LDO 1 /* Number of total LS current regulators available */ -#define TPS65218_NUM_LS 1 +#define TPS65218_NUM_LS 2 /* Number of total regulators available */ #define TPS65218_NUM_REGULATOR (TPS65218_NUM_DCDC + TPS65218_NUM_LDO \ + TPS65218_NUM_LS) |