usb: dwc3: set 'mode' based on selected Kconfig choices
authorVivek Gautam <gautam.vivek@samsung.com>
Sat, 2 Mar 2013 13:25:24 +0000 (18:55 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:18:00 +0000 (11:18 +0200)
commitcd051da2c81c8a86f331b4caa0c135c33d3ea3f6
treecb8a63206a92236b50d4f69ee87f727680a2c26c
parentb5a726b30436ab332aea4133bbfa0484d1c658b3
usb: dwc3: set 'mode' based on selected Kconfig choices

Now that machines may select dwc3's working mode (HOST only,
GADGET only or DUAL_ROLE) via Kconfig, let's set dwc3's mode
based on that, rather than fixing it to whatever hardware
says.

This way we can skip initializing Gadget/Host in case
we are using Host-only/Gadget-only mode respectively.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c