1 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Freescale Vybrid VF610
7 if { [info exists CHIPNAME] } {
8 set _CHIPNAME $CHIPNAME
13 if { [info exists A5_JTAG_TAPID] } {
14 set _A5_JTAG_TAPID $A5_JTAG_TAPID
16 set _A5_JTAG_TAPID 0x4BA00477
19 if { [info exists A5_SWD_TAPID] } {
20 set _A5_SWD_TAPID $A5_SWD_TAPID
22 set _A5_SWD_TAPID 0x3BA02477
26 set _A5_TAPID $_A5_JTAG_TAPID
28 set _A5_TAPID $_A5_SWD_TAPID
31 source [find target/swj-dp.tcl]
33 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_A5_TAPID
34 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
36 set _TARGETNAME $_CHIPNAME.cpu
37 target create ${_TARGETNAME}0 cortex_a -dap $_CHIPNAME.dap -dbgbase 0xc0088000
38 target create ${_TARGETNAME}1 cortex_m -dap $_CHIPNAME.dap -ap-num 3 -defer-examine