cfg: Fix Kinetis kwikstik/kx config
[openocd.git] / tcl / target / armada370.cfg
blob40c779bdc90e0cbdc1918ad74f377d9d24f3345a
2 # armada370 -- support for the Marvell Armada/370 CPU family
4 # gerg@uclinux.org, OCT-2013
7 if { [info exists CHIPNAME] } {
8    set _CHIPNAME $CHIPNAME
9 } else {
10    set _CHIPNAME armada370
13 if { [info exists CPUTAPID] } {
14    set _CPUTAPID $CPUTAPID
15 } else {
16    set _CPUTAPID 0x4ba00477
19 jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
21 set _TARGETNAME $_CHIPNAME.cpu
22 target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap
24 proc armada370_dbginit {target} {
25      cortex_a dbginit
28 $_TARGETNAME configure -event reset-assert-post "armada370_dbginit $_TARGETNAME"
30 # We need to init now, so we can run the apsel command.
31 init
32 dap apsel 1