1 # SPDX-License-Identifier: GPL-2.0-or-later
3 #Marvell/Intel PXA270 Script
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 if { [info exists ENDIAN] } {
17 #IDs for pxa270. Are there more?
18 if { [info exists CPUTAPID] } {
19 set _CPUTAPID $CPUTAPID
22 set _CPUTAPID 0x49265013
25 if { [info exists CPUTAPID2] } {
26 set _CPUTAPID2 $CPUTAPID2
29 set _CPUTAPID2 0x79265013
32 if { [info exists CPUTAPID3] } {
33 set _CPUTAPID2 $CPUTAPID3
36 set _CPUTAPID3 0x89265013
39 # set adapter srst delay to the delay introduced by your reset circuit
40 # the rest of the needed delays are built into the openocd program
41 adapter srst delay 260
42 # set the jtag_ntrst_delay to the delay introduced by a reset circuit
43 # the rest of the needed delays are built into the openocd program
46 set _TARGETNAME $_CHIPNAME.cpu
47 jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID -expected-id $_CPUTAPID2 -expected-id $_CPUTAPID3
49 target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME
50 # maps to PXA internal RAM. If you are using a PXA255
51 # you must initialize SDRAM or leave this option off
52 $_TARGETNAME configure -work-area-phys 0x5c000000 -work-area-size 0x10000 -work-area-backup 0