3 if { [info exists CHIPNAME] } {
4 set _CHIPNAME $CHIPNAME
9 if { [info exists ENDIAN] } {
15 # IDs for all currently known PXA3xx chips
16 if { [info exists CPUTAPID_PXA30X_A0 ] } {
17 set _CPUTAPID_PXA30X_A0 $CPUTAPID_PXA30X_A0
19 set _CPUTAPID_PXA30X_A0 0x0E648013
21 if { [info exists CPUTAPID_PXA30X_A1 ] } {
22 set _CPUTAPID_PXA30X_A1 $CPUTAPID_PXA30X_A1
24 set _CPUTAPID_PXA30X_A1 0x1E648013
26 if { [info exists CPUTAPID_PXA31X_A0 ] } {
27 set _CPUTAPID_PXA31X_A0 $CPUTAPID_PXA31X_A0
29 set _CPUTAPID_PXA31X_A0 0x0E649013
31 if { [info exists CPUTAPID_PXA31X_A1 ] } {
32 set _CPUTAPID_PXA31X_A1 $CPUTAPID_PXA31X_A1
34 set _CPUTAPID_PXA31X_A1 0x1E649013
36 if { [info exists CPUTAPID_PXA31X_A2 ] } {
37 set _CPUTAPID_PXA31X_A2 $CPUTAPID_PXA31X_A2
39 set _CPUTAPID_PXA31X_A2 0x2E649013
41 if { [info exists CPUTAPID_PXA31X_B0 ] } {
42 set _CPUTAPID_PXA31X_B0 $CPUTAPID_PXA31X_B0
44 set _CPUTAPID_PXA31X_B0 0x3E649013
46 if { [info exists CPUTAPID_PXA32X_B1 ] } {
47 set _CPUTAPID_PXA32X_B1 $CPUTAPID_PXA32X_B1
49 set _CPUTAPID_PXA32X_B1 0x5E642013
51 if { [info exists CPUTAPID_PXA32X_B2 ] } {
52 set _CPUTAPID_PXA32X_B2 $CPUTAPID_PXA32X_B2
54 set _CPUTAPID_PXA32X_B2 0x6E642013
56 if { [info exists CPUTAPID_PXA32X_C0 ] } {
57 set _CPUTAPID_PXA32X_C0 $CPUTAPID_PXA32X_C0
59 set _CPUTAPID_PXA32X_C0 0x7E642013
62 # set jtag_nsrst_delay to the delay introduced by your reset circuit
63 # the rest of the needed delays are built into the openocd program
66 # set the jtag_ntrst_delay to the delay introduced by a reset circuit
67 # the rest of the needed delays are built into the openocd program
70 set _TARGETNAME $_CHIPNAME.cpu
71 jtag newtap $_CHIPNAME cpu -irlen 11 -ircapture 0x1 -irmask 0x7f \
72 -expected-id $_CPUTAPID_PXA30X_A0 \
73 -expected-id $_CPUTAPID_PXA30X_A1 \
74 -expected-id $_CPUTAPID_PXA31X_A0 \
75 -expected-id $_CPUTAPID_PXA31X_A1 \
76 -expected-id $_CPUTAPID_PXA31X_A2 \
77 -expected-id $_CPUTAPID_PXA31X_B0 \
78 -expected-id $_CPUTAPID_PXA32X_B1 \
79 -expected-id $_CPUTAPID_PXA32X_B2 \
80 -expected-id $_CPUTAPID_PXA32X_C0
82 target create $_TARGETNAME xscale -endian $_ENDIAN \
83 -chain-position $_TARGETNAME -variant pxa3xx
85 # work area in internal RAM.
86 $_TARGETNAME configure -work-area-phys 0x5c030000 -work-area-size 0x10000