summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/tps65218.h
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2015-11-25 13:59:04 +0200
committerMark Brown <broonie@kernel.org>2015-11-25 12:25:26 +0000
commitc0ea88b890d67cff2667188f14189d8346e89a0f (patch)
treebacce165ae931e9e40e80a6c73b15eb539c31453 /include/linux/mfd/tps65218.h
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
downloadop-kernel-dev-c0ea88b890d67cff2667188f14189d8346e89a0f.zip
op-kernel-dev-c0ea88b890d67cff2667188f14189d8346e89a0f.tar.gz
regulator: tps65218: add support for LS3 current regulator
Add support for TPS65218 LS3 current regulator, which is capable of 4 current input limit modes: 100, 200, 500, and 1000 uA. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/mfd/tps65218.h')
-rw-r--r--include/linux/mfd/tps65218.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mfd/tps65218.h b/include/linux/mfd/tps65218.h
index 2f9b593..d58f3b5 100644
--- a/include/linux/mfd/tps65218.h
+++ b/include/linux/mfd/tps65218.h
@@ -200,6 +200,8 @@ enum tps65218_regulator_id {
TPS65218_DCDC_4,
TPS65218_DCDC_5,
TPS65218_DCDC_6,
+ /* LS's */
+ TPS65218_LS_3,
/* LDOs */
TPS65218_LDO_1,
};
@@ -210,8 +212,11 @@ enum tps65218_regulator_id {
#define TPS65218_NUM_DCDC 6
/* Number of LDO voltage regulators available */
#define TPS65218_NUM_LDO 1
+/* Number of total LS current regulators available */
+#define TPS65218_NUM_LS 1
/* Number of total regulators available */
-#define TPS65218_NUM_REGULATOR (TPS65218_NUM_DCDC + TPS65218_NUM_LDO)
+#define TPS65218_NUM_REGULATOR (TPS65218_NUM_DCDC + TPS65218_NUM_LDO \
+ + TPS65218_NUM_LS)
/* Define the TPS65218 IRQ numbers */
enum tps65218_irqs {
OpenPOWER on IntegriCloud