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 <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2024-05-02 16:51:30 +08:00
parent 5e7e34f27a
commit 82e60fe15c

View file

@ -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