Commit 93b9957894f062b24f7985374d5546d700f0d382
Committed by
Marek Vasut
1 parent
e22b1a5494
Exists in
v2017.01-smarct4x
and in
33 other branches
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>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
drivers/usb/host/dwc2.c
| ... | ... | @@ -929,6 +929,10 @@ |
| 929 | 929 | |
| 930 | 930 | root_hub_devnum = 0; |
| 931 | 931 | |
| 932 | + /* board dependant init */ | |
| 933 | + if (board_usb_init(index, USB_INIT_HOST)) | |
| 934 | + return -1; | |
| 935 | + | |
| 932 | 936 | snpsid = readl(®s->gsnpsid); |
| 933 | 937 | printf("Core Release: %x.%03x\n", snpsid >> 12 & 0xf, snpsid & 0xfff); |
| 934 | 938 |