From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mx.groups.io with SMTP id smtpd.web10.10142.1574163504983607495 for ; Tue, 19 Nov 2019 03:38:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=q0CZXJ3C; spf=none, err=permanent DNS error (domain: akeo.ie, ip: 209.85.221.68, mailfrom: pete@akeo.ie) Received: by mail-wr1-f68.google.com with SMTP id l7so23407641wrp.6 for ; Tue, 19 Nov 2019 03:38:24 -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=2vwhHY614KAcqLSqewyEZDT8M08Brv/XVmV05WECkyI=; b=q0CZXJ3C2Smxa+PxilRRrEZHcaczTSgvzAZFAofg68nme0AaGSIL1VUJQr3xMnDvup ls2oT6DUIJX5pqp6AWdnoGUw/tWVqfZAb2A5Y+E0jUfC+ir+LU9KUQcUfEW4Ffx8x06T RVIPjXZFR1/q2/fb4IgF/wQM5LivBmAtD7qvVWMIt9tjvIEMa8dmAH1LxdFAPOYFVzre 5L3Bh2/aTORx/i2mAsE+ZT8YmbraRpbY+oHl6Xa7WwjYj8LVOWifwlq7Zn46XUqhx77d 2u0ZQyC13PXAcRL9gw819sA94xAoPD+Gy1UZEDd4wNzo5y431nDi7XRCPzGldpN4Z9SK qDVQ== 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=2vwhHY614KAcqLSqewyEZDT8M08Brv/XVmV05WECkyI=; b=uJMXJtNQuTr7M+BfyqwlEtBKoDX1OzohnKMibbVBdV4o8RcgAPJonrpgOThUg0NApm 5sCa2niUyumy7TrpKyS8L9j/H9pLlfs+x+aBh8GKkiyZMTBVUcSaMmnoUaG45YdF1uG9 kF3C/5/qVmrezSHjqmj6+76CCxVvt1iu4VX30wITND0oGG11Sts6OPKpUsZE1Msl5n6J UPad+/b3llRCQMs9nnZjJCIzh2SiEjYWCcWlgEedtBa1vH/+D+Odizhx4fSf1rnqjNK/ 3EZLpzrTaHZSq1K1HzRNKbZMtoR+fjeXv+h/i64+3/kw2ucbJmv+GlGBs6fEK1wKMOhf 3b7w== X-Gm-Message-State: APjAAAVF3CttwZRz2nT4LSFmNSdWSdZ/lBbkCModmzd+DQKyA0DmGSWq uo/4eRiu3+MEt+OCqxl+ZqdBVihq3bU= X-Google-Smtp-Source: APXvYqztNo54lcA/RePE2bU/CaAzIOgK3SLhH/bi9xZ26Neh/FKN/5+j3CEgs7QcuhPwYQ9jXiuF4w== X-Received: by 2002:adf:f388:: with SMTP id m8mr685615wro.18.1574163502981; Tue, 19 Nov 2019 03:38:22 -0800 (PST) Return-Path: Received: from localhost.localdomain ([84.203.67.47]) by smtp.gmail.com with ESMTPSA id j66sm2608273wma.19.2019.11.19.03.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 03:38:21 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, philmd@redhat.com, samer.el-haj-mahmoud@arm.com Subject: [edk2-platforms][PATCH v2 0/7] Platform/RPi: Early Raspberry Pi 4 groundwork Date: Tue, 19 Nov 2019 11:38:02 +0000 Message-Id: <20191119113809.2472-1-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changes from v1 (https://edk2.groups.io/g/devel/message/50689 - 50697): - Split missing "Raspberry Pi Compute Module 3+" model from the "model name" patch - Update Samer's e-mail address - Drop leading __ in new header guards - List new PCDs, headers and LibraryClasses in alphabetical order where possible - Use a single PCD for the SoC registers base address and use offsets to derive the other registers address from that PCD - Add a comment in RaspberryPiHelper.S to indicate that x1 keeps its value - Mention that RaspberryPiMem.c is derived from code from ArmJunoMem.c Pete Batard (3): Silicon/Broadcom: Add Bcm2711 header Platform/RPi: Read more variables from VideoCore during early init Platform/RPi: Clean up and improve early memory init Samer El-Haj-Mahmoud (4): Platform/RPi: Add missing model name Platform/RPi: Add model family detection Platform/RPi: Replace Bcm283x SoC base register address with a PCD Platform/RPi: Use offsets for Bcm238x SoC register addresses Platform/RaspberryPi/Drivers/ArasanMmcHostDxe/ArasanMmcHostDxe.inf | 2 + Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf | 2 + Platform/RaspberryPi/Drivers/DwUsbHostDxe/DwUsbHostDxe.inf | 4 + Platform/RaspberryPi/Drivers/DwUsbHostDxe/DwcHw.h | 4 +- Platform/RaspberryPi/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c | 64 +++++ Platform/RaspberryPi/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.inf | 5 +- Platform/RaspberryPi/Drivers/SdHostDxe/SdHostDxe.inf | 2 + Platform/RaspberryPi/Include/IndustryStandard/RpiMbox.h | 1 + Platform/RaspberryPi/Include/Library/RPiMem.h | 26 ++ Platform/RaspberryPi/Include/Protocol/RpiFirmware.h | 8 + Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.c | 94 ++++--- Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.inf | 1 + Platform/RaspberryPi/Library/PlatformLib/AArch64/RaspberryPiHelper.S | 76 +++++- Platform/RaspberryPi/Library/PlatformLib/PlatformLib.inf | 6 +- Platform/RaspberryPi/Library/PlatformLib/RaspberryPiMem.c | 256 +++++++++++--------- Platform/RaspberryPi/RPi3/RPi3.dsc | 7 +- Platform/RaspberryPi/RaspberryPi.dec | 1 + Silicon/Broadcom/Bcm27xx/Bcm27xx.dec | 22 ++ Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h | 15 ++ Silicon/Broadcom/Bcm283x/Bcm283x.dec | 7 + Silicon/Broadcom/Bcm283x/Drivers/InterruptDxe/InterruptDxe.inf | 4 +- Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf | 5 + Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h | 11 +- Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836Sdio.h | 4 +- Silicon/Broadcom/Bcm283x/Library/GpioLib/GpioLib.inf | 4 + 25 files changed, 459 insertions(+), 172 deletions(-) create mode 100644 Platform/RaspberryPi/Include/Library/RPiMem.h create mode 100644 Silicon/Broadcom/Bcm27xx/Bcm27xx.dec create mode 100644 Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h -- 2.21.0.windows.1