[edk2-devel] [edk2-platform][PATCH v1 6/6] Platform/RaspberryPi: set DMA translation for BCM Genet driver

Samer El-Haj-Mahmoud samer.el-haj-mahmoud at arm.com
Fri May 8 20:45:38 UTC 2020


From: Ard Biesheuvel <ard.biesheuvel at arm.com>

The driver for the Broadcom Genet network controller was modified
from a minimal MAC address programming driver to a true SNP driver
implementing full network functionality. Since this involve DMA,
set the DmaLib parameters correctly in the platform.

Cc: Pete Batard <pete at akeo.ie>
Cc: Leif Lindholm <leif at nuviainc.com>
Cc: Andrei Warkentin <awarkentin at vmware.com>
Cc: Jared McNeill <jmcneill at invisible.ca>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel at arm.com>
---
 Platform/RaspberryPi/RPi4/RPi4.dsc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Platform/RaspberryPi/RPi4/RPi4.dsc b/Platform/RaspberryPi/RPi4/RPi4.dsc
index 333a49d28880..15b159ae569f 100644
--- a/Platform/RaspberryPi/RPi4/RPi4.dsc
+++ b/Platform/RaspberryPi/RPi4/RPi4.dsc
@@ -675,6 +675,9 @@
   #
 !include NetworkPkg/Network.dsc.inc
   Silicon/Broadcom/Drivers/Net/BcmGenetDxe/BcmGenetDxe.inf {
+    <PcdsFixedAtBuild>
+      gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset|0x00000000
+      gEmbeddedTokenSpaceGuid.PcdDmaDeviceLimit|0xffffffff
   }
 
   #
-- 
2.17.1


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

View/Reply Online (#58908): https://edk2.groups.io/g/devel/message/58908
Mute This Topic: https://groups.io/mt/74082585/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list