diff options
Diffstat (limited to 'include/linux/mfd/palmas.h')
-rw-r--r-- | include/linux/mfd/palmas.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h index 9b81b2bdc46b..1a8dd7afe084 100644 --- a/include/linux/mfd/palmas.h +++ b/include/linux/mfd/palmas.h | |||
@@ -34,6 +34,19 @@ | |||
34 | ((a) == PALMAS_CHIP_ID)) | 34 | ((a) == PALMAS_CHIP_ID)) |
35 | #define is_palmas_charger(a) ((a) == PALMAS_CHIP_CHARGER_ID) | 35 | #define is_palmas_charger(a) ((a) == PALMAS_CHIP_CHARGER_ID) |
36 | 36 | ||
37 | /** | ||
38 | * Palmas PMIC feature types | ||
39 | * | ||
40 | * PALMAS_PMIC_FEATURE_SMPS10_BOOST - used when the PMIC provides SMPS10_BOOST | ||
41 | * regulator. | ||
42 | * | ||
43 | * PALMAS_PMIC_HAS(b, f) - macro to check if a bandgap device is capable of a | ||
44 | * specific feature (above) or not. Return non-zero, if yes. | ||
45 | */ | ||
46 | #define PALMAS_PMIC_FEATURE_SMPS10_BOOST BIT(0) | ||
47 | #define PALMAS_PMIC_HAS(b, f) \ | ||
48 | ((b)->features & PALMAS_PMIC_FEATURE_ ## f) | ||
49 | |||
37 | struct palmas_pmic; | 50 | struct palmas_pmic; |
38 | struct palmas_gpadc; | 51 | struct palmas_gpadc; |
39 | struct palmas_resource; | 52 | struct palmas_resource; |
@@ -54,6 +67,7 @@ struct palmas { | |||
54 | /* Stored chip id */ | 67 | /* Stored chip id */ |
55 | int id; | 68 | int id; |
56 | 69 | ||
70 | unsigned int features; | ||
57 | /* IRQ Data */ | 71 | /* IRQ Data */ |
58 | int irq; | 72 | int irq; |
59 | u32 irq_mask; | 73 | u32 irq_mask; |