Skip to content

Commit

Permalink
Platform/RaspberryPi: Support Pi 2B v1.2
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
  • Loading branch information
andreiw authored and Ard Biesheuvel committed Apr 30, 2020
1 parent ee999c8 commit a95bebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit a95bebd

Please # to comment.