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.web12.6499.1573747673594882535 for ; Thu, 14 Nov 2019 08:07:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@akeo-ie.20150623.gappssmtp.com header.s=20150623 header.b=n2MR7Xfi; 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 a15so7091961wrf.9 for ; Thu, 14 Nov 2019 08:07:53 -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=nH/PQBV4jBxts5fk84WLjiZzOUdwBMYVIoFZWxnyN5E=; b=n2MR7Xfi4PhaIGL1GsbFm2YczWyA8GTvrX7k8DoFB7RsyXV2DIGR72c7SQe0mMQUbU Phq5bbipNp0Iq6djNYKm1h94Zoz+iCRym/e35XYtFDBGGLmBsK+o6+9vJxMyF6hPrBBW GnhKIkZh3yN2kPfRrgkvfwYYm24UfYDTyDJk4em0MB8TEcn02p6qlzVWKkZuPq0ydfHZ MB3tRYo2SvY3BknMVeELJanQMQM2u4L5E871545DnC+Z9SkTURv7IGGZMBDezWhgqSI0 qLHlAMc3D+ploTrtJhHGqaj0Kfts8eWrtm3DY39/Jfqa3u3wwUGEYcSCt84zh83yru7p v2lw== 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=nH/PQBV4jBxts5fk84WLjiZzOUdwBMYVIoFZWxnyN5E=; b=A00ub39w2BpfRp92FCMnUFG89rM9Ct9cozqeURofB7hsEgZJFzhVTRWSFso8IyatEL WZANpiBsHckPh/+mYJjISh5x+SbAaFfIqY1ju6Sz7HNmPfZaGpPN1r1tA9SKexmmczYg sJKPENg1nZeOuMX3e2s8NHL/3uMFo2XNwMvYkHhjnm84MNzsknPbyA9ntnZq5LZISOT2 0IhlfYuDRuygu+9u6rSSOZkRp6Z9z1xrDqX/qF1FGD7/n0xQOI6m4V8drn0SFFK3shql 403m9ZZmBzUte7yMjQLn9Uw9KPCKaP1rL4WbuzlOqoUZ2XXFAZhbJKONMzcd6znCTnIq Xg/A== X-Gm-Message-State: APjAAAVyEezMrJVXNZ3waGBbcnlTGV9NOJGFBdSRqwFUulhqNcWziIdA Phx2/3xPL9XaYPLzl3S+WidazWVlzaQ= X-Google-Smtp-Source: APXvYqzBeCvhLq5ULmhc9GovCAAqkmxy2qS33i1ZzC+c2Arawf3CIzU0iZbyRa6mW7VoNvmKStE6vA== X-Received: by 2002:a5d:4412:: with SMTP id z18mr8712755wrq.149.1573747671853; Thu, 14 Nov 2019 08:07:51 -0800 (PST) Return-Path: Received: from localhost.localdomain ([84.203.67.47]) by smtp.gmail.com with ESMTPSA id a16sm6793088wmd.11.2019.11.14.08.07.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Nov 2019 08:07:51 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, philmd@redhat.com Subject: [edk2-platforms][PATCH 0/8] Platform/RPi: Early Raspberry Pi 4 groundwork Date: Thu, 14 Nov 2019 16:07:32 +0000 Message-Id: <20191114160740.10072-1-pete@akeo.ie> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The following set of patches lay some of the groundwork needed for the addition of the Raspberry Pi 4 as a platform. They are mostly designed at making the common RPi code more generic, by introducing new PCDs for the elements that are going to vary between Pi models, as well as introducing early support for the new Bcm2711 SoC in Silicon. Some cleanup of the memory init is also applied to make that part more generic as well as improve long term maintainability. Regards, /Pete 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 (5): Platform/RPi: Add model family detection Platform/RPi: Replace Bcm283x SoC base register address with a PCD Platform/RPi: Replace Mailbox and Watchdog addresses with PCDs Platform/RPi: Replace MMCHS1BASE define with a PCD Platform/RPi: Replace DW2_USB_BASE_ADDRESS define with a PCD Platform/RaspberryPi/Drivers/ArasanMmcHostDxe/ArasanMmcHostDxe.inf | 3 + Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf | 2 + Platform/RaspberryPi/Drivers/DwUsbHostDxe/DwUsbHostDxe.inf | 5 + Platform/RaspberryPi/Drivers/DwUsbHostDxe/DwcHw.h | 4 +- Platform/RaspberryPi/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c | 64 +++++ Platform/RaspberryPi/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.inf | 6 +- 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 | 75 +++++- Platform/RaspberryPi/Library/PlatformLib/PlatformLib.inf | 7 +- Platform/RaspberryPi/Library/PlatformLib/RaspberryPiMem.c | 256 +++++++++++--------- Platform/RaspberryPi/RPi3/RPi3.dsc | 11 +- Platform/RaspberryPi/RaspberryPi.dec | 2 + Silicon/Broadcom/Bcm27xx/Bcm27xx.dec | 22 ++ Silicon/Broadcom/Bcm27xx/Include/IndustryStandard/Bcm2711.h | 15 ++ Silicon/Broadcom/Bcm283x/Bcm283x.dec | 10 + Silicon/Broadcom/Bcm283x/Drivers/InterruptDxe/InterruptDxe.inf | 4 +- Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf | 5 + Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h | 7 +- Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836Sdio.h | 3 +- Silicon/Broadcom/Bcm283x/Library/GpioLib/GpioLib.inf | 4 + 25 files changed, 464 insertions(+), 173 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