From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by mx.groups.io with SMTP id smtpd.web11.3782.1588238824641904993 for ; Thu, 30 Apr 2020 02:27:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GndVPDEV; spf=pass (domain: gmail.com, ip: 209.85.222.196, mailfrom: andrey.warkentin@gmail.com) Received: by mail-qk1-f196.google.com with SMTP id q7so4992233qkf.3 for ; Thu, 30 Apr 2020 02:27:04 -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=C3n1gFtvfqsXVKfrAhnQevhRQL3leuDWUTNV5cUaf6Q=; b=GndVPDEVwT3/MXWcISIAouhh/SBymsBFZ4/PduyNGHY8ODFX7zh6Vj0tc+K7kYuzVL DbucRg04gCxLshZetuGgYILAtgbJt1FhbPr8hZwYV6AWWEv4Dods43X8Afszdk43HyE3 CDJ28mXUm6RUN1H4JQTB+yC3fCDgmwx4vh+iFGnwYSuFUAtdibr3uRxZ8AHANoOqp1Vo Iu6+QSkFxzLsM1RkcpNeenUjOmUeKehLIdaYskOuwS/ZS+fGejgbfzTvMEK5vXd44OdA 2VRHJXm3jZMGELKZMgKNsOn1yCRcDg2QHHXqLR1Tjv+bwau9bF7XykPqa37+Y1CrcFGp nTzw== 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=C3n1gFtvfqsXVKfrAhnQevhRQL3leuDWUTNV5cUaf6Q=; b=mozUCBs6AVawZsUUMtENBaCrg90DrVKdW+6GrCh37E9MbAJNQyze43FvH2YPxIw5fg DU+RQvWqcqDQEWsOsIB0JUE9YDBdzmmuHa9Vls+oEwLfynx/AenndAxx4FLxWSgc3q8X /t3vdeaCAaYBlTbxQlMV3FXptQhTNOOZCgVcWdHnOQjeQds8UhOSUbBxq386nFGUEodJ wjtDLGw9uL+F8sambPpq0fcsaRjv4AOUJSaLkhRETt7fspV8A1wHRAA0pLBxWNVXXz2B Ex2n3pktbFY54vK9rU3TBe4zDbFpi/ikXYDvMk+msHLbx5ivwQbD9Hgp2FgcC/bduNQJ d96w== X-Gm-Message-State: AGi0PubDpls2RlBvgf6IsgN9mcu38TIQBr53cz0oOyvyYLhsQ66i47vk JxnD69BHT1sgHps6eLLE9yw9oNmBaK0= X-Google-Smtp-Source: APiQypLd0SATuw9+G+vQH3E2BmyN7tGpI1l43u158SVHhEloTtQTuy7X/VJCHnxI64RPKWFk8KVnlw== X-Received: by 2002:a37:9586:: with SMTP id x128mr2272361qkd.90.1588238823652; Thu, 30 Apr 2020 02:27:03 -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 i5sm1430355qki.42.2020.04.30.02.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 02:27:03 -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 1/4] RPi3: support Pi 2B v1.2. Date: Thu, 30 Apr 2020 02:26:49 -0700 Message-Id: <20200430092652.54526-2-andrey.warkentin@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200430092652.54526-1-andrey.warkentin@gmail.com> References: <20200430092652.54526-1-andrey.warkentin@gmail.com> The Pi 2B v1.2 uses the same SoC as Pi 3B/3B+, but reports self as model 2. Signed-off-by: Andrei Warkentin --- 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