sm8350-common: Fix battery and USB OTG detection in recovery mode

* in lahaina (msm-5.4) pmic driver now lies in adsp [1], so
   adsp firmware must to be loaded along with qti battery/
   charger kernel module, in order to get battery and usb
   power_supply up & running

[1]: https://source.codeaurora.org/quic/la/device/qcom/common/commit/rootdir/etc/init.recovery.qcom.rc?h=LA.UM.9.14.r1-18600-LAHAINA.0&id=4e2b0f663a8f4b73000c81999055363411aaf12c

Change-Id: I835fa5daaa53eb704cc6c0777d7069d47ecbe10c
This commit is contained in:
ghostrider-reborn
2022-12-17 19:03:10 +05:30
committed by Bruno Martins
parent 6b755c723f
commit a1fe4601bb

View File

@@ -36,3 +36,11 @@ on property:ro.boot.usbcontroller=*
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
# Load ADSP firmware for PMIC
mkdir /firmware
mount vfat /dev/block/bootdevice/by-name/modem${ro.boot.slot_suffix} /firmware ro context=u:object_r:firmware_file:s0
on property:dev.mnt.blk.firmware=*
write /sys/kernel/boot_adsp/boot 1
wait /sys/class/power_supply/battery