From c38f93d1100c099fcf968c21d291829c8d8db455 Mon Sep 17 00:00:00 2001 From: Alex Sarraf Date: Fri, 16 Sep 2016 10:26:47 -0700 Subject: input: misc: hbtp_input: Add support for multiple AFE Add support for both HI04 and JDI/Rohm with DDIC synchronization. Change-Id: Ib6bddd5f43b41660304d240db39f4e273ede3af0 Signed-off-by: Alex Sarraf --- include/uapi/linux/hbtp_input.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/hbtp_input.h b/include/uapi/linux/hbtp_input.h index 67692ed8e3b8..9173c2ab72ed 100644 --- a/include/uapi/linux/hbtp_input.h +++ b/include/uapi/linux/hbtp_input.h @@ -43,6 +43,17 @@ struct hbtp_input_key { __s32 value; }; +enum hbtp_afe_signal { + HBTP_AFE_SIGNAL_ON_RESUME, + HBTP_AFE_SIGNAL_ON_SUSPEND, +}; + +enum hbtp_afe_power_ctrl { + HBTP_AFE_POWER_ENABLE_SYNC, + HBTP_AFE_POWER_ENABLE_SYNC_SIGNAL, +}; + + /* ioctl */ #define HBTP_INPUT_IOCTL_BASE 'T' #define HBTP_SET_ABSPARAM _IOW(HBTP_INPUT_IOCTL_BASE, 201, \ @@ -53,6 +64,10 @@ struct hbtp_input_key { enum hbtp_afe_power_cmd) #define HBTP_SET_KEYDATA _IOW(HBTP_INPUT_IOCTL_BASE, 204, \ struct hbtp_input_key) +#define HBTP_SET_SYNCSIGNAL _IOW(HBTP_INPUT_IOCTL_BASE, 205, \ + enum hbtp_afe_signal) +#define HBTP_SET_POWER_CTRL _IOW(HBTP_INPUT_IOCTL_BASE, 206, \ + enum hbtp_afe_power_ctrl) #endif /* _UAPI_HBTP_INPUT_H */ -- cgit v1.2.3