diff options
author | Sumit Sharma <sumsharma@nvidia.com> | 2013-02-06 16:19:12 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-02-08 16:58:34 -0800 |
commit | a71cd7b2d7b3bead924f075ed3ec0ecaf706d11f (patch) | |
tree | 70267abac68056ea06cc3351e22561a4f471eebc /include | |
parent | 50d23244aaa4df6a2dee83cc7f9457d9f4aeb164 (diff) |
mfd: max77663: Added chip version reading support
Added support for reading chip version
Bug 1220546
Change-Id: I5a5a223ae2f027c9e1423b5c087c28b0fabb2645
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/197931
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/max77663-core.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/mfd/max77663-core.h b/include/linux/mfd/max77663-core.h index e53f2549d43f..eedbee85ff73 100644 --- a/include/linux/mfd/max77663-core.h +++ b/include/linux/mfd/max77663-core.h @@ -111,6 +111,17 @@ enum max77663_gpio_alt { GPIO_ALT_DISABLE, }; +enum max77663_chip_version { + MAX77663_DRV_NOT_DEFINED, + MAX77663_DRV_10, + MAX77663_DRV_12, + MAX77663_DRV_1A, + MAX77663_DRV_1B, + MAX77663_DRV_1E, + MAX77663_DRV_20, + MAX77663_DRV_22, + MAX77663_DRV_24, +}; /* * Flags */ @@ -154,6 +165,7 @@ int max77663_write(struct device *dev, u8 addr, void *values, u32 len, int max77663_set_bits(struct device *dev, u8 addr, u8 mask, u8 value, bool is_rtc); int max77663_gpio_set_alternate(int gpio, int alternate); +int max77663_read_chip_version(struct device *dev, u8 *val); #else static inline int max77663_read(struct device *dev, u8 addr, void *values, u32 len, bool is_rtc) @@ -177,6 +189,11 @@ static inline int max77663_gpio_set_alternate(int gpio, int alternate) { return 0; } + +static inline int max77663_read_chip_version(struct device *dev, u8 *val) +{ + return 0; +} #endif /* defined(CONFIG_MFD_MAX77663) */ #endif /* __LINUX_MFD_MAX77663_CORE_H__ */ |