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: I42e93a013de790b8d79d5934d57069ce83f3cb74
Signed-off-by: Darren Hsu <darrenhsu@google.com>
This commit is contained in:
Darren Hsu 2024-05-02 16:54:14 +08:00
parent a91c6786f9
commit 72e3730811

View file

@ -38,8 +38,10 @@ on post-fs-data
# ODPM
on early-boot && property:ro.boot.hardware.sku=GXQ96
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
on early-boot && property:ro.boot.hardware.sku=G3Y12
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
# Fingerprint