diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-06-29 10:10:53 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:27 -0800 |
commit | e77321bf7fb2e7ea74cd21ae82ef7f8d3622c32e (patch) | |
tree | 9ae10b81cf1d70b28d8db04406d8815c5636b554 /include/linux/mfd/tps80031.h | |
parent | 27ad502db3f5187b442c4077090b63af7b2fcfb6 (diff) |
mfd: tps80031: Support for 80032 chip
Creating framework so that tps80031 driver can be instantiated with the
name of tps80032 also and it can provide the device/chip info to its
client.
bug 820885
Original-Change-Id: I1c40b7c6bec1f4abbc670aaa4317fad49e5d308a
Reviewed-on: http://git-master/r/38859
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Rebase-Id: R4953c404fb2af827b53a0173ac6a06806d2f2112
Diffstat (limited to 'include/linux/mfd/tps80031.h')
-rw-r--r-- | include/linux/mfd/tps80031.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/tps80031.h b/include/linux/mfd/tps80031.h index a5eb257919e0..f6435611580b 100644 --- a/include/linux/mfd/tps80031.h +++ b/include/linux/mfd/tps80031.h @@ -26,6 +26,12 @@ #include <linux/rtc.h> +/* Supported chips */ +enum chips { + TPS80031 = 0x00000001, + TPS80032 = 0x00000002, +}; + #define tps80031_rails(_name) "tps80031_"#_name enum { @@ -142,4 +148,6 @@ extern int tps80031_force_update(struct device *dev, int sid, int reg, uint8_t val, uint8_t mask); extern int tps80031_power_off(void); +extern unsigned long tps80031_get_chip_info(struct device *dev); + #endif /*__LINUX_MFD_TPS80031_H */ |