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: I1c6f3ccc32a73f5b4758571882c4fca9df00c36a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2024-05-02 16:37:51 +08:00
parent e11a334b3b
commit bc80d65178
3 changed files with 6 additions and 0 deletions

View file

@ -62,8 +62,10 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet
# ODPM # ODPM
on early-boot && property:ro.boot.hardware.sku=GEC77 on early-boot && property:ro.boot.hardware.sku=GEC77
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
on early-boot && property:ro.boot.hardware.sku=GWVK6 on early-boot && property:ro.boot.hardware.sku=GWVK6
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
# Start the twoshay touch service # Start the twoshay touch service

View file

@ -66,8 +66,10 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet
# ODPM # ODPM
on early-boot && property:ro.boot.hardware.sku=GZC4K on early-boot && property:ro.boot.hardware.sku=GZC4K
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
on early-boot && property:ro.boot.hardware.sku=GQ57S on early-boot && property:ro.boot.hardware.sku=GQ57S
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
# Start the twoshay touch service # Start the twoshay touch service

View file

@ -58,8 +58,10 @@ on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_complet
# ODPM # ODPM
on early-boot && property:ro.boot.hardware.sku=GUR25 on early-boot && property:ro.boot.hardware.sku=GUR25
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
on early-boot && property:ro.boot.hardware.sku=G1B60 on early-boot && property:ro.boot.hardware.sku=G1B60
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
# Start the twoshay touch service # Start the twoshay touch service