From 6ed6449ee7459caa545c6ee1f0c593eab3f88288 Mon Sep 17 00:00:00 2001 From: Abinaya P Date: Wed, 6 Jan 2016 10:34:45 +0530 Subject: [PATCH] device: common: Enable host based touch processing for MSMTITANIUM This enables host based touch processing for MSMTITANIUM MTP, CDP and RCM. Change-Id: I2c359ed03c6e187b319e9af6d32441f83cae49f4 --- rootdir/etc/init.qcom.post_boot.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index 31b22fea..81e051de 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1071,8 +1071,22 @@ case "$target" in 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 "293" | "304" ) + + # Start Host based Touch processing + case "$hw_platform" in + "MTP" | "Surf" | "RCM" ) + start hbtp + ;; + esac + #scheduler settings echo 3 > /proc/sys/kernel/sched_window_stats_policy echo 3 > /proc/sys/kernel/sched_ravg_hist_size