From b95effbdd7996694793b57e624cc56bb4131ffdb Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 1 Mar 2025 14:09:53 +0100 Subject: [PATCH] machine: bump rp2350 CPUFrequency to 150 MHz (#4766) Leave rp2040 speed bump to 200 MHz for a future change, because it requires bumping the core voltage as well[0]. [0] https://github.com/raspberrypi/pico-sdk/releases/tag/2.1.1 --- src/machine/machine_rp2_2040.go | 1 + src/machine/machine_rp2_2350.go | 1 + src/machine/machine_rp2_clocks.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/machine/machine_rp2_2040.go b/src/machine/machine_rp2_2040.go index 0691b8d77..e7ae38c06 100644 --- a/src/machine/machine_rp2_2040.go +++ b/src/machine/machine_rp2_2040.go @@ -9,6 +9,7 @@ import ( ) const ( + cpuFreq = 125 * MHz _NUMBANK0_GPIOS = 30 _NUMBANK0_IRQS = 4 _NUMIRQ = 32 diff --git a/src/machine/machine_rp2_2350.go b/src/machine/machine_rp2_2350.go index 5ef5098c6..d20bb2d78 100644 --- a/src/machine/machine_rp2_2350.go +++ b/src/machine/machine_rp2_2350.go @@ -9,6 +9,7 @@ import ( ) const ( + cpuFreq = 150 * MHz _NUMBANK0_GPIOS = 48 _NUMBANK0_IRQS = 6 rp2350ExtraReg = 1 diff --git a/src/machine/machine_rp2_clocks.go b/src/machine/machine_rp2_clocks.go index 520a8d333..d6059896e 100644 --- a/src/machine/machine_rp2_clocks.go +++ b/src/machine/machine_rp2_clocks.go @@ -10,7 +10,7 @@ import ( ) func CPUFrequency() uint32 { - return 125 * MHz + return cpuFreq } // clockIndex identifies a hardware clock