[edk2-devel] [edk2-platforms][PATCH 0/3] Platform/RPi4: Add Genet network driver stub

Pete Batard posted 3 patches 4 years, 3 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.c   |  61 +++++++++++
Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.inf |  44 ++++++++
Platform/RaspberryPi/RPi4/RPi4.dsc                             |   5 +
Platform/RaspberryPi/RPi4/RPi4.fdf                             |   1 +
Silicon/Broadcom/Drivers/Net/BcmGenetDxe/BcmGenetDxe.inf       |  40 +++++++
Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.c               | 114 ++++++++++++++++++++
Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.h               |  20 ++++
Silicon/Broadcom/Drivers/Net/BcmNet.dec                        |  22 ++++
8 files changed, 307 insertions(+)
create mode 100644 Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.c
create mode 100644 Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.inf
create mode 100644 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/BcmGenetDxe.inf
create mode 100644 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.c
create mode 100644 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.h
create mode 100644 Silicon/Broadcom/Drivers/Net/BcmNet.dec
[edk2-devel] [edk2-platforms][PATCH 0/3] Platform/RPi4: Add Genet network driver stub
Posted by Pete Batard 4 years, 3 months ago
The Raspberry Pi 4 Broadcom Genet network adapter can be made to work in ACPI
mode under high level OSes such as Linux.

To facilitate this however, it is desirable to ensure that the platform's MAC
address has properly been written to the dedicated UMAC registers during UEFI
initialization.

This series of patches achieves that by:
* Adding a generic Genet driver stub under Silicon that, for the time being,
  simply performs UMAC init when a MAC Address PCD has been set.
* Adding a new PlatformPcdLib in the Raspberry Pi try, to ensure that, if
  no MAC address PCD was provided for the build, we set that PCD by querying
  the firmware interface.
* Enabling the Genet driver for the Pi 4 platform

Jeremy Linton (2):
  Silicon/Broadcom/Net: Add Genet stub driver to setup MAC
  Platform/Rpi4: Enable Broadcom Genet stub driver

Pete Batard (1):
  Platform/RPi: Add PlatformPcdLib to set the Genet MAC address

 Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.c   |  61 +++++++++++
 Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.inf |  44 ++++++++
 Platform/RaspberryPi/RPi4/RPi4.dsc                             |   5 +
 Platform/RaspberryPi/RPi4/RPi4.fdf                             |   1 +
 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/BcmGenetDxe.inf       |  40 +++++++
 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.c               | 114 ++++++++++++++++++++
 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.h               |  20 ++++
 Silicon/Broadcom/Drivers/Net/BcmNet.dec                        |  22 ++++
 8 files changed, 307 insertions(+)
 create mode 100644 Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.c
 create mode 100644 Platform/RaspberryPi/Library/PlatformPcdLib/PlatformPcdLib.inf
 create mode 100644 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/BcmGenetDxe.inf
 create mode 100644 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.c
 create mode 100644 Silicon/Broadcom/Drivers/Net/BcmGenetDxe/Genet.h
 create mode 100644 Silicon/Broadcom/Drivers/Net/BcmNet.dec

-- 
2.21.0.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#53437): https://edk2.groups.io/g/devel/message/53437
Mute This Topic: https://groups.io/mt/70045878/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-