usb: dwc2: add 'mode' which based on Kconfig select or dts setting
authorKever Yang <kever.yang@rock-chips.com>
Wed, 6 Aug 2014 01:01:50 +0000 (09:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:43:28 +0000 (15:43 -0700)
commitc0155b9d5ef29092d39502ec57b0454b2b3c7cc9
tree6c7ada1655a4c741ca043b94a3afc4022598b53a
parentfc1b0e2aa3251c5f90bb6c70358832e4dab9abfd
usb: dwc2: add 'mode' which based on Kconfig select or dts setting

According to the "dr_mode", the otg controller can work as
device role and host role. Some boards always want to use host mode
and some other boards want to use gadget mode. We use the dts setting
to set dwc2's mode, rather than fixing it to whatever hardware says.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Tested-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/core.c
drivers/usb/dwc2/core.h
drivers/usb/dwc2/platform.c