diff options
author | Peter Griffin <peter.griffin@linaro.org> | 2015-07-29 21:39:29 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-05 15:20:34 (GMT) |
commit | 93b9957894f062b24f7985374d5546d700f0d382 (patch) | |
tree | 36e864452eb17e0929b8a0087f0faa07c231d647 /drivers/usb/host | |
parent | e22b1a54942d9003b10564325a34e3cf767556ce (diff) | |
download | u-boot-fsl-qoriq-93b9957894f062b24f7985374d5546d700f0d382.tar.xz |
usb: dwc2: Call board_usb_init() from usb_lowlevel_init()
This patch makes the dwc2 controller like ehci / ohci / xhci controllers
by calling the board_usb_init() function from usb_lowlevel_init.
This can then be implemented by specific platforms to initialise
their USB hardware (phys / clocks etc).
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/dwc2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index eee60a2..ad35841 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -929,6 +929,10 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller) root_hub_devnum = 0; + /* board dependant init */ + if (board_usb_init(index, USB_INIT_HOST)) + return -1; + snpsid = readl(®s->gsnpsid); printf("Core Release: %x.%03x\n", snpsid >> 12 & 0xf, snpsid & 0xfff); |