From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by mx.groups.io with SMTP id smtpd.web12.3308.1588236479832748605 for ; Thu, 30 Apr 2020 01:48:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YI9QEQlh; spf=pass (domain: gmail.com, ip: 209.85.222.171, mailfrom: andrey.warkentin@gmail.com) Received: by mail-qk1-f171.google.com with SMTP id s9so2192500qkm.6 for ; Thu, 30 Apr 2020 01:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iq0heG1tkmaVff9HPZdltxInzOrgWyr0WIbPY9ALK4s=; b=YI9QEQlhsanKVgVnsCAvc6M1KORYkXVksB8R0l8b4IK1e2RVm4ia4RIy1KAnXqOTVN HMMGP9BWFuL3qoYus2/+ZKmEno33h/hR2gSTdpO68mXs7KuEG/zEyYaYYRHgBguVAzQ7 FUJC58HV3+JOLoDR3Jn+Nj0Pc1Khq7Uhh5JkVyINB261trovp72PDwrjZ92G1D70a1N4 rFLH6z20ad6miH8dYxHFkQ/HIg03/nK8cfunjLtbhDTDZ9YnkALkt3zmHNsAB+uMnW6b KTg0KfdX6NJjK+NsULLoNn4TNCtAMSHK29jAQdMXy9T5kcVdXibGGxTE6Vmmr2nLEofH w9UA== 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:in-reply-to :references; bh=iq0heG1tkmaVff9HPZdltxInzOrgWyr0WIbPY9ALK4s=; b=XqqxQlCiBdKwvY+i+f0+MTJCj+gjr8i4WvcBj/YODflotC6FPoB5Cea5Y04eGuni25 ePw758t+RaWix+owk23JRSE4654Um2GPoJG+51r0n/kbByW0PMp2646KGqRDVDDn0r+s 9gS1N2KRpk2u3QLwzsD2apyTmEymv6uUf9/igJaHeBuja3RxSxCc4tg3H0LSkvihye3F Uo5aacvAIc7rShEQ8YicTl6BhqfbbvPpu1HiQW5npsUNfPo4XUiWJOj+f5yJeHO8E2fQ /Xvu1FbmvrFk9OZc84oZKp9yr3VRlZrETZy3k2lH6o4JnZ9d0jp2UcjJXLWenNW/1Dh0 DsrQ== X-Gm-Message-State: AGi0PuY5KYN4qLew7XRl4lxmGDlniBnLnHmnRpJXXKCc6I2Y0QAcGYGc TTlRdZX/B2fy+riOIs3VWSeUCi9wR+k= X-Google-Smtp-Source: APiQypLQ36oR3eAMYV6wCArfhakjSyebaDs8N7ptNJGdFUoQPb+dOCed433PD6YJ8SMyfPMZ5Leb4g== X-Received: by 2002:a37:c4b:: with SMTP id 72mr2538044qkm.2.1588236478866; Thu, 30 Apr 2020 01:47:58 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-98-214-99-181.hsd1.il.comcast.net. [98.214.99.181]) by smtp.gmail.com with ESMTPSA id f130sm1419553qke.22.2020.04.30.01.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 01:47:58 -0700 (PDT) From: "Andrei Warkentin" 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 Message-Id: <20200430084746.51455-3-andrey.warkentin@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200430084746.51455-1-andrey.warkentin@gmail.com> References: <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 --- 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