Skip to content

Commit 3903c80

Browse files
committed
tcl/interface/raspberrypi-native: adjust speed offsets
Change 7732: jtag/drivers/bcm2835gpio: Support all 54 GPIO pins [1] reduces the time needed for GPIO handling. Adjust the speed offsets to the new and faster bcm2835gpio code. Measured with Sigrok/PulseView, sampled at 800 MHz. Configured as SWD with the fast path in the driver - other modes are expected to be slower. Adjusted to keep all half periods of SWCLK in the sampled poll sequence longer or equal than the half period of the nominal adapter speed. Link: [1] https://review.openocd.org/c/openocd/+/7732 Change-Id: Ia9e932dfd7547c8011c1d20d9e90bc0294050e8a Signed-off-by: Tomas Vanek <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/9234 Tested-by: jenkins Reviewed-by: Vincent Fazio <[email protected]>
1 parent 0021ee2 commit 3903c80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tcl/interface/raspberrypi-native.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ set clocks_per_timing_loop 4
5050
if {[string match *bcm2711* $compat]} {
5151
set speed_offset 52
5252
} elseif {[string match *bcm2837* $compat] || [string match *bcm2710* $compat]} {
53-
set speed_offset 34
53+
set speed_offset 31
5454
} elseif {[string match *bcm2836* $compat] || [string match *bcm2709* $compat]} {
55-
set speed_offset 36
55+
set speed_offset 25
5656
} elseif {[string match *bcm2835* $compat] || [string match *bcm2708* $compat]} {
5757
set clocks_per_timing_loop 6
58-
set speed_offset 32
58+
set speed_offset 23
5959
} elseif {[string match *bcm2712* $compat]} {
6060
echo "Error: Raspberrypi Pi 5 has moved GPIOs to PCIe connected RP1 chip."
6161
echo "Error: Native GPIO handling is not supported, use 'raspberrypi5-gpiod.cfg'"

0 commit comments

Comments
 (0)