summaryrefslogtreecommitdiff
path: root/include/linux/imx_rpmsg.h
diff options
context:
space:
mode:
authorFugang Duan <fugang.duan@nxp.com>2018-03-16 14:07:05 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:31:04 +0800
commitc27af720522fdac486fc8484afe2fcd5cf241f68 (patch)
tree5e5133077b69774dc80ad71fe1898b254d6ec31c /include/linux/imx_rpmsg.h
parent9fb65873a7e23701da6ee3a91a4a3ab598ec2cf3 (diff)
MLK-17837-01 input: misc: rpmsg_input: add rpmsg virtual sensor driver
NXP i.MX7ULP EVK boards all sensors connect with M4 core, A core has to conmunicate with sensors by virtual io bus like rpmsg bus. The driver implement the virtual sensor input driver to configure sensors active/idle/delay actions and report the sensors' event to user space. Supply below sysfs for user to enable/disable detector and counter, set poll delay: /sys/class/misc/step_counter/enable /sys/class/misc/step_detector/enable /sys/class/misc/step_counter/poll_delay Reviewed-by: Elven Wang <elven.wang@nxp.com> Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Diffstat (limited to 'include/linux/imx_rpmsg.h')
-rw-r--r--include/linux/imx_rpmsg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/imx_rpmsg.h b/include/linux/imx_rpmsg.h
index 8b448bd1c72f..cabb6d6e03ce 100644
--- a/include/linux/imx_rpmsg.h
+++ b/include/linux/imx_rpmsg.h
@@ -29,6 +29,7 @@
#define IMX_RPMSG_KEY 4
#define IMX_RPMSG_GPIO 5
#define IMX_RPMSG_RTC 6
+#define IMX_RPMSG_SENSOR 7
/* rpmsg version */
#define IMX_RMPSG_MAJOR 1
#define IMX_RMPSG_MINOR 0