summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-01-24 21:15:23 +0100
committerMichael Gernoth <michael@gernoth.net>2016-01-26 21:06:05 +0100
commitd3699e437cf0dd3ceca9fa640dda4b691b772031 (patch)
treecfc8fead26f1e65bf9f6a67b19e2c0e3c8f5bc4c
parentf3f76788de70e73851fcfc59f9a5894311320822 (diff)
downloadhardware_ti_omap4-d3699e437cf0dd3ceca9fa640dda4b691b772031.zip
hardware_ti_omap4-d3699e437cf0dd3ceca9fa640dda4b691b772031.tar.gz
hardware_ti_omap4-d3699e437cf0dd3ceca9fa640dda4b691b772031.tar.bz2
Add common omap4 init file
Add 'import init.omap4.rc' to the device init file to use it. Change-Id: Ic0b8257b66b2d82bf9171ff7644a5689e0ab030d
-rw-r--r--omap4.mk6
-rw-r--r--rootdir/init.omap4.rc14
2 files changed, 20 insertions, 0 deletions
diff --git a/omap4.mk b/omap4.mk
index 6a5c590..4ffde5b 100644
--- a/omap4.mk
+++ b/omap4.mk
@@ -15,9 +15,15 @@
# This file lists the modules that are specific to OMAP4 but are used by
# all OMAP4 devices.
+OMAP4_NEXT_FOLDER := hardware/ti/omap4
+
PRODUCT_PACKAGES += \
hwcomposer.omap4
PRODUCT_VENDOR_KERNEL_HEADERS := hardware/ti/omap4/kernel-headers
+# Init
+PRODUCT_COPY_FILES += \
+ $(OMAP4_NEXT_FOLDER)/rootdir/init.omap4.rc:root/init.omap4.rc
+
$(call inherit-product, hardware/ti/omap4/common.mk)
diff --git a/rootdir/init.omap4.rc b/rootdir/init.omap4.rc
new file mode 100644
index 0000000..7895744
--- /dev/null
+++ b/rootdir/init.omap4.rc
@@ -0,0 +1,14 @@
+on boot
+ # Hardware tunables
+ chown root system /sys/devices/platform/omapdss/manager0/cpr_coef
+ chown root system /sys/devices/platform/omapdss/manager0/cpr_enable
+ chmod 0664 /sys/devices/platform/omapdss/manager0/cpr_coef
+ chmod 0664 /sys/devices/platform/omapdss/manager0/cpr_enable
+ restorecon /sys/devices/platform/omapdss/manager0/cpr_coef
+ restorecon /sys/devices/platform/omapdss/manager0/cpr_enable
+
+service pvrsrvinit /system/bin/pvrsrvinit
+ class core
+ user root
+ group root
+ oneshot