aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2010-01-06 17:04:18 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2010-03-07 16:17:01 -0500
commitbbd51b1ff1bf57b9ed7f062486a415509968d4d9 (patch)
treea7a4270a34b8f3fa0661af088b139c8d9d8314d5 /include
parent0df883df8e8aea79b501f6262b595e66dec175dc (diff)
mfd: Split 88pm8607 driver
Create 88pm8607-i2c driver to support all I2C operation of 88PM8607. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/88pm8607.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/mfd/88pm8607.h b/include/linux/mfd/88pm8607.h
index f41b428d2ce..6e4dcdca02a 100644
--- a/include/linux/mfd/88pm8607.h
+++ b/include/linux/mfd/88pm8607.h
@@ -33,8 +33,8 @@ enum {
33 PM8607_ID_RG_MAX, 33 PM8607_ID_RG_MAX,
34}; 34};
35 35
36#define CHIP_ID (0x40) 36#define PM8607_ID (0x40) /* 8607 chip ID */
37#define CHIP_ID_MASK (0xF8) 37#define PM8607_ID_MASK (0xF8) /* 8607 chip ID mask */
38 38
39/* Interrupt Registers */ 39/* Interrupt Registers */
40#define PM8607_STATUS_1 (0x01) 40#define PM8607_STATUS_1 (0x01)
@@ -185,6 +185,7 @@ struct pm8607_chip {
185 struct device *dev; 185 struct device *dev;
186 struct mutex io_lock; 186 struct mutex io_lock;
187 struct i2c_client *client; 187 struct i2c_client *client;
188 struct i2c_device_id id;
188 189
189 int (*read)(struct pm8607_chip *chip, int reg, int bytes, void *dest); 190 int (*read)(struct pm8607_chip *chip, int reg, int bytes, void *dest);
190 int (*write)(struct pm8607_chip *chip, int reg, int bytes, void *src); 191 int (*write)(struct pm8607_chip *chip, int reg, int bytes, void *src);
@@ -214,4 +215,9 @@ extern int pm8607_bulk_write(struct pm8607_chip *, int, int,
214 unsigned char *); 215 unsigned char *);
215extern int pm8607_set_bits(struct pm8607_chip *, int, unsigned char, 216extern int pm8607_set_bits(struct pm8607_chip *, int, unsigned char,
216 unsigned char); 217 unsigned char);
217#endif /* __LINUX_MFD_88PM8607_H */ 218
219extern int pm860x_device_init(struct pm8607_chip *chip,
220 struct pm8607_platform_data *pdata);
221extern void pm860x_device_exit(struct pm8607_chip *chip);
222
223#endif /* __LINUX_MFD_88PM860X_H */