1 #Marvell/Intel PXA270 Script
3 if { [info exists CHIPNAME] } {
4 set _CHIPNAME $CHIPNAME
9 if { [info exists ENDIAN] } {
15 #IDs for pxa270. Are there more?
16 if { [info exists CPUTAPID ] } {
17 set _CPUTAPID $CPUTAPID
20 set _CPUTAPID 0x49265013
23 if { [info exists CPUTAPID2 ] } {
24 set _CPUTAPID2 $CPUTAPID2
27 set _CPUTAPID2 0x79265013
31 # set jtag_nsrst_delay to the delay introduced by your reset circuit
32 # the rest of the needed delays are built into the openocd program
34 # set the jtag_ntrst_delay to the delay introduced by a reset circuit
35 # the rest of the needed delays are built into the openocd program
38 set _TARGETNAME $_CHIPNAME.cpu
39 jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID -expected-id $_CPUTAPID2
41 target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
42 # maps to PXA internal RAM. If you are using a PXA255
43 # you must initialize SDRAM or leave this option off
44 $_TARGETNAME configure -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0