diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2022-11-03 08:48:53 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2022-11-15 09:54:06 +0000 |
commit | 1d04ef3e55843f9880b7bbab32f564d2018a4b93 (patch) | |
tree | d9302afdd625f54a2005d5ea37506103aebde210 /tcl/interface | |
parent | 4e077fddadd7d8fedacc61f59ce18a700f6759cf (diff) | |
download | riscv-openocd-1d04ef3e55843f9880b7bbab32f564d2018a4b93.zip riscv-openocd-1d04ef3e55843f9880b7bbab32f564d2018a4b93.tar.gz riscv-openocd-1d04ef3e55843f9880b7bbab32f564d2018a4b93.tar.bz2 |
tcl/interface: fix raspberrypi2-native.cfg speed coefficient
The speed coefficient for Raspberry Pi 2 was probably calibrated
for a scaled down clock frequency.
To prevent JTAG/SWD overclocking, use the value corresponding
to the 'official' maximum CPU clock.
Change-Id: Iaff58b092198dce6d6552c9d31d6a3ba4aaaa2d5
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7305
Tested-by: jenkins
Reviewed-by: Jonathan Bell <jonathan@raspberrypi.com>
Diffstat (limited to 'tcl/interface')
-rw-r--r-- | tcl/interface/raspberrypi2-native.cfg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcl/interface/raspberrypi2-native.cfg b/tcl/interface/raspberrypi2-native.cfg index 5faabed..d5edded 100644 --- a/tcl/interface/raspberrypi2-native.cfg +++ b/tcl/interface/raspberrypi2-native.cfg @@ -15,9 +15,9 @@ adapter driver bcm2835gpio bcm2835gpio peripheral_base 0x3F000000 # Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET -# These depend on system clock, calibrated for stock 700MHz +# These depend on system clock, calibrated for scaling_max_freq 900MHz # bcm2835gpio speed SPEED_COEFF SPEED_OFFSET -bcm2835gpio speed_coeffs 146203 36 +bcm2835gpio speed_coeffs 225000 36 # Each of the JTAG lines need a gpio number set: tck tms tdi tdo # Header pin numbers: 23 22 19 21 |