From 82e60fe15c2a1df26fa6ce33fd10b68d0b50f3bd Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Thu, 2 May 2024 16:51:30 +0800 Subject: [PATCH] odpm: support 2 random mappings to iio device VSYS_PWR_MMWAVE will be replaced with S12S_VDD_AUR on SUB6 only sku. The replacement failed sometimes because there are 2 random mappings to iio device. Mapping 1 iio:device0 -> s2mpg14-odpm iio:device1 -> s2mpg15-odpm Mapping 2 iio:device0 -> s2mpg15-odpm iio:device1 -> s2mpg14-odpm Bug: 337665886 Bug: 338416918 Bug: 338316877 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: I0f469f663ca25dce86f4e9e44442723627fbb724 Signed-off-by: Darren Hsu --- conf/init.comet.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/init.comet.rc b/conf/init.comet.rc index 3c88556..e505491 100644 --- a/conf/init.comet.rc +++ b/conf/init.comet.rc @@ -77,6 +77,7 @@ on property:vendor.thermal.link_ready=1 # ODPM on early-boot && property:ro.boot.hardware.sku=GC15S + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" # SFPS Fingerprint