diff options
author | Tim Newsome <tim@sifive.com> | 2023-02-28 10:53:40 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2023-02-28 10:54:48 -0800 |
commit | 4f97898889e64579a35cf55be80c71c37ab4dd09 (patch) | |
tree | cec668206ffd1cf00f6fdbb02761187dfb49b059 /tcl/interface | |
parent | b8f4b8887b0ad51e657bbbbc244ff69455984a50 (diff) | |
parent | d1b882f2c014258be5397067e45848fa5465b78b (diff) | |
download | riscv-openocd-4f97898889e64579a35cf55be80c71c37ab4dd09.zip riscv-openocd-4f97898889e64579a35cf55be80c71c37ab4dd09.tar.gz riscv-openocd-4f97898889e64579a35cf55be80c71c37ab4dd09.tar.bz2 |
Merge commit 'd1b882f2c014258be5397067e45848fa5465b78b' into from_upstream
Conflicts:
doc/openocd.texi
src/target/riscv/riscv-013.c
src/target/riscv/riscv.c
Change-Id: I8cd557a10c3d5beeaed05ecc05d4c325a9ee7e70
Diffstat (limited to 'tcl/interface')
-rw-r--r-- | tcl/interface/beaglebone-jtag-native.cfg | 28 | ||||
-rw-r--r-- | tcl/interface/beaglebone-swd-native.cfg | 29 | ||||
-rw-r--r-- | tcl/interface/ftdi/esp32s2_kaluga_v1.cfg | 29 | ||||
-rw-r--r-- | tcl/interface/ftdi/tigard.cfg | 19 |
4 files changed, 105 insertions, 0 deletions
diff --git a/tcl/interface/beaglebone-jtag-native.cfg b/tcl/interface/beaglebone-jtag-native.cfg new file mode 100644 index 0000000..cd32ca4 --- /dev/null +++ b/tcl/interface/beaglebone-jtag-native.cfg @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# BeagleBone native GPIO interface for JTAG +# +# This is best used with a fast buffer but it is also suitable for a direct +# connection if the target voltage matches the host's IO voltage (typically +# 3.3V) and the cable is short. +# +# DO NOT APPLY VOLTAGE TO THE GPIO PINS UNTIL SYS_RESETN IS HIGH. +# +# Do not forget the GND connection. + +adapter driver am335xgpio + +# Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET +# These depend on the system clock, calibrated for stock 1 GHz BeagleBoneBlack +# am335xgpio speed SPEED_COEFF SPEED_OFFSET +am335xgpio speed_coeffs 600000 575 + +am335xgpio tdo_num 20 +am335xgpio tdi_num 60 +am335xgpio tms_num 4 +am335xgpio tck_num 2 + +am335xgpio led_num 51 +am335xgpio led_on_state on + +am335xgpio srst_num 65 +reset_config srst_only srst_push_pull diff --git a/tcl/interface/beaglebone-swd-native.cfg b/tcl/interface/beaglebone-swd-native.cfg new file mode 100644 index 0000000..f7bff6e --- /dev/null +++ b/tcl/interface/beaglebone-swd-native.cfg @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# BeagleBone native GPIO interface for SWD +# +# This is best used with a fast buffer but it is also suitable for a direct +# connection if the target voltage matches the host's IO voltage (typically +# 3.3V) and the cable is short. +# +# DO NOT APPLY VOLTAGE TO THE GPIO PINS UNTIL SYS_RESETN IS HIGH. +# +# Do not forget the GND connection. + +adapter driver am335xgpio + +# Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET +# These depend on the system clock, calibrated for stock 1 GHz BeagleBoneBlack +# am335xgpio speed SPEED_COEFF SPEED_OFFSET +am335xgpio speed_coeffs 600000 575 + +am335xgpio swclk_num 2 +am335xgpio swdio_num 4 +am335xgpio swdio_dir_num 60 +am335xgpio swdio_dir_output_state on + +# USR0 LED +am335xgpio led_num 53 +am335xgpio led_on_state on + +am335xgpio srst_num 65 +reset_config srst_only srst_push_pull diff --git a/tcl/interface/ftdi/esp32s2_kaluga_v1.cfg b/tcl/interface/ftdi/esp32s2_kaluga_v1.cfg new file mode 100644 index 0000000..1880bcb --- /dev/null +++ b/tcl/interface/ftdi/esp32s2_kaluga_v1.cfg @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Driver for the FT2232H JTAG chip on the Espressif Kaluga-1 ESP32-S2 board +# (and most other FT2232H and FT232H based boards) +# +# JTAG DIP switch (labelled SW5 in the schematic) should be "ON" for lines +# labelled TCK, TDO, TDI and TWS, to connect the FT2232H to the ESP32-S2. +# + +adapter driver ftdi +ftdi vid_pid 0x0403 0x6010 0x0403 0x6014 + +# interface 1 is the uart +ftdi channel 0 + +# TCK, TDI, TDO, TMS: ADBUS0-3 +# TRST/SRST: ADBUS5 (unused for now) +# LEDs: ACBUS3-4 (inverted) + +ftdi layout_init 0x0008 0x180b +ftdi layout_signal LED -ndata 0x0800 +ftdi layout_signal LED2 -ndata 0x1000 + +# ESP32* series chips do not have a TRST input, and the SRST line is connected +# to the EN pin. +# The target code doesn't handle SRST reset properly yet, so this is +# commented out: +# ftdi layout_signal nSRST -oe 0x0020 +# reset_config srst_only diff --git a/tcl/interface/ftdi/tigard.cfg b/tcl/interface/ftdi/tigard.cfg new file mode 100644 index 0000000..43ce0ad --- /dev/null +++ b/tcl/interface/ftdi/tigard.cfg @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Tigard: An FTDI FT2232H-based multi-protocol tool for hardware hacking. +# https://github.com/tigard-tools/tigard + +adapter driver ftdi + +ftdi device_desc "Tigard V1.1" +ftdi vid_pid 0x0403 0x6010 + +ftdi channel 1 + +ftdi layout_init 0x0038 0x003b +ftdi layout_signal nTRST -data 0x0010 +ftdi layout_signal nSRST -data 0x0020 + +# This board doesn't support open-drain reset modes since its output buffer is +# always enabled. +reset_config srst_push_pull trst_push_pull |