drivers/vdebug: add support for DAP level interface
[fw/openocd] / tcl / board / vd_a53x2_dap.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 # Cadence virtual debug interface
3 # Arm Cortex A53x2 through DAP
4
5 source [find interface/vdebug.cfg]
6
7 set _CORES 2
8 set _CHIPNAME a53
9 set _MEMSTART 0x00000000
10 set _MEMSIZE 0x1000000
11
12 # vdebug select transport
13 transport select dapdirect_swd
14
15 # JTAG reset config, frequency and reset delay
16 adapter speed 50000
17 adapter srst delay 5
18
19 # BFM hierarchical path and input clk period
20 vdebug bfm_path tbench.u_vd_swdp_bfm 10ns
21
22 # DMA Memories to access backdoor (up to 4)
23 vdebug mem_path tbench.u_memory.mem_array $_MEMSTART $_MEMSIZE
24
25 source [find target/swj-dp.tcl]
26
27 swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf
28
29 source [find target/vd_aarch64.cfg]