summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorxkeita <keita_nya@live.jp>2017-06-25 00:43:03 +0000
committerxkeita <keita_nya@live.jp>2017-06-25 01:52:19 +0000
commit61eb8ec290ad39b82e894767f83da7556c2c60f5 (patch)
tree2eaaec36a51253657b8d55e12141d4f6df37d22c /rootdir
parentfa44b7ffcb052f88b2c625bb5ea57773292354e3 (diff)
shinano: init: Commonize init.device.rc
- Add common init.device.rc for shinano devices. Change-Id: I9793279a529551106cf31dc1c39844fa9274bb5b
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.device-common.rc22
-rw-r--r--rootdir/init.qcom.rc2
2 files changed, 23 insertions, 1 deletions
diff --git a/rootdir/init.device-common.rc b/rootdir/init.device-common.rc
new file mode 100644
index 0000000..775f981
--- /dev/null
+++ b/rootdir/init.device-common.rc
@@ -0,0 +1,22 @@
+on boot
+ # PM8941 flash
+ chown media system /sys/class/misc/pm8941-flash/device/current1
+ chown media system /sys/class/misc/pm8941-flash/device/current2
+ chown media system /sys/class/misc/pm8941-flash/device/fault_status
+ chown media system /sys/class/misc/pm8941-flash/device/fine_current1
+ chown media system /sys/class/misc/pm8941-flash/device/fine_current2
+ chown media system /sys/class/misc/pm8941-flash/device/flash_timer
+ chown media system /sys/class/misc/pm8941-flash/device/mask_clamp_current
+ chown media system /sys/class/misc/pm8941-flash/device/mask_enable
+ chown media system /sys/class/misc/pm8941-flash/device/max_current
+ chown media system /sys/class/misc/pm8941-flash/device/mode
+ chown media system /sys/class/misc/pm8941-flash/device/startup_delay
+ chown media system /sys/class/misc/pm8941-flash/device/strobe
+ chown media system /sys/class/misc/pm8941-flash/device/vph_pwr_droop
+
+ # Touch
+ chown system system /sys/devices/virtual/input/clearpad/wakeup_gesture
+
+ # Glove input
+ chown system system /sys/devices/virtual/input/clearpad/glove
+ chmod 0660 /sys/devices/virtual/input/clearpad/glove
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index d3bb53a..fb4bd2f 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -15,7 +15,7 @@
# limitations under the License.
#
-import /init.device.rc
+import /init.device-common.rc
import /init.sony.usb.rc
import /init.qcom.power.rc
import /init.camera.rc