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)
committerPhil Elwell <phil@raspberrypi.org>
Wed, 29 Jan 2020 11:55:42 +0000 (11:55 +0000)
commitc74b1b53254016fd83b580b8d49bb02d72ce4836
treeefc0d50ea01c2b5364617b8909ada3610536ebce
parent65aa6ec0faaa012508489886ac357cbb86cdb9a4
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