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

Skip to content
Commit 86c28639 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3: otg: Call dwc3_set_mode() directly



Get rid of dwc3_otg_set_peripheral_regs() and
dwc3_otg_set_host_regs() and simply call dwc3_set_mode()
directly. This reduces duplicated code and performs
additional sequences that had been added more recently,
such as configuring GFLADJ/SOFITPSYNC for host mode, and
setting GUSB3PIPECTL_SUSPHY to allow PHY to enter suspend.

Change-Id: Ib2347442b3dac95609d5b81b9b5e96847609fded
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 4e855797
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