[edk2-devel] [edk2-platforms][PATCH 1/4] RPi3: support Pi 2B v1.2.

Andrei Warkentin posted 4 patches 5 years, 9 months ago
[edk2-devel] [edk2-platforms][PATCH 1/4] RPi3: support Pi 2B v1.2.
Posted by Andrei Warkentin 5 years, 9 months ago
The Pi 2B v1.2 uses the same SoC as Pi 3B/3B+, but reports self as model 2.

Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
---
 Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 4 ++--
 1 file changed, 2 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.
      *
-- 
2.17.1


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

View/Reply Online (#58420): https://edk2.groups.io/g/devel/message/58420
Mute This Topic: https://groups.io/mt/73371876/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-