From d3699e437cf0dd3ceca9fa640dda4b691b772031 Mon Sep 17 00:00:00 2001 From: Ziyan Date: Sun, 24 Jan 2016 21:15:23 +0100 Subject: Add common omap4 init file Add 'import init.omap4.rc' to the device init file to use it. Change-Id: Ic0b8257b66b2d82bf9171ff7644a5689e0ab030d --- omap4.mk | 6 ++++++ rootdir/init.omap4.rc | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 rootdir/init.omap4.rc 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 -- cgit v1.2.3