public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-platforms][PATCH 0/4] Platform/RPi4: Add PCIe and xHCI support
@ 2019-12-12 10:54 Pete Batard
  2019-12-12 10:54 ` [edk2-platforms][PATCH 1/4] Silicon/Bcm27xx: Add PCIe constants to Bcm2711.h Pete Batard
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Pete Batard @ 2019-12-12 10:54 UTC (permalink / raw)
  To: devel; +Cc: ard.biesheuvel, leif.lindholm, philmd, lintonrjeremy

The following patch series adds xHCI support for the Broadcom 2711 SoC used
on the Raspberry Pi 4 by:

* Adding the relevant constants to the Silicon header files

* Adding the segment library required to handle the nonstandrd ECAM that the
  SoC uses. Basically, in the Bcm2711, root port is the first bytes of the
  register space (offset 0) and individual devices are selected by computing
  their BDF index and writing that into the CFG_INDEX register before ECAM
  data can then be read/written at CFG_DATA.

* Adding the Host Bridge Library

* Adding PCIe and xHCI support into the platform using the recently introduced
  NonCoherentIoMmuDxe.

Once this series has been applied, the 4 USB ports of the platform can be used
within the UEFI environment.

Jeremy Linton (4):
  Silicon/Bcm27xx: Add PCIe constants to Bcm2711.h
  Silicon/Bcm27xx: Add segment library to handle nonstandard ECAM
  Silicon/Bcm27xx: Add PCIe host bridge config library
  Platform/RPi4: Build the PCIe and xHCI drivers into the firmware

 Platform/RaspberryPi/RPi4/RPi4.dsc                                                            |   29 +-
 Platform/RaspberryPi/RPi4/RPi4.fdf                                                            |   10 +-
 Platform/RaspberryPi/RPi4/Readme.md                                                           |   23 +-
 Silicon/Broadcom/Bcm27xx/Bcm27xx.dec                                                          |    4 +
 Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h                                   |   71 +
 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciHostBridgeLib/Bcm2711PciHostBridgeLib.c            |  193 +++
 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciHostBridgeLib/Bcm2711PciHostBridgeLib.inf          |   51 +
 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciHostBridgeLib/Bcm2711PciHostBridgeLibConstructor.c |  235 ++++
 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciSegmentLib/PciSegmentLib.c                         | 1432 ++++++++++++++++++++
 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciSegmentLib/PciSegmentLib.inf                       |   34 +
 10 files changed, 2064 insertions(+), 18 deletions(-)
 create mode 100644 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciHostBridgeLib/Bcm2711PciHostBridgeLib.c
 create mode 100644 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciHostBridgeLib/Bcm2711PciHostBridgeLib.inf
 create mode 100644 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciHostBridgeLib/Bcm2711PciHostBridgeLibConstructor.c
 create mode 100644 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciSegmentLib/PciSegmentLib.c
 create mode 100644 Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciSegmentLib/PciSegmentLib.inf

-- 
2.21.0.windows.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-12-12 22:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-12 10:54 [edk2-platforms][PATCH 0/4] Platform/RPi4: Add PCIe and xHCI support Pete Batard
2019-12-12 10:54 ` [edk2-platforms][PATCH 1/4] Silicon/Bcm27xx: Add PCIe constants to Bcm2711.h Pete Batard
2019-12-12 10:55 ` [edk2-platforms][PATCH 2/4] Silicon/Bcm27xx: Add segment library to handle nonstandard ECAM Pete Batard
2019-12-12 13:35   ` Ard Biesheuvel
2019-12-12 22:15     ` Jeremy Linton
2019-12-12 10:55 ` [edk2-platforms][PATCH 3/4] Silicon/Bcm27xx: Add PCIe host bridge config library Pete Batard
2019-12-12 10:55 ` [edk2-platforms][PATCH 4/4] Platform/RPi4: Build the PCIe and xHCI drivers into the firmware Pete Batard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox