aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxSylla <syllamodder@gmail.com>2022-07-11 01:01:39 +0200
committerdrishal <drishalballaney@gmail.com>2022-07-14 08:11:29 +0530
commit16d71b42fa0abb357f9782fb289f4c7577690e2c (patch)
treea75532453e35c38571bbe33a99f2df24ce0842d0
parent066d83abf7606bb3941ed21e7af0a89acfd4ba01 (diff)
sm8250-common: rootdir: Stop using hardcoded boot device
Change-Id: Ibe68a1585894a55db0599ef87c42395c60976329
-rw-r--r--rootdir/etc/init.qcom.power.rc2
-rw-r--r--rootdir/etc/init.target.rc8
2 files changed, 5 insertions, 5 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc
index 0f9a811..cd565c5 100644
--- a/rootdir/etc/init.qcom.power.rc
+++ b/rootdir/etc/init.qcom.power.rc
@@ -89,7 +89,7 @@ on early-init
write /sys/devices/system/cpu/cpu7/cpufreq/schedutil/down_rate_limit_us 20000
# Disable UFS clock scaling
- write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 0
+ write /sys/bus/platform/devices/${ro.boot.bootdevice}/clkscale_enable 0
on init
# Setup permission for Power HAL
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index 20566ec..5030344 100644
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -39,10 +39,10 @@ on init
write /dev/stune/system-background/schedtune.colocate 0
write /dev/stune/foreground/schedtune.colocate 0
write /dev/stune/top-app/schedtune.colocate 1
- wait /dev/block/platform/soc/1d84000.ufshc
- symlink /dev/block/platform/soc/1d84000.ufshc /dev/block/bootdevice
- chown system system /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
- chmod 0660 /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
+ wait /dev/block/platform/soc/${ro.boot.bootdevice}
+ symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
+ chown system system /sys/devices/platform/soc/${ro.boot.bootdevice}/auto_hibern8
+ chmod 0660 /sys/devices/platform/soc/${ro.boot.bootdevice}/auto_hibern8
chown system system /proc/last_kmsg
#change owner of white led
chown system system /sys/class/leds/white/brightness