UPSTREAM: usb: dwc2: Add functions to check the HW OTG config
authorJohn Youn <John.Youn@synopsys.com>
Thu, 17 Dec 2015 19:16:17 +0000 (11:16 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:47:46 +0000 (18:47 +0800)
commit73926bc902527350905eebd91b2215cae57c86c8
treebd629abe53be517532a03d02a7e0663652d2557d
parenta6fca6b1b2cbbee5c2a0085a679a2eb0abefa152
UPSTREAM: usb: dwc2: Add functions to check the HW OTG config

Added functions to query the GHWCFG2.OTG_MODE. This tells us whether the
controller hardware is configured for OTG, device-only, or host-only.

Change-Id: I8f927d130a675ceb598b118d0c9a4e5d5b698739
Signed-off-by: John Youn <johnyoun@synopsys.com>
Tested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 6bea962053e76a4407f0d138184a8737eea960ee)
drivers/usb/dwc2/core.c
drivers/usb/dwc2/core.h