From nobody Fri Apr 19 15:28:55 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+43317+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+43317+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1562259097; cv=none; d=zoho.com; s=zohoarc; b=lVsxyiEZwKV6vpeA6ZQLZuZ6yez2QpPMyais6/BJ+KJqHvjcMPE62UMpIpmGJ5cIh8NHfawAJalgXyhmZqYaYkLGs1PtYqgmowVOXDXPX9PapownUsSTfpzBR0Z5LwmpyjVdSSLqUQaE1Ik5NKLg6atBgAc13jPO84HfqAfMKqE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562259097; 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=KdIKC1CP8e/qS52+Qb2zZtgYTGJsjXV1Y6h9NZG4jGk=; b=lvL/n7Z7HKWv6eg1C5lh+YNxkjvU1pt7ucaYGScloafh7wtnvoj5q1ys/cnHqPF5qWHGyBdzyKhoy9YHb/sCsq2+oLcvYXUV2OdmaqSfJ0oHpat4Ez2B9Mz8vd07OxJBvaRdTCQskGFM2RTZsyLb8605TbjPHg2KvkUl9oy8tmA= 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+43317+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562259097309650.1291795014077; Thu, 4 Jul 2019 09:51:37 -0700 (PDT) Return-Path: X-Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by groups.io with SMTP; Thu, 04 Jul 2019 09:51:36 -0700 X-Received: by mail-ed1-f67.google.com with SMTP id e3so5931248edr.10 for ; Thu, 04 Jul 2019 09:51:36 -0700 (PDT) X-Gm-Message-State: APjAAAVuP0F/EKeEZqnRstxQnQi/+bOrPiBgnVIEsIb4kkAaqCmVgEuI FKogLJYQyg+o28aECseH4jP3302sc90= X-Google-Smtp-Source: APXvYqzzed6M7tX/1ObR6UGooBCdX97LFYzU3GQLA5BHoRwi2PElleCCN14ipwxDWhg4/mDBNC5KyA== X-Received: by 2002:a17:906:bb11:: with SMTP id jz17mr40655635ejb.185.1562259094448; Thu, 04 Jul 2019 09:51:34 -0700 (PDT) X-Received: from localhost.localdomain ([84.203.93.8]) by smtp.gmail.com with ESMTPSA id i18sm1838063ede.65.2019.07.04.09.51.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jul 2019 09:51:33 -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 v2 1/2] Platform/RPi3: Set the boot option of UEFI Shell as non-active Date: Thu, 4 Jul 2019 17:51:19 +0100 Message-Id: <20190704165120.8800-2-pete@akeo.ie> In-Reply-To: <20190704165120.8800-1-pete@akeo.ie> References: <20190704165120.8800-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=1562259096; bh=u0rfsZOpCGU2v9tssr2alEU5QMT41UD829PprofhOfY=; h=Cc:Date:From:Reply-To:Subject:To; b=ifCqhLxtOOyM9F3WjmFOtUfk6bF3XgbbgDpjxIdtSbLXwoBc8BbWoCayihqw2njQqds QsN/Gp77Amp81s5Ia5GQsw97N4/IprO/yklpPNX7/fVOvfabn9ul8CKePA1rTi7B3fBS+ j+HkYn001qdI24Xm2YCnU4WZ/Np2kon/sVI= 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 Reviewed-by: Leif Lindholm --- Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/PlatformBm.c | 3 = ++- Platform/RaspberryPi/RPi3/Readme.md | 6 = +++--- 2 files changed, 5 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..12c3829d28f5 100644 --- a/Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/PlatformBm.c +++ b/Platform/RaspberryPi/RPi3/Library/PlatformBootManagerLib/PlatformBm.c @@ -460,7 +460,8 @@ PlatformRegisterOptionsAndKeys ( =20 RemoveStaleBootOptions (); =20 - ShellOption =3D PlatformRegisterFvBootOption (&gUefiShellFileGuid, L"UEF= I Shell", LOAD_OPTION_ACTIVE); + ShellOption =3D PlatformRegisterFvBootOption (&gUefiShellFileGuid, + L"UEFI 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 (#43317): https://edk2.groups.io/g/devel/message/43317 Mute This Topic: https://groups.io/mt/32309761/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 Fri Apr 19 15:28:55 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+43318+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+43318+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1562259100; cv=none; d=zoho.com; s=zohoarc; b=XlPp0WtK8Grydr+xUg/23f/4afPenz+9YxjQGRkKTI/sGNEpdLZfurx80u9+jEEhLyBY0uWlBfXzwyHFIAS8Rxguzc7xC63MV3+p92aL5CBxNlYz9AKUz21tmXAh0rMvx/h3enGOKoDWW6PJVDA4peKa9KLQFh60zRtKnxNWzxI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562259100; 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=roSq//TXbLBWjuzNSdPHHqHfzxHmmZK+boxR1Ukj0RM=; b=EXfb0FdkMKanktqTSR4B/NunRlhOTK3rAUJsETVsK8cOgYGUP8QeIVRqrMja4SqiN8VyYMKC/VHoS3YrUl8O+x+ZACP3EtoGAr/y0kqUitx57z1E7SkJMJul7sfs5Nx42KUDZiFufIc1+XnNm6wmavGZq7EguOUtjkB09hiCgao= 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+43318+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562259100017570.1026670192568; Thu, 4 Jul 2019 09:51:40 -0700 (PDT) Return-Path: X-Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by groups.io with SMTP; Thu, 04 Jul 2019 09:51:38 -0700 X-Received: by mail-ed1-f53.google.com with SMTP id d4so5932784edr.13 for ; Thu, 04 Jul 2019 09:51:37 -0700 (PDT) X-Gm-Message-State: APjAAAWA4T+jF2i5KTNRN7pJ6fsEJZRUluFaotqKCjA+G3M9wfjl2QFc IoXmV5JiO3J1ybQlW6Hd8QdpjWEDu84= X-Google-Smtp-Source: APXvYqx/zmGIuZuDfqECX/sr3IwTbVVck9vb5rDR/YZ4yHRlhR1qEacT5Bbfx6vV2v9atbKnZfG6EA== X-Received: by 2002:a17:906:7243:: with SMTP id n3mr4044917ejk.112.1562259096035; Thu, 04 Jul 2019 09:51:36 -0700 (PDT) X-Received: from localhost.localdomain ([84.203.93.8]) by smtp.gmail.com with ESMTPSA id i18sm1838063ede.65.2019.07.04.09.51.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jul 2019 09:51:35 -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 v2 2/2] Platform/Rpi3: Add custom CPU frequency support Date: Thu, 4 Jul 2019 17:51:20 +0100 Message-Id: <20190704165120.8800-3-pete@akeo.ie> In-Reply-To: <20190704165120.8800-1-pete@akeo.ie> References: <20190704165120.8800-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=1562259098; bh=6Q+88JYaeEu+zF8nNxKQk/RVH95ItbSuZnFNDe5M7lY=; h=Cc:Date:From:Reply-To:Subject:To; b=lyFS18nVPaSYfEZCUaZ2IIvY4S9MSSDa71wdcXaByQQAQPCX3/EGtoWh/N3/l+RilAl Z4VnTuXVXoccOxOXP9+sb67tf2khHDXIuEnRlMjxc8bLhPcBeJIErBACM/O2va71vQQYs dnZJuKVGt05RZsIyA7WsXF54S8cLECqVmJQ= 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 Reviewed-by: Leif Lindholm --- 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 | 6 +++= +-- Platform/RaspberryPi/RPi3/Include/Protocol/RpiFirmware.h | 3 ++- Platform/RaspberryPi/RPi3/RPi3.dec | 1 + Platform/RaspberryPi/RPi3/RPi3.dsc | 1 + 8 files changed, 47 insertions(+), 4 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..65b45f3e6496 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..9b5ee1946279 100644 --- a/Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c +++ b/Platform/RaspberryPi/RPi3/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.c @@ -799,8 +799,9 @@ STATIC EFI_STATUS EFIAPI RpiFirmwareSetClockRate ( - IN UINT32 ClockId, - IN UINT32 ClockRate + IN UINT32 ClockId, + IN UINT32 ClockRate, + IN BOOLEAN 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 ? 1 : 0; 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..ec70f28efe1a 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 BOOLEAN SkipTurbo ); =20 typedef diff --git a/Platform/RaspberryPi/RPi3/RPi3.dec b/Platform/RaspberryPi/RPi3= /RPi3.dec index ab3788237861..22de439fde8f 100644 --- a/Platform/RaspberryPi/RPi3/RPi3.dec +++ b/Platform/RaspberryPi/RPi3/RPi3.dec @@ -47,5 +47,6 @@ [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, Pc= dsDynamicEx] gRaspberryPiTokenSpaceGuid.PcdMmcDisableMulti|0|UINT32|0x00000013 gRaspberryPiTokenSpaceGuid.PcdDebugEnableJTAG|0|UINT32|0x00000014 gRaspberryPiTokenSpaceGuid.PcdDebugShowUEFIExit|0|UINT32|0x00000015 + gRaspberryPiTokenSpaceGuid.PcdCustomCpuClock|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 (#43318): https://edk2.groups.io/g/devel/message/43318 Mute This Topic: https://groups.io/mt/32309766/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-