d4f710e00838e320994939f83af4d1b59527f848
[fw/openocd] / tcl / target / feroceon.cfg
1 ######################################
2 # Target:    Marvell Feroceon CPU core
3 ######################################
4
5 if { [info exists CHIPNAME] } {
6    set _CHIPNAME $CHIPNAME
7 } else {
8    set _CHIPNAME feroceon
9 }
10
11 if { [info exists ENDIAN] } {
12    set _ENDIAN $ENDIAN
13 } else {
14    set _ENDIAN little
15 }
16
17 if { [info exists CPUTAPID] } {
18    set _CPUTAPID $CPUTAPID
19 } else {
20    set _CPUTAPID 0x20a023d3
21 }
22
23 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
24
25 set _TARGETNAME $_CHIPNAME.cpu
26 target create $_TARGETNAME feroceon -endian $_ENDIAN -chain-position $_TARGETNAME
27
28 reset_config trst_and_srst
29 adapter srst delay 200
30 jtag_ntrst_delay 200