summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/max8998-private.h
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2010-09-27 14:32:24 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-10-29 00:30:09 +0200
commit509bd4764c110b89bb3d09a5b6621fd31dc58044 (patch)
treefe90cc3792c1e4a17d35301c3f0a62ef154a1787 /include/linux/mfd/max8998-private.h
parent9d92492fb753f01caa31dc502f69c189c0c22ad0 (diff)
downloadlinux-stable-509bd4764c110b89bb3d09a5b6621fd31dc58044.tar.gz
linux-stable-509bd4764c110b89bb3d09a5b6621fd31dc58044.tar.bz2
linux-stable-509bd4764c110b89bb3d09a5b6621fd31dc58044.zip
mfd: Support for ICs compliant with max8998
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/max8998-private.h')
-rw-r--r--include/linux/mfd/max8998-private.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mfd/max8998-private.h b/include/linux/mfd/max8998-private.h
index 170f665c7cdd..0ff42116d5dd 100644
--- a/include/linux/mfd/max8998-private.h
+++ b/include/linux/mfd/max8998-private.h
@@ -101,6 +101,13 @@ enum {
MAX8998_IRQ_NR,
};
+/* MAX8998 various variants */
+enum {
+ TYPE_MAX8998 = 0, /* Default */
+ TYPE_LP3974, /* National version of MAX8998 */
+ TYPE_LP3979, /* Added AVS */
+};
+
#define MAX8998_IRQ_DCINF_MASK (1 << 2)
#define MAX8998_IRQ_DCINR_MASK (1 << 3)
#define MAX8998_IRQ_JIGF_MASK (1 << 4)
@@ -123,6 +130,8 @@ enum {
#define MAX8998_IRQ_LOBAT1_MASK (1 << 0)
#define MAX8998_IRQ_LOBAT2_MASK (1 << 1)
+#define MAX8998_ENRAMP (1 << 4)
+
/**
* struct max8998_dev - max8998 master device for sub-drivers
* @dev: master device of the chip (can be used to access platform data)
@@ -135,6 +144,7 @@ enum {
* @ono: power onoff IRQ number for max8998
* @irq_masks_cur: currently active value
* @irq_masks_cache: cached hardware value
+ * @type: indicate which max8998 "variant" is used
*/
struct max8998_dev {
struct device *dev;
@@ -148,6 +158,7 @@ struct max8998_dev {
int ono;
u8 irq_masks_cur[MAX8998_NUM_IRQ_REGS];
u8 irq_masks_cache[MAX8998_NUM_IRQ_REGS];
+ int type;
};
int max8998_irq_init(struct max8998_dev *max8998);