From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by mx.groups.io with SMTP id smtpd.web10.6577.1579780820641516711 for ; Thu, 23 Jan 2020 04:00:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=FDQZB6PK; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.221.67, mailfrom: pete@akeo.ie) Received: by mail-wr1-f67.google.com with SMTP id y17so2775837wrh.5 for ; Thu, 23 Jan 2020 04:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y60vWT+SpF3y5LA5SmdQ5zJnBIaWYIbqPk2VyUPehBw=; b=FDQZB6PK1bmxOe2PN2ZcnNYKPJT8b5Gx+kSug3NMUXs8WDyAcCiiAEEvudz/wM/ju4 7PrXOEum4L5/EZZ0B264daIEZFEO77ojTsOGo+aCh0b/ntaFRuebYQn+oXfs/p5YgOEF ZQeReLs7XGzsJEp85O/CeO/Ra2StE5tW4ncVdZylyoGLmatpXf60EW0SV8IpBdsjZ5H6 meZ8xnUhQaqKTIAN78i58jVlMEjg3u2vAOxxOCfN6wrAcPN46BKHAzcGUiisfOcvizqd hDy00Ug7xjD8IGLw/xa27/QiWSL2byBFiMVCQnyMZmUI5BifGLgmCdR/ZI6RHET5zR/f A73g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Y60vWT+SpF3y5LA5SmdQ5zJnBIaWYIbqPk2VyUPehBw=; b=oG8RYUmcUjGBwlxUu76qmTEq0tqDuxMENKqgvd35SyvmLx8SeNtpcL4km0LGTVUIw0 3hDm2h7KCYiymZSj4ugvyjdrv2xpd0vhv4F7pIgtnDx3+/NxCV1ChNm7I6GZsCsdV4Sg /ByItSZ0bPeev+jo6J/wicU4z7+ojnILigiW87Ljowluz5PJ3vFlOwzv7JOnLp4s/7CW Qoap3BwPgyXDGFk/ev+r1NA2F//6n5p7VGyQctey1776QEcVXVWqks/VhvEpHCstHzgs 5H9pHUtT5Rqfn4EuJIgo36DE69xbFodCkcxAwO7ZWMJmf+5DyXmsEJnFnTr9UfMpH5TW WkpQ== X-Gm-Message-State: APjAAAWnKvKGFlTKBFVRUgfdge33hCg6poIqIFwV40/Hi6C8XwsW4V7O MWtdS4O8KwBtWyFSU783kU6mVZPYAR8= X-Google-Smtp-Source: APXvYqw0mrzG2EoSXgFhj55xL4E9RSWejT9Tq6/wk2CZkNWKvX/yofUkBnrMg3h43LgsqMdRQPcUxA== X-Received: by 2002:a5d:4d0e:: with SMTP id z14mr17416635wrt.208.1579780818949; Thu, 23 Jan 2020 04:00:18 -0800 (PST) Return-Path: Received: from localhost.localdomain ([84.203.95.128]) by smtp.gmail.com with ESMTPSA id t1sm2492281wma.43.2020.01.23.04.00.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jan 2020 04:00:18 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif@nuviainc.com, philmd@redhat.com, lintonrjeremy@gmail.com Subject: [edk2-platforms][PATCH 0/3] Platform/RPi4: Add Genet network driver stub Date: Thu, 23 Jan 2020 12:00:02 +0000 Message-Id: <20200123120007.4784-1-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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