summaryrefslogtreecommitdiff
path: root/include/linux/mfd/iqs62x.h
diff options
context:
space:
mode:
authorJeff LaBundy <jeff@labundy.com>2022-01-23 13:01:05 -0600
committerLee Jones <lee.jones@linaro.org>2022-02-14 13:07:22 +0000
commit1de785a58035031f81a43c42f355fa1db510dc36 (patch)
tree18f8025a6e87aad2f838da63a9eeb6e071bfd719 /include/linux/mfd/iqs62x.h
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff)
mfd: iqs62x: Provide device revision to sub-devices
Individual sub-devices may elect to make decisions based on the specific revision of silicon encountered at probe. This data is already read from the device, but is not retained. Pass this data on to the sub-devices by adding the software and hardware numbers (registers 0x01 and 0x02, respectively) to the iqs62x_core struct. Signed-off-by: Jeff LaBundy <jeff@labundy.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/iqs62x.h')
-rw-r--r--include/linux/mfd/iqs62x.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/iqs62x.h b/include/linux/mfd/iqs62x.h
index 5ced55eae11b..ffc86010af74 100644
--- a/include/linux/mfd/iqs62x.h
+++ b/include/linux/mfd/iqs62x.h
@@ -14,6 +14,11 @@
#define IQS624_PROD_NUM 0x43
#define IQS625_PROD_NUM 0x4E
+#define IQS620_HW_NUM_V0 0x82
+#define IQS620_HW_NUM_V1 IQS620_HW_NUM_V0
+#define IQS620_HW_NUM_V2 IQS620_HW_NUM_V0
+#define IQS620_HW_NUM_V3 0x92
+
#define IQS621_ALS_FLAGS 0x16
#define IQS622_ALS_FLAGS 0x14
@@ -129,6 +134,8 @@ struct iqs62x_core {
struct completion fw_done;
enum iqs62x_ui_sel ui_sel;
unsigned long event_cache;
+ u8 sw_num;
+ u8 hw_num;
};
extern const struct iqs62x_event_desc iqs62x_events[IQS62X_NUM_EVENTS];