avicii: 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 Signed-off-by: AmolAmrit <amol.amrit03@outlook.com>
This commit is contained in:
committed by
AmolAmrit
parent
53230d8e75
commit
e3d730eb23
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user