summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhou Jingyu <b02241@freescale.com>2011-05-13 16:09:11 +0800
committerZhou Jingyu <b02241@freescale.com>2011-05-17 21:27:20 -0500
commit646eb7820e727811efb2819809de16a6be9cdfa5 (patch)
tree35ad4954a055bc4719566f2d1fb2ac8c421d0574 /include
parent3792e89b22a864f3813f7fbd1a03bc31486c5395 (diff)
ENGR00143396-1 Add DA9053 version detection
Add DA9053 version detection Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/da9052/da9052.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mfd/da9052/da9052.h b/include/linux/mfd/da9052/da9052.h
index 0ff9693ee387..5680a83a3324 100644
--- a/include/linux/mfd/da9052/da9052.h
+++ b/include/linux/mfd/da9052/da9052.h
@@ -75,6 +75,9 @@
#define DA9052_SSC_I2C_REPEAT_WRITE_MODE 1
#define DA9052_SSC_I2C_WRITE_MODE DA9052_SSC_I2C_REPEAT_WRITE_MODE
+#define DA9053_VERSION_AA 1
+#define DA9053_VERSION_BB 2
+
struct da9052_ssc_msg {
unsigned char data;
unsigned char addr;
@@ -162,6 +165,7 @@ struct da9052 {
struct device *dev;
struct i2c_adapter *adapter;
unsigned char slave_addr;
+ int chip_version;
};
struct da9052_platform_data {
@@ -226,4 +230,5 @@ int eh_unregister_nb(struct da9052 *da9052, struct da9052_eh_nb *nb);
int da9052_manual_read(struct da9052 *da9052,
unsigned char channel);
void da9053_power_off(void);
+int da9053_get_chip_version(void);
#endif /* __LINUX_MFD_DA9052_DA9052_H */