summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZhou Jingyu <b02241@freescale.com>2011-05-13 16:09:11 +0800
committerAlex Gonzalez <alex.gonzalez@digi.com>2011-08-01 09:51:39 +0200
commitd62d81a109840b328487053ed7312151583c62b5 (patch)
treee94d4160b9c3e7f80c3d0ddcd4985c78d16470e9 /include
parentd670205d136bfc3a3c7eed22d3f3c557ed1c7e04 (diff)
ENGR00143396-1 Add DA9053 version detection
Add DA9053 version detection Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com> Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.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 */