forked from auracaster/openocd
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 <vanekt@fbl.cz> Reviewed-on: https://review.openocd.org/c/openocd/+/9234 Tested-by: jenkins Reviewed-by: Vincent Fazio <vfazio@gmail.com>
This commit is contained in:
@@ -50,12 +50,12 @@ set clocks_per_timing_loop 4
|
||||
if {[string match *bcm2711* $compat]} {
|
||||
set speed_offset 52
|
||||
} elseif {[string match *bcm2837* $compat] || [string match *bcm2710* $compat]} {
|
||||
set speed_offset 34
|
||||
set speed_offset 31
|
||||
} elseif {[string match *bcm2836* $compat] || [string match *bcm2709* $compat]} {
|
||||
set speed_offset 36
|
||||
set speed_offset 25
|
||||
} elseif {[string match *bcm2835* $compat] || [string match *bcm2708* $compat]} {
|
||||
set clocks_per_timing_loop 6
|
||||
set speed_offset 32
|
||||
set speed_offset 23
|
||||
} elseif {[string match *bcm2712* $compat]} {
|
||||
echo "Error: Raspberrypi Pi 5 has moved GPIOs to PCIe connected RP1 chip."
|
||||
echo "Error: Native GPIO handling is not supported, use 'raspberrypi5-gpiod.cfg'"
|
||||
|
||||
Reference in New Issue
Block a user