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)
committerFelipe Balbi <balbi@ti.com>
Tue, 22 Dec 2015 17:55:46 +0000 (11:55 -0600)
commit6bea962053e76a4407f0d138184a8737eea960ee
treed276638c1eb4e6d67dd413d62fdeab1ff3d2e621
parentb5d308abef1c5c0f24128845e41d414a8f8438f6
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.

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>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/core.h