From 1146de1b54a18e4ca0754590d1cb8dacac624ea7 Mon Sep 17 00:00:00 2001 From: Abinaya P Date: Fri, 30 Oct 2015 22:18:22 +0530 Subject: [PATCH] device: common: Enable host based touch processing for MSM8937 This enables host based touch processing for MSM8937 MTP, CDP and RCM. Change-Id: I41fe6d6c57350ff362b387fb49e25629ae72a666 --- rootdir/etc/init.qcom.post_boot.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index 91039d28..e7eeae83 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1018,8 +1018,30 @@ case "$target" in else soc_id=`cat /sys/devices/system/soc/soc0/id` fi + + if [ -f /sys/devices/soc0/hw_platform ]; then + hw_platform=`cat /sys/devices/soc0/hw_platform` + else + hw_platform=`cat /sys/devices/system/soc/soc0/hw_platform` + fi + case "$soc_id" in + "295") + case "$hw_platform" in + "MTP" | "Surf" | "RCM" ) + # Enable Host based Touch processing + start hbtp + ;; + esac + ;; "294" ) + case "$hw_platform" in + "MTP" | "Surf" | "RCM" ) + # Enable Host based Touch processing + start hbtp + ;; + esac + # Apply Scheduler and Governor settings for 8937 # HMP scheduler settings