cortex_a: fix endiannes issues on TI TMS570
[openocd.git] / tcl / target / lpc3250.cfg
blob14bb0f61ba6d0b4d3d17249f34dd47909140780f
1 # lpc3250 config
4 if { [info exists CHIPNAME] } {
5    set _CHIPNAME $CHIPNAME
6 } else {
7    set _CHIPNAME lpc3250
10 if { [info exists ENDIAN] } {
11    set _ENDIAN $ENDIAN
12 } else {
13    set _ENDIAN little
16 if { [info exists CPUTAPID] } {
17    set _CPUTAPID $CPUTAPID
18 } else {
19    set _CPUTAPID 0x17900f0f
22 if { [info exists CPUTAPID_REV_A0] } {
23    set _CPUTAPID_REV_A0 $CPUTAPID_REV_A0
24 } else {
25    set _CPUTAPID_REV_A0 0x17926f0f
28 if { [info exists SJCTAPID] } {
29    set _SJCTAPID $SJCTAPID
30 } else {
31    set _SJCTAPID 0x1b900f0f
34 jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_SJCTAPID
36 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID \
37      -expected-id $_CPUTAPID_REV_A0
39 set _TARGETNAME $_CHIPNAME.cpu
40 target create $_TARGETNAME arm926ejs -endian little -chain-position $_TARGETNAME -work-area-phys 0x00000000 -work-area-size 0x7d0000 -work-area-backup 0
42 proc power_restore {} { echo "Sensed power restore. No action." }
43 proc srst_deasserted {} { echo "Sensed nSRST deasserted. No action." }