From 56a3c0faa5f014e5d528f12de5d14a1d66404046 Mon Sep 17 00:00:00 2001 From: Darren Hsu Date: Thu, 27 Apr 2023 10:40:18 +0800 Subject: [PATCH] odpm: Replace MMWAVE rail with AUR rail for SUB6 only sku Bug: 269218895 Test: dumpsys android.hardware.power.stats.IPowerStats/default Change-Id: Ib47c6d383a70984e863abae04ee98d254a120581 Signed-off-by: Darren Hsu --- conf/init.zuma.rc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index a5a4301a..57b5e364 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -918,9 +918,22 @@ on post-fs-data mkdir /data/vendor/bluetooth 0770 bluetooth system # ODPM -on fs - chown system system /sys/devices/platform/acpm_mfd_bus@18100000/i2c-7/i2c-s2mpg12mfd/s2mpg12-meter/s2mpg12-odpm/iio\:device0/enabled_rails - chown system system /sys/devices/platform/acpm_mfd_bus@18110000/i2c-8/i2c-s2mpg13mfd/s2mpg13-meter/s2mpg13-odpm/iio\:device1/enabled_rails +on early-boot && property:ro.boot.hardware.sku=GC3VE + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=GZPF0 + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=GPJ41 + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=G9BQD + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=GKV4X + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=G6GPR + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=G576D + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" +on early-boot && property:ro.boot.hardware.sku=GGH2X + write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" on post-fs-data mkdir /data/vendor/powerstats 0771 system system