Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8b69cc45 authored by Jack Pham's avatar Jack Pham
Browse files

usb: msm_otg: allow debugfs control of BSV in peripheral mode



Allow msm_otg device to be configured in peripheral mode
simultaneously with debugfs control of OTG mode. This allows
the user to manually switch on/off the BSV bit via debugfs.

Example with device tree:
  qcom,hsusb-otg-mode = <1>;    // peripheral mode
  qcom,hsusb-otg-control = <3>; // user control

To turn on BSV (already on by default):
> echo "peripheral" > <debugfs>/msm_otg/mode

To turn off BSV:
> echo "none" > <debugfs>/msm_otg/mode

Change-Id: Ida2e7e5601d387b36d57da0643f3ed17f375742b
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent bfc20c2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment