manta: senors: add HAL for light and pressure sensors
This HAL supports sensors using Industrial I/O subsystem.
These sensor devices will be located in /sys/bus/iio/devices.
Light Sensor:
IIO device name: lightsensor-level
chan_type: IIO_LIGHT
channel: in_illuminance0_input
event: /dev/iio:device? (assigned dynamically)
Pressure Sensor:
IIO device name: barometer
chan_type: IIO_PRESSURE (This is not yet defined in main stream.)
channel: in_pressure0_input
event: /dev/iio:device? (assigned dynamically)
TODO: iio/events.h and iio/types.h should be moved to
external/kernel-headers/original.
Change-Id: Ifbeb2f8e7ef7ac09f5b0727a2376c652e5f9e800
Signed-off-by: Won Hyoung Lee <whlee@sta.samsung.com>
diff --git a/ueventd.manta.rc b/ueventd.manta.rc
index f00bc41..82e882d 100644
--- a/ueventd.manta.rc
+++ b/ueventd.manta.rc
@@ -3,6 +3,15 @@
/dev/ion 0666 system system
/dev/video6 0660 media media
+# iio devices
+/dev/iio:device* 0660 system system
+/sys/devices/platform/s3c2440-i2c.1/i2c-1/1-0077/iio:device* events/in_pressure0_thresh_either_en 0660 system system
+/sys/devices/platform/s3c2440-i2c.1/i2c-1/1-0077/iio:device* sampling_frequency 0660 system system
+/sys/devices/platform/s3c2440-i2c.1/i2c-1/1-0077/iio:device* in_pressure0_input 0660 system system
+/sys/devices/platform/s3c2440-i2c.2/i2c-2/2-0023/iio:device* events/in_illuminance0_thresh_either_en 0660 system system
+/sys/devices/platform/s3c2440-i2c.2/i2c-2/2-0023/iio:device* sampling_frequency 0660 system system
+/sys/devices/platform/s3c2440-i2c.2/i2c-2/2-0023/iio:device* in_illuminance0_input 0660 system system
+
# gscalers
/dev/video23 0660 media media
/dev/video26 0660 media media