aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorJ Keerthy <j-keerthy@ti.com>2013-06-19 01:57:48 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-20 05:29:18 -0400
commit1ffb0be3ad6186b421921de91092917f0b3ee3e2 (patch)
tree648c9f7c74880fbfb921a6b95c9e67ce92ae59d9 /include/linux/mfd
parentad522f4e351d020714959d9570baf3de7fcbad11 (diff)
mfd: palmas: Add SMPS10_BOOST feature
The SMPS10 regulator is not presesnt in all the variants of the PALMAS PMIC family. Hence adding a feature to distingush between them. Signed-off-by: J Keerthy <j-keerthy@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/palmas.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h
index 8f21daf62fb5..98058caa7aca 100644
--- a/include/linux/mfd/palmas.h
+++ b/include/linux/mfd/palmas.h
@@ -32,6 +32,19 @@
32 ((a) == PALMAS_CHIP_ID)) 32 ((a) == PALMAS_CHIP_ID))
33#define is_palmas_charger(a) ((a) == PALMAS_CHIP_CHARGER_ID) 33#define is_palmas_charger(a) ((a) == PALMAS_CHIP_CHARGER_ID)
34 34
35/**
36 * Palmas PMIC feature types
37 *
38 * PALMAS_PMIC_FEATURE_SMPS10_BOOST - used when the PMIC provides SMPS10_BOOST
39 * regulator.
40 *
41 * PALMAS_PMIC_HAS(b, f) - macro to check if a bandgap device is capable of a
42 * specific feature (above) or not. Return non-zero, if yes.
43 */
44#define PALMAS_PMIC_FEATURE_SMPS10_BOOST BIT(0)
45#define PALMAS_PMIC_HAS(b, f) \
46 ((b)->features & PALMAS_PMIC_FEATURE_ ## f)
47
35struct palmas_pmic; 48struct palmas_pmic;
36struct palmas_gpadc; 49struct palmas_gpadc;
37struct palmas_resource; 50struct palmas_resource;
@@ -46,6 +59,7 @@ struct palmas {
46 /* Stored chip id */ 59 /* Stored chip id */
47 int id; 60 int id;
48 61
62 unsigned int features;
49 /* IRQ Data */ 63 /* IRQ Data */
50 int irq; 64 int irq;
51 u32 irq_mask; 65 u32 irq_mask;