usb: xhci: Raspberry Pi FW loader for VIA VL805
authorTim Gover <990920+timg236@users.noreply.github.com>
Wed, 15 Jan 2020 11:26:19 +0000 (11:26 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:18 +0000 (16:33 +0100)
commitec5a58fb5bd51282dd928a174e8499e6d95e345a
tree3c634e7cd32fbeb4038fe10e1fe1fccc954c34be
parent1513594726e5fc02da2f7c09b2520eac96f72896
usb: xhci: Raspberry Pi FW loader for VIA VL805

The VL805 FW may either be loaded from an SPI EEPROM or alternatively
loaded directly by the VideoCore firmware. A PCI reset will reset
the VL805 XHCI controller on the Raspberry Pi4 requiring the firmware
to be reloaded if an SPI EEPROM is not present.

Use a VideoCore mailbox to trigger the loading of the VL805
firmware (if necessary) after a PCI reset.

Signed-off-by: Tim Gover <tim.gover@raspberrypi.org>
drivers/usb/host/pci-quirks.c
include/soc/bcm2835/raspberrypi-firmware.h