target|board: Add Intel (Altera) Arria 10 target and related board
[openocd.git] / tcl / target / armada370.cfg
blob5b84637a2c8532c465d1e9c009077886225bc655
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 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
21 set _TARGETNAME $_CHIPNAME.cpu
22 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
23 target create $_TARGETNAME cortex_a -dap $_CHIPNAME.dap
25 proc armada370_dbginit {target} {
26      cortex_a dbginit
29 $_TARGETNAME configure -event reset-assert-post "armada370_dbginit $_TARGETNAME"
31 # We need to init now, so we can run the apsel command.
32 init
33 dap apsel 1