From nobody Thu May 2 13:20:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43172+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43172+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1562084038; cv=none; d=zoho.com; s=zohoarc; b=kp9Lozwb62EEUyKK1EUDS8srrTzRP71cabtih7KGMG61Jv9z/jIQjepYC1xFY44RNHl0GUbnYbzqQL5yTSTtXXnWAS8D6W4U0RXAzDHSP1DWx3xYHbKdzAo5ruurJhApna03B3x8/XT5WgXhdXU3sEa/+JttrQM74rGLttIIYO8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562084038; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=fQIdJvc/h3WQZhCYK6iDRHke9x3978eWRk81tsAon4A=; b=ieNK+HVBIiS2PCThkyO7CgAYRrzTGgP0s1DrYFYM0IS5bC0TdE/6CmqJplktyF1oV4tapxyiIadGQNQswDXBSIDzp64EHBefyLKje9vIy/yqbzo22Le3Ur+MV3O1qo3d2v0w+XsCdl2sguChnDOkW5Ig6FhJZGGiXGa+1Tb8+ws= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43172+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562084038096201.17777158434615; Tue, 2 Jul 2019 09:13:58 -0700 (PDT) Return-Path: X-Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by groups.io with SMTP; Tue, 02 Jul 2019 09:13:57 -0700 X-Received: by mail-ed1-f68.google.com with SMTP id a14so27820128edv.12 for ; Tue, 02 Jul 2019 09:13:56 -0700 (PDT) X-Gm-Message-State: APjAAAUi8LUDA0KRDD1dO9/U0OJWGZ9BffEpvPD4rxXWq5BP4bdXltLw Hhv+46ts4Vg6OYFv6+Q+zrc9yUogilE= X-Google-Smtp-Source: APXvYqx1dj9TnMf4gtvalVf6i62kCeUQzc9pIkFws2lnk0yrgr7aRQVmgWZMlITzmje9Cq3rjRYIGw== X-Received: by 2002:a17:906:4a01:: with SMTP id w1mr29055931eju.291.1562084035338; Tue, 02 Jul 2019 09:13:55 -0700 (PDT) X-Received: from localhost.localdomain ([84.203.93.8]) by smtp.gmail.com with ESMTPSA id j11sm2355791ejr.69.2019.07.02.09.13.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 09:13:54 -0700 (PDT) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org Subject: [edk2-devel] [edk2-platforms: PATCH 1/2] Platform/RPi3: Set the boot option of UEFI Shell as non-active Date: Tue, 2 Jul 2019 17:13:40 +0100 Message-Id: <20190702161341.2652-2-pete@akeo.ie> In-Reply-To: <20190702161341.2652-1-pete@akeo.ie> References: <20190702161341.2652-1-pete@akeo.ie> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pete@akeo.ie Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1562084037; bh=wCakCbMAHBT2FksnLsK632rRurwJyO/AwbAlFNgEiY0=; h=Cc:Date:From:Reply-To:Subject:To; b=vAZOJxnRh+FrjFlPIZftuGdr9wpfJicPwtUCaffIT5FuJEgNNsYkVxjqKWWmg6k4EL+ 7TXL3vcGvQ1p6q2PyjdmqDYoU2kkQoqinlFph7HUbBJk9ch+pOTy3hPfCjePh6KCb9P8E eOI1BZL9KA2pYEzsfraecmeBWoScWLRHQoY= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" This makes boot from SD/USB the default, which is what most users should expect. Pressing F1 at boot still boots to UEFI Shell. Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/PlatformBm.c | 2 = +- Platform/RaspberryPi/RPi3/Readme.md | 6 = +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/Platf= ormBm.c b/Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/Platform= Bm.c index 92f3b6146dd7..e7757115d82c 100644 --- a/Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/PlatformBm.c +++ b/Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/PlatformBm.c @@ -460,7 +460,7 @@ PlatformRegisterOptionsAndKeys ( =20 RemoveStaleBootOptions (); =20 - ShellOption =3D PlatformRegisterFvBootOption (&gUefiShellFileGuid, L"UEF= I Shell", LOAD_OPTION_ACTIVE); + ShellOption =3D PlatformRegisterFvBootOption (&gUefiShellFileGuid, L"UEF= I Shell", LOAD_OPTION_CATEGORY_APP); if (ShellOption !=3D -1) { // // F1 boots Shell. diff --git a/Platform/RaspberryPi/RPi3/Readme.md b/Platform/RaspberryPi/RPi= 3/Readme.md index 7434233df0fb..624f3a8d287a 100644 --- a/Platform/RaspberryPi/RPi3/Readme.md +++ b/Platform/RaspberryPi/RPi3/Readme.md @@ -26,9 +26,9 @@ It also provides support for ATF ([Arm Trusted Platform](= https://github.com/ARM- HDMI and the mini-UART serial port can be used for output devices, with mi= rrored output. USB keyboards and the mini-UART serial port can be used as input. =20 -On a freshly built firmware, the default is to boot the UEFI shell. -To change the default boot order (for instance to boot uSD media by defaul= t) you -will need to edit the preferences in _Boot Maintenance Manager_. +The default for the firmware is to first attempt boot from SD then USB. Th= e UEFI +Shell can also be accessed by pressing F1. To change the boot order you ca= n edit +the preferences in the _Boot Maintenance Manager_ menu. =20 For additional information about the tested systems and how to set them up, please see [Systems.md](./Systems.md). --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#43172): https://edk2.groups.io/g/devel/message/43172 Mute This Topic: https://groups.io/mt/32287842/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Thu May 2 13:20:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43173+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43173+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1562084039; cv=none; d=zoho.com; s=zohoarc; b=NfYVKifoLikL+HZkVBuTGABJYKE1CxOi0pJPYnbtNIo7sEhIDHA7UOtUywU5YcqNevSXQMeg+VQh8MuV2tHzuPYdmrsqeW7nuxxq6eaJfJkAX8Onvw+6E9jjjjNC34iKwzlXcciHyC7QUmVIi7b1fhhPDt4ZHLQjabrPXxEkJZo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562084039; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=vfuD/27WhmJK89P5hr5acscqa4C5L+n9xDcxESgmQdk=; b=F0YsCiDypz3jsIkV2UNs+EOUUW6Q62Sxyn77Vgd4wMuPD7Ebo68CW1jCM+yuw0wk0V0FNWMJ8ggcbFjkoXsmhnqk4fgLIil1mIH0rde6dqnzJgPMqRcmtY15UjDMjZIb+zyjzhNiaFw0QQzlIObl1pvJ/FvGekg7Xu8DHhE0Tps= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43173+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562084039925974.8819699959927; Tue, 2 Jul 2019 09:13:59 -0700 (PDT) Return-Path: X-Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by groups.io with SMTP; Tue, 02 Jul 2019 09:13:58 -0700 X-Received: by mail-ed1-f54.google.com with SMTP id w20so27856427edd.2 for ; Tue, 02 Jul 2019 09:13:58 -0700 (PDT) X-Gm-Message-State: APjAAAUwIJeSqT/oewSF6KSnmb6yGystZrpLBUOrgh0y4u7G6s0rZ/C+ jLrZ7i1izlY8Kk4iuQesXzU8HN+IF3M= X-Google-Smtp-Source: APXvYqzQYTg45LBp17L3UOypkMninvwiCvDBIK6daEq2fExKB7tqNad9eiGikCOypp68HQ701J3/GA== X-Received: by 2002:a50:922a:: with SMTP id i39mr36367491eda.219.1562084036763; Tue, 02 Jul 2019 09:13:56 -0700 (PDT) X-Received: from localhost.localdomain ([84.203.93.8]) by smtp.gmail.com with ESMTPSA id j11sm2355791ejr.69.2019.07.02.09.13.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 09:13:56 -0700 (PDT) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org Subject: [edk2-devel] [edk2-platforms: PATCH 2/2] Platform/Rpi3: Add custom CPU frequency support Date: Tue, 2 Jul 2019 17:13:41 +0100 Message-Id: <20190702161341.2652-3-pete@akeo.ie> In-Reply-To: <20190702161341.2652-1-pete@akeo.ie> References: <20190702161341.2652-1-pete@akeo.ie> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pete@akeo.ie Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1562084039; bh=8MIWeMPXYYL0XCTfBUes83avKHkzBvkIWWL7iToxN70=; h=Cc:Date:From:Reply-To:Subject:To; b=W6YXGlq3d4R6VGFQZ6r8/0EuaEJ1q0ArIA7cIZiR8YfmtOX8+kSTPgB9OyrL7Am/K1R u9VvJrOV3KMtFtME3Uq49qYLcnGptyZC00B8U1nnXsIZ6czHWmjqsq/J30GSth+5kEc7h 3fUhxTuEm7c5A9qptPy2wkCrGKWXE1LFhPQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Allow users to set a custom CPU frequency [100 - 1600 MHz] in 'Device Manager' -> 'Raspberry Pi Configuration'. Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.c | 13 +++= ++++++++- Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.inf | 1 + Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.uni | 4 ++++ Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.vfr | 22 +++= +++++++++++++++++ Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c | 4 +++- Platform/RaspberryPi/RPi3/Include/Protocol/RpiFirmware.h | 3 ++- Platform/RaspberryPi/RPi3/RPi3.dec | 17 +++= +++++------- Platform/RaspberryPi/RPi3/RPi3.dsc | 1 + 8 files changed, 54 insertions(+), 11 deletions(-) diff --git a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.c b/Plat= form/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.c index d64e70adce36..fcb4ce6935b6 100644 --- a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.c +++ b/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.c @@ -108,6 +108,14 @@ SetupVariables ( PcdSet32 (PcdCpuClock, PcdGet32 (PcdCpuClock)); } =20 + Size =3D sizeof (UINT32); + Status =3D gRT->GetVariable(L"CustomCpuClock", + &gConfigDxeFormSetGuid, + NULL, &Size, &Var32); + if (EFI_ERROR (Status)) { + PcdSet32 (PcdCustomCpuClock, PcdGet32 (PcdCustomCpuClock)); + } + Size =3D sizeof (UINT32); Status =3D gRT->GetVariable (L"SdIsArasan", &gConfigDxeFormSetGuid, @@ -201,6 +209,7 @@ ApplyVariables ( UINTN Gpio48Group; EFI_STATUS Status; UINT32 CpuClock =3D PcdGet32 (PcdCpuClock); + UINT32 CustomCpuClock =3D PcdGet32 (PcdCustomCpuClock); UINT32 Rate =3D 0; =20 if (CpuClock !=3D 0) { @@ -213,6 +222,8 @@ ApplyVariables ( if (Status !=3D EFI_SUCCESS) { DEBUG ((DEBUG_ERROR, "Couldn't get the max CPU speed, leaving as i= s: %r\n", Status)); } + } else if (CpuClock =3D=3D 3) { + Rate =3D CustomCpuClock * 1000000; } else { Rate =3D 600 * 1000000; } @@ -220,7 +231,7 @@ ApplyVariables ( =20 if (Rate !=3D 0) { DEBUG ((DEBUG_INFO, "Setting CPU speed to %uHz\n", Rate)); - Status =3D mFwProtocol->SetClockRate (RPI_MBOX_CLOCK_RATE_ARM, Rate); + Status =3D mFwProtocol->SetClockRate (RPI_MBOX_CLOCK_RATE_ARM, Rate, 1= ); if (Status !=3D EFI_SUCCESS) { DEBUG ((DEBUG_ERROR, "Couldn't set the CPU speed: %r\n", Status)); } diff --git a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.inf b/Pl= atform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.inf index 3fee190ac41b..6d6c90b78408 100644 --- a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.inf +++ b/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxe.inf @@ -54,6 +54,7 @@ [Protocols] =20 [Pcd] gRaspberryPiTokenSpaceGuid.PcdCpuClock + gRaspberryPiTokenSpaceGuid.PcdCustomCpuClock gRaspberryPiTokenSpaceGuid.PcdSdIsArasan gRaspberryPiTokenSpaceGuid.PcdMmcForce1Bit gRaspberryPiTokenSpaceGuid.PcdMmcForceDefaultSpeed diff --git a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.uni b= /Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.uni index a9c101433008..04f735949ba5 100644 --- a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.uni +++ b/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.uni @@ -25,6 +25,10 @@ #string STR_CHIPSET_CLOCK_CPU_NA #language en-US "Don't Override" #string STR_CHIPSET_CLOCK_CPU_600MHZ #language en-US "Min (600MHz)" #string STR_CHIPSET_CLOCK_CPU_MAX #language en-US "Max" +#string STR_CHIPSET_CLOCK_CPU_CUSTOM #language en-US "Custom" + +#string STR_CHIPSET_CUSTOM_CPU_CLOCK_PROMPT #language en-US "CPU Clock Rat= e (MHz)" +#string STR_CHIPSET_CUSTOM_CPU_CLOCK_HELP #language en-US "Adjust the CP= U speed.\nMin value: 100 MHz\nMax value: 1600 MHz\n\nWarning: Overclocking = can make the system unbootable!" =20 #string STR_CHIPSET_SD_PROMPT #language en-US "uSD Routing" #string STR_CHIPSET_SD_HELP #language en-US "Choose host controll= er to drive uSD slot" diff --git a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.vfr b= /Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.vfr index 7a1824525892..217a285b5a1f 100644 --- a/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.vfr +++ b/Platform/RaspberryPi/RPi3/Drivers/ConfigDxe/ConfigDxeHii.vfr @@ -47,10 +47,15 @@ typedef struct { * 0 - don't change the clock rate. * 1 - 600MHz. * 2 - maximum. + * 3 - custom. */ UINT32 Clock; } CHIPSET_CPU_CLOCK_VARSTORE_DATA; =20 +typedef struct { + UINT32 Clock; +} CHIPSET_CUSTOM_CPU_CLOCK_VARSTORE_DATA; + typedef struct { /* * 0 - uSD slot routed to Broadcom SDHOST. @@ -116,6 +121,11 @@ formset name =3D CpuClock, guid =3D CONFIGDXE_FORM_SET_GUID; =20 + efivarstore CHIPSET_CUSTOM_CPU_CLOCK_VARSTORE_DATA, + attribute =3D EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME= _ACCESS | EFI_VARIABLE_NON_VOLATILE, + name =3D CustomCpuClock, + guid =3D CONFIGDXE_FORM_SET_GUID; + efivarstore CHIPSET_SD_VARSTORE_DATA, attribute =3D EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME= _ACCESS | EFI_VARIABLE_NON_VOLATILE, name =3D SdIsArasan, @@ -198,8 +208,20 @@ formset option text =3D STRING_TOKEN(STR_CHIPSET_CLOCK_CPU_NA), value = =3D 0, flags =3D DEFAULT; option text =3D STRING_TOKEN(STR_CHIPSET_CLOCK_CPU_600MHZ), va= lue =3D 1, flags =3D 0; option text =3D STRING_TOKEN(STR_CHIPSET_CLOCK_CPU_MAX), value= =3D 2, flags =3D 0; + option text =3D STRING_TOKEN(STR_CHIPSET_CLOCK_CPU_CUSTOM), va= lue =3D 3, flags =3D 0; endoneof; =20 + grayoutif NOT ideqval CpuClock.Clock =3D=3D 3; + numeric varid =3D CustomCpuClock.Clock, + prompt =3D STRING_TOKEN(STR_CHIPSET_CUSTOM_CPU_CLOCK_PROMPT= ), + help =3D STRING_TOKEN(STR_CHIPSET_CUSTOM_CPU_CLOCK_HELP), + flags =3D DISPLAY_UINT_DEC | NUMERIC_SIZE_4 | INTERACTIVE = | RESET_REQUIRED, + minimum =3D 100, + maximum =3D 1600, + default =3D 600, + endnumeric; + endif; + oneof varid =3D SdIsArasan.Routing, prompt =3D STRING_TOKEN(STR_CHIPSET_SD_PROMPT), help =3D STRING_TOKEN(STR_CHIPSET_SD_HELP), diff --git a/Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDx= e.c b/Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c index 925f5a921290..5d96c0d84181 100644 --- a/Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c +++ b/Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c @@ -800,7 +800,8 @@ EFI_STATUS EFIAPI RpiFirmwareSetClockRate ( IN UINT32 ClockId, - IN UINT32 ClockRate + IN UINT32 ClockRate, + IN UINT32 SkipTurbo ) { RPI_FW_SET_CLOCK_RATE_CMD *Cmd; @@ -822,6 +823,7 @@ RpiFirmwareSetClockRate ( Cmd->TagHead.TagValueSize =3D 0; Cmd->TagBody.ClockId =3D ClockId; Cmd->TagBody.ClockRate =3D ClockRate; + Cmd->TagBody.SkipTurbo =3D SkipTurbo; Cmd->EndTag =3D 0; =20 Status =3D MailboxTransaction (Cmd->BufferHead.BufferSize, RPI_MBOX_VC_C= HANNEL, &Result); diff --git a/Platform/RaspberryPi/RPi3/Include/Protocol/RpiFirmware.h b/Pla= tform/RaspberryPi/RPi3/Include/Protocol/RpiFirmware.h index f3e3d1e99eba..cc4e2786e653 100644 --- a/Platform/RaspberryPi/RPi3/Include/Protocol/RpiFirmware.h +++ b/Platform/RaspberryPi/RPi3/Include/Protocol/RpiFirmware.h @@ -44,7 +44,8 @@ typedef EFI_STATUS (EFIAPI *SET_CLOCK_RATE) ( IN UINT32 ClockId, - OUT UINT32 ClockRate + OUT UINT32 ClockRate, + IN UINT32 SkipTurbo ); =20 typedef diff --git a/Platform/RaspberryPi/RPi3/RPi3.dec b/Platform/RaspberryPi/RPi3= /RPi3.dec index ab3788237861..56eac262502e 100644 --- a/Platform/RaspberryPi/RPi3/RPi3.dec +++ b/Platform/RaspberryPi/RPi3/RPi3.dec @@ -39,13 +39,14 @@ [PcdsFixedAtBuild.common] =20 [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] gRaspberryPiTokenSpaceGuid.PcdCpuClock|0|UINT32|0x0000000d - gRaspberryPiTokenSpaceGuid.PcdSdIsArasan|0|UINT32|0x0000000e - gRaspberryPiTokenSpaceGuid.PcdMmcForce1Bit|0|UINT32|0x0000000f - gRaspberryPiTokenSpaceGuid.PcdMmcForceDefaultSpeed|0|UINT32|0x00000010 - gRaspberryPiTokenSpaceGuid.PcdMmcSdDefaultSpeedMHz|0|UINT32|0x00000011 - gRaspberryPiTokenSpaceGuid.PcdMmcSdHighSpeedMHz|0|UINT32|0x00000012 - gRaspberryPiTokenSpaceGuid.PcdMmcDisableMulti|0|UINT32|0x00000013 - gRaspberryPiTokenSpaceGuid.PcdDebugEnableJTAG|0|UINT32|0x00000014 - gRaspberryPiTokenSpaceGuid.PcdDebugShowUEFIExit|0|UINT32|0x00000015 + gRaspberryPiTokenSpaceGuid.PcdCustomCpuClock|0|UINT32|0x0000000e + gRaspberryPiTokenSpaceGuid.PcdSdIsArasan|0|UINT32|0x0000000f + gRaspberryPiTokenSpaceGuid.PcdMmcForce1Bit|0|UINT32|0x00000010 + gRaspberryPiTokenSpaceGuid.PcdMmcForceDefaultSpeed|0|UINT32|0x00000011 + gRaspberryPiTokenSpaceGuid.PcdMmcSdDefaultSpeedMHz|0|UINT32|0x00000012 + gRaspberryPiTokenSpaceGuid.PcdMmcSdHighSpeedMHz|0|UINT32|0x00000013 + gRaspberryPiTokenSpaceGuid.PcdMmcDisableMulti|0|UINT32|0x00000014 + gRaspberryPiTokenSpaceGuid.PcdDebugEnableJTAG|0|UINT32|0x00000015 + gRaspberryPiTokenSpaceGuid.PcdDebugShowUEFIExit|0|UINT32|0x00000016 gRaspberryPiTokenSpaceGuid.PcdDisplayEnableVModes|0|UINT32|0x00000017 gRaspberryPiTokenSpaceGuid.PcdDisplayEnableSShot|0|UINT32|0x00000018 diff --git a/Platform/RaspberryPi/RPi3/RPi3.dsc b/Platform/RaspberryPi/RPi3= /RPi3.dsc index ad8fb03ab305..2b9e619ad55c 100644 --- a/Platform/RaspberryPi/RPi3/RPi3.dsc +++ b/Platform/RaspberryPi/RPi3/RPi3.dsc @@ -393,6 +393,7 @@ [PcdsDynamicHii.common.DEFAULT] # =20 gRaspberryPiTokenSpaceGuid.PcdCpuClock|L"CpuClock"|gConfigDxeFormSetGuid= |0x0|0 + gRaspberryPiTokenSpaceGuid.PcdCustomCpuClock|L"CustomCpuClock"|gConfigDx= eFormSetGuid|0x0|600 =20 # # SD-related. --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#43173): https://edk2.groups.io/g/devel/message/43173 Mute This Topic: https://groups.io/mt/32287843/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-