Commit graph

5 commits

Author SHA1 Message Date
LuK1337
fc371392fe sm8350-common: Set sys.usb.controller while in recovery
Change-Id: I019236408bb481cfac51f089aaeccd49b609e8b2
2021-06-01 23:23:38 +01:00
Jack Pham
1cdeaf4f5e sm8350-common: init.recovery.qcom.rc: Force USB to peripheral mode
On some newer platforms USB relies on PMIC to notify it of
cable connection status, but the PMIC driver has relocated
to ADSP FW. Since ADSP is not expected to be loaded in
recovery or fastbootd mode, USB may not get notified and
hence won't start up. Force the USB to start in peripheral
mode since the whole purpose of recovery/fastbootd is to
interact with a USB connection anyhow.

Currently the command assumes that there is a sysfs "mode"
param located at /sys/class/udc/${ro.boot.usbcontroller}/device/..
which is true for dwc3-msm based driver on most QC SoCs.

Change-Id: I5f7a01defdf987dbf4bd48f77bc70344c212a623
2021-06-01 23:23:38 +01:00
LuK1337
122c9902a1 sm8250-common: Include device specific init recovery rc script
Change-Id: I7750ff22585a7b760d8b4d6f771fd7fe22db1e2e
2021-01-11 18:38:02 +01:00
LuK1337
4d3629f4a2 sdm845-common: Switch to common usb-in-recovery configuration
Change-Id: I6e281e0a76dbf6f02c9cab9b0dcf2293e0352c0a
2020-05-26 17:52:07 +02:00
LuK1337
adf9bfbe4e sdm845-common: Add recovery support
Change-Id: Id44d9793e0ea5fd1359f661ec6a9a1784514dbd2
2018-07-07 18:44:54 +02:00