Commit Graph

13 Commits

Author SHA1 Message Date
LuK1337 fc9499e55a Import latest Samsung release
* Package version: T713XXU2BQCO

Change-Id: I293d9e7f2df458c512d59b7a06f8ca6add610c99
2017-04-18 03:43:52 +02:00
Oliver Wang ec2e92b846 input: sensors: fix batching can't be disabled issue
Batching should be disabled after writing 0 to max_latency sysfs
node. Fix it by correct the batching activation logic.

Change-Id: Idbdc883fcbb9d4ad4042512068becf69725f4650
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
2014-11-20 18:37:52 +08:00
Oliver Wang ac87aa0de3 input: sensors: change sensor batching interface
The new Android sensor HAL requires more interfaces to communicate with
sensors driver. Change batching interface to meet the requirements. Sensor
drivers can use the interfaces to provide more features.

Change-Id: I7f3cbdcaa6f5473b038d1cdc07eb34685c1fca23
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
2014-10-22 16:05:26 +08:00
Oliver Wang 7776d50bcf input: sensors: add wake up interface for low power sensor
Add enable_wakeup interface in sensors calss to provide an interface
for user space applications to control the wake up flag. The wake up
flag indicates if the driver works on wake up mode, which means it
can wake up the processor even it is in suspend mode.

Change-Id: I8edf145a190093a4c5384fd948b067b788b1fb1a
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
2014-10-04 11:41:28 +08:00
Daqing Chen 4736122663 input: sensors: add sensors calibrate interface of sensors class
The sensors calibrate interface is a generic interface for sensor
calibrate. Add the interface for user space applications to calibrate
sensors. The interface can send the calibration data to userspace and
also get the calibration data form userspace to driver.

Change-Id: I156e1878f813e8ab0adfb3f2253cdd7fad65e55d
Signed-off-by: Daqing Chen <chendaqing@codeaurora.org>
2014-09-03 13:33:37 +08:00
Bingzhe Cai 316f76162e input: sensors: add batch and flush interface for sensor class
Batch interface allow sensor events reported in batches, flush
interface is used to flush sensor FIFO. These two interface can
save device power by reduce the amount of device wakeup.
Sensor class provide generic interfaces for sensor drivers to access
by sensor HAL, drivers using sensors class should register corresponding
sensor class callback to export their interface.

Change-Id: I1307d731793dbc9a6a2b07de3b1de5188d0d8504
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
2014-07-19 11:12:39 +08:00
Oliver Wang c4d842e406 input: sensors: add self test interface for sensors class
The self test interface is a generic interface for sensor self test.
Add the interface for user space applications to test sensors. Drivers
using sensors class should try to implement the callback if needed.

Change-Id: I008198534940c1357cfb1c7c4ff9b9b37beffdee
Signed-off-by: Oliver Wang <mengmeng@codeaurora.org>
2014-05-19 13:12:07 +08:00
Satya Durga Srinivasu Prabhala a3f880f79c sensors: Add compat ioctl for SSC driver
This commit adds compat ioctl for SSC driver to read timer.

Change-Id: I245e3d30ea828887cd325f07fa16fe9b0958fb38
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2014-02-28 19:49:59 -08:00
Michael Bohan 259ef0ea9e sensors: sensors_ssc: Add necessary NULL terminator to match
table

The following change mistakenly removed a NULL terminator from
the of_match_id table.

  commit 2dbb824abd
  Author: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
  Date: Wed Jan 29 17:51:14 2014 -0800

  ARM: msm: Clean up sensor ADSP driver; OCMEM is no longer used

Doing so allows for memory corruption when walking the table.

Change-Id: I8ecc29da9c70298b410d21da89fe6d5c8a0322e9
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
2014-02-20 15:55:36 -08:00
Satya Durga Srinivasu Prabhala 7163cc9450 sensors: Rename ADSP driver to SSC and move it to drivers/sensors
Rename sensors ADSP driver to sensors SSC and Move it from
arch/arm/mach-msm to drivers/sensors as drivers/sensors is
the most suitable home for this driver.

Change-Id: I72ae3cfd86157aa2523a4c4d0bf9160f9f2915ae
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2014-02-05 14:30:33 -08:00
Jie Cheng a1c64abeef sensors: add enable and poll_delay APIs for sensor class driver
The sensor class driver will create the "enable" and "poll_delay"
handles in the "/sys/class/sensors/xxx/" for each sensor driver.
The userspace code could easily find the control interface by
searching the "/sys/class/sensors/" folder.

Change-Id: Ia18f062262e4b78db7d7de87acb49dfcf485063b
Signed-off-by: Jie Cheng <rockiec@codeaurora.org>
2013-12-23 18:07:29 +08:00
Jie Cheng c4d8a7da11 sensors: remove the write permisson of sensor class sysfs
The sensor class device sysfs interface shall be read-only. So
remove the write permisson of these interface.

Change-Id: Ifd763247891f39e2ae7f2ce04f8ffe505c1bebe8
Signed-off-by: Jie Cheng <rockiec@codeaurora.org>
2013-12-04 14:21:03 +08:00
Jie Cheng 2423348b7a sensors: add the sensors class support
Add a new sensors sysfs class and put all the sensors device driver
information in this class folder.

Change-Id: I7c35ec4642e4dbd264945ad3839914935b301af0
Signed-off-by: Jie Cheng <rockiec@codeaurora.org>
2013-11-21 14:17:24 +08:00