usb: dwc2: Pull Ext VBUS macro from dwc_otg_core_init()
authorMarek Vasut <marex@denx.de>
Wed, 27 Apr 2016 12:55:57 +0000 (14:55 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 3 May 2016 17:21:17 +0000 (19:21 +0200)
commit618da5630b5629d1c506be17f642502b483dab1a
treedd459f96d05948cec82c5f942ca834d17ada5029
parent559019894b8db38a2cf3f74bed78be505d4f9a27
usb: dwc2: Pull Ext VBUS macro from dwc_otg_core_init()

Introduce a boolean flag in the dwc2 controller private data and set
it according to the macro (for now) instead of having this macro
directly in the dwc_otg_core_init(). This will let us configure the
flag from DT or such later on, if needed.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Dinh Nguyen <dinguyen@kernel.org>
drivers/usb/host/dwc2.c