summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2020-03-22 12:31:17 -0700
committerMichael Bestas <mkbestas@lineageos.org>2020-12-27 21:09:44 +0200
commitf41de922555bec43e29fcd826bb1536cd17dc2ac (patch)
tree4263dc893fbea57fa480365e5bbb1e4c7a35451e /rootdir
parent44c09326b2ba78cffd6a21a15c5aef41f8298aa8 (diff)
sdm660-common: Remove hbtp components
Change-Id: Id2fb715d0dbe3b148603d0fe5b9ab301fbeea683
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/etc/init.qcom.post_boot.sh212
-rw-r--r--rootdir/etc/init.qcom.rc7
-rw-r--r--rootdir/etc/init.target.rc7
-rw-r--r--rootdir/etc/ueventd.qcom.rc4
4 files changed, 0 insertions, 230 deletions
diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh
index c8c242f..8ea7be3 100644
--- a/rootdir/etc/init.qcom.post_boot.sh
+++ b/rootdir/etc/init.qcom.post_boot.sh
@@ -576,15 +576,6 @@ function enable_memory_features()
fi
}
-function start_hbtp()
-{
- # Start the Host based Touch processing but not in the power off mode.
- bootmode=`getprop ro.bootmode`
- if [ "charger" != $bootmode ]; then
- start vendor.hbtp
- fi
-}
-
case "$target" in
"msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_6x" | "msm7627a" | "msm7627_surf" | \
"qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "qsd8650a_st1x")
@@ -926,26 +917,6 @@ case "$target" in
if [ -f /sys/devices/soc0/hw_platform ]; then
hw_platform=`cat /sys/devices/soc0/hw_platform`
fi
- case "$soc_id" in
- "239")
- case "$hw_platform" in
- "Surf")
- case "$platform_subtype_id" in
- "1" | "2")
- start_hbtp
- ;;
- esac
- ;;
- "MTP")
- case "$platform_subtype_id" in
- "3")
- start_hbtp
- ;;
- esac
- ;;
- esac
- ;;
- esac
;;
"268" | "269" | "270" | "271")
echo 10 > /sys/class/net/rmnet0/queues/rx-0/rps_cpus
@@ -1771,29 +1742,6 @@ case "$target" in
case "$soc_id" in
"293" | "304" | "338" | "351")
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" )
- #if this directory is present, it means that a
- #1200p panel is connected to the device.
- dir="/sys/bus/i2c/devices/3-0038"
- if [ ! -d "$dir" ]; then
- start_hbtp
- fi
- ;;
- esac
-
- if [ $soc_id -eq "338" ]; then
- case "$hw_platform" in
- "QRD" )
- if [ $platform_subtype_id -eq "1" ]; then
- start_hbtp
- fi
- ;;
- esac
- fi
-
#init task load, restrict wakeups to preferred cluster
echo 15 > /proc/sys/kernel/sched_init_task_load
@@ -1930,14 +1878,6 @@ case "$target" in
esac
case "$soc_id" in
"349" | "350")
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" | "QRD" )
- start_hbtp
- ;;
- esac
-
for devfreq_gov in /sys/class/devfreq/qcom,mincpubw*/governor
do
echo "cpufreq" > $devfreq_gov
@@ -2113,21 +2053,6 @@ case "$target" in
# Socid 386 = Pukeena
case "$soc_id" in
"303" | "307" | "308" | "309" | "320" | "386" | "436")
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" )
- start_hbtp
- ;;
- esac
-
- case "$hw_platform" in
- "Surf" | "RCM" )
- if [ $platform_subtype_id -ne "4" ]; then
- start_hbtp
- fi
- ;;
- esac
# Apply Scheduler and Governor settings for 8917 / 8920
echo 20000000 > /proc/sys/kernel/sched_ravg_window
@@ -2205,14 +2130,6 @@ case "$target" in
case "$soc_id" in
"294" | "295" | "313" )
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" )
- start_hbtp
- ;;
- esac
-
# Apply Scheduler and Governor settings for 8937/8940
# HMP scheduler settings
@@ -2307,14 +2224,6 @@ case "$target" in
case "$soc_id" in
"354" | "364" | "353" | "363" )
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" | "QRD" )
- start_hbtp
- ;;
- esac
-
# Apply settings for sdm429/sda429/sdm439/sda439
for cpubw in /sys/class/devfreq/*qcom,mincpubw*
@@ -2445,18 +2354,6 @@ case "$target" in
esac
;;
esac
-
- case "$soc_id" in
- "386" | "436")
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "QRD" )
- start_hbtp
- ;;
- esac
- ;;
- esac
;;
esac
@@ -2622,14 +2519,6 @@ case "$target" in
echo 400 > $memlat/mem_latency/ratio_ceil
done
echo "cpufreq" > /sys/class/devfreq/soc:qcom,mincpubw/governor
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" | "QRD" )
- start_hbtp
- ;;
- esac
- ;;
esac
# Start cdsprpcd only for sdm660 and disable for sdm630 and sdm636
@@ -2641,14 +2530,6 @@ case "$target" in
#Apply settings for sdm630 and Tahaa
case "$soc_id" in
"318" | "327" | "385" )
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" | "QRD" )
- start_hbtp
- ;;
- esac
-
# Setting b.L scheduler parameters
echo 85 > /proc/sys/kernel/sched_upmigrate
echo 85 > /proc/sys/kernel/sched_downmigrate
@@ -2827,14 +2708,6 @@ case "$target" in
case "$soc_id" in
"336" | "337" | "347" | "360" | "393" )
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" | "QRD" )
- start_hbtp
- ;;
- esac
-
# Core control parameters on silver
echo 0 0 0 0 1 1 > /sys/devices/system/cpu/cpu0/core_ctl/not_preferred
echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus
@@ -3860,19 +3733,6 @@ case "$target" in
case "$soc_id" in
"347" )
-
- # Start Host based Touch processing
- case "$hw_platform" in
- "Surf" | "RCM" | "QRD" )
- start_hbtp
- ;;
- "MTP" )
- if [ $platform_subtype_id != 5 ]; then
- start_hbtp
- fi
- ;;
- esac
-
# Core control parameters on silver
echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus
echo 60 > /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres
@@ -4374,25 +4234,6 @@ case "$target" in
platform_subtype_id=`cat /sys/devices/soc0/platform_subtype_id`
fi
- case "$soc_id" in
- "321" | "341")
- # Start Host based Touch processing
- case "$hw_platform" in
- "QRD" )
- case "$platform_subtype_id" in
- "32") #QVR845 do nothing
- ;;
- *)
- start_hbtp
- ;;
- esac
- ;;
- *)
- start_hbtp
- ;;
- esac
- ;;
- esac
# Core control parameters
echo 2 > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus
echo 60 > /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres
@@ -4687,22 +4528,6 @@ case "$target" in
platform_subtype_id=`cat /sys/devices/soc0/platform_subtype_id`
fi
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" )
- # Start Host based Touch processing
- case "$platform_subtype_id" in
- "0" | "1" | "2" | "4")
- start_hbtp
- ;;
- esac
- ;;
- "HDK" )
- if [ -d /sys/kernel/hbtpsensor ] ; then
- start_hbtp
- fi
- ;;
- esac
-
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
configure_memory_parameters
;;
@@ -4886,22 +4711,6 @@ case "$target" in
platform_subtype_id=`cat /sys/devices/soc0/platform_subtype_id`
fi
- case "$hw_platform" in
- "MTP" | "Surf" | "RCM" )
- # Start Host based Touch processing
- case "$platform_subtype_id" in
- "0" | "1")
- start_hbtp
- ;;
- esac
- ;;
- "HDK" )
- if [ -d /sys/kernel/hbtpsensor ] ; then
- start_hbtp
- fi
- ;;
- esac
-
#Setting the min and max supported frequencies
reg_val=`cat /sys/devices/platform/soc/780130.qfprom/qfprom0/nvmem | od -An -t d4`
feature_id=$(((reg_val >> 20) & 0xFF))
@@ -5263,27 +5072,6 @@ case "$target" in
platform_subtype_id=`cat /sys/devices/soc0/platform_subtype_id`
fi
- case "$soc_id" in
- "292") #msm8998 apq8098_latv
- # Start Host based Touch processing
- case "$hw_platform" in
- "QRD")
- case "$platform_subtype_id" in
- "0")
- start_hbtp
- ;;
- "16")
- if [ $platform_major_version -lt 6 ]; then
- start_hbtp
- fi
- ;;
- esac
-
- ;;
- esac
- ;;
- esac
-
echo N > /sys/module/lpm_levels/system/pwr/cpu0/ret/idle_enabled
echo N > /sys/module/lpm_levels/system/pwr/cpu1/ret/idle_enabled
echo N > /sys/module/lpm_levels/system/pwr/cpu2/ret/idle_enabled
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index e08ee59..0465375 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -915,13 +915,6 @@ service vendor.move_time_data /system/bin/move_time_data.sh
disabled
oneshot
-service vendor.hbtp /vendor/bin/hbtp_daemon
- class main
- user system
- group system
- capabilities SYS_NICE
- disabled
-
service chre /vendor/bin/chre
class late_start
user system
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index 6fe987c..4c76339 100644
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -66,7 +66,6 @@ on post-fs-data
mkdir /data/tombstones/lpass 0771 system system
mkdir /data/tombstones/wcnss 0771 system system
mkdir /data/tombstones/dsps 0771 system system
- mkdir /data/vendor/hbtp 0750 system system
on boot
start rmt_storage
@@ -203,12 +202,6 @@ service adsprpcd /vendor/bin/adsprpcd audiopd
user media
group media
-service hbtp /system/vendor/bin/hbtp_daemon
- class main
- user system
- group system
- disabled
-
service audiod /system/vendor/bin/audiod
class late_start
user system
diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc
index cf83812..3f815ec 100644
--- a/rootdir/etc/ueventd.qcom.rc
+++ b/rootdir/etc/ueventd.qcom.rc
@@ -313,10 +313,6 @@ firmware_directories /vendor/firmware_mnt/image/
/sys/class/fts/touch_aoi aoi_set 0660 root system
/sys/class/fts/touch_aoi power_set 0660 root system
-#ImproveTouch device
-/dev/hbtp_input 0660 system system
-/dev/hbtp_vm 0660 system system
-
# Add device block for FRP
/dev/block/platform/soc/7824900.sdhci/by-name/config 0600 system system
/dev/block/platform/soc/7464900.sdhci/by-name/frp 0600 system system