USB: dwc3: Add support for basic OTG in superspeed mode

For detecting SS devices in host mode, USB3 roothub port should
be in Rx.detect state. But if OTG control register is used for
role switching, USB3 roothub will be in Rx.disabled state. Hence
use global control register for role switching between Host and
peripheral. Also Fix the issues in role switching from Host to
peripheral by doing block reset and reinitialization of registers.

CRs-Fixed: 419210
Change-Id: Idbcd228824ce29667a20449865c822dc89aee7fa
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
5 files changed