usb: xhci: Load Raspberry Pi 4 VL805's firmware 31/240331/2
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tue, 5 May 2020 16:26:07 +0000 (18:26 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 6 Aug 2020 01:59:21 +0000 (01:59 +0000)
commit44e349d714e455ef0a6af461f7fa1050eea9bb70
treefa11c3789081e68906ffcc57a2004e78869848b2
parentfe241085a0a64949169fcd1d6e0c605a8695ffc2
usb: xhci: Load Raspberry Pi 4 VL805's firmware

When needed, RPi4's co-processor (called VideoCore) has to be instructed
to load VL805's firmware (the chip providing xHCI support). VideCore's
firmware expects the board's PCIe bus to be already configured in order
for it to load the xHCI chip firmware. So we have to make sure this
happens in between the PCIe configuration and xHCI startup.

Introduce a callback in xhci_pci_probe() to run this platform specific
routine.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
[mszyprow: backport of https://patchwork.ozlabs.org/project/uboot/list/?series=174860&state=%2A&archive=both
 the final mainline patch depends on DTS changes not present in vendor tree]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I1391806cae261d1ce22137e1a8baf5e261cb865a
board/raspberrypi/rpi/rpi.c
drivers/usb/host/xhci-pci.c
include/usb/xhci.h