public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Andrei Warkentin" <andrey.warkentin@gmail.com>
To: devel@edk2.groups.io
Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie,
	philmd@redhat.com
Subject: [edk2-platforms][PATCH 2/4] RPi3: add support for the v1.2 Pi 2B.
Date: Thu, 30 Apr 2020 01:47:44 -0700	[thread overview]
Message-ID: <20200430084746.51455-3-andrey.warkentin@gmail.com> (raw)
In-Reply-To: <20200430084746.51455-1-andrey.warkentin@gmail.com>

v1.2 (not older) actually uses the same BCM2837 SoC as
Pi 3, and is thus a 64-bit device that this firmware
easily supports as a minor variant of the Pi 3.

The difference from Pi 3 is choice of UART (PL011), no WiFi,
no BT and slower clock due to thermal problems caused by
older board design.

Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
---
 Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 4 ++--
 Platform/RaspberryPi/RPi3/Readme.md                | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c
index 1091e680..c90c2530 100644
--- a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c
+++ b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c
@@ -322,9 +322,9 @@ ApplyVariables (
     ASSERT_EFI_ERROR (Status);
   }
 
-  if (mModelFamily == 3) {
+  if (mModelFamily == 3 || mModelFamily == 2) {
     /*
-     * Pi 3: either Arasan or SdHost goes to SD card.
+     * Pi 2B v1.2 / Pi 3: either Arasan or SdHost goes to SD card.
      *
      * Switching two groups around, so disable both first.
      *
diff --git a/Platform/RaspberryPi/RPi3/Readme.md b/Platform/RaspberryPi/RPi3/Readme.md
index d63d6767..3484c92c 100644
--- a/Platform/RaspberryPi/RPi3/Readme.md
+++ b/Platform/RaspberryPi/RPi3/Readme.md
@@ -17,6 +17,7 @@ Raspberry Pi is a trademark of the [Raspberry Pi Foundation](http://www.raspberr
 # Hardware Supported
 
 The RPi3 target supports Pi revisions based on the BCM2837 SoC:
+- Raspberry Pi 2B v1.2 (older versions are *not* compatible)
 - Raspberry Pi 3A+
 - Raspberry Pi 3B
 - Raspberry Pi 3B+
-- 
2.17.1


  parent reply	other threads:[~2020-04-30  8:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30  8:47 [edk2-platforms][PATCH 0/4] extend RPi3 to support 3A+, 2B (v1.2) and CM3 Andrei Warkentin
2020-04-30  8:47 ` [edk2-platforms][PATCH 1/4] RPi3/RPi4: document 3A+ support Andrei Warkentin
2020-04-30  8:47 ` Andrei Warkentin [this message]
2020-04-30  8:47 ` [edk2-platforms][PATCH 3/4] RPi3: add support for Compute Module 3 Andrei Warkentin
2020-04-30  8:50   ` Ard Biesheuvel
2020-04-30  8:47 ` [edk2-platforms][PATCH 4/4] RPi3/RPi4: touch up readme's a bit Andrei Warkentin
2020-04-30  8:57 ` [edk2-platforms][PATCH 0/4] extend RPi3 to support 3A+, 2B (v1.2) and CM3 Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200430084746.51455-3-andrey.warkentin@gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox