tcl/target: add SPDX tag
[fw/openocd] / tcl / target / lpc3250.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # lpc3250 config
4 #
5
6 if { [info exists CHIPNAME] } {
7    set _CHIPNAME $CHIPNAME
8 } else {
9    set _CHIPNAME lpc3250
10 }
11
12 if { [info exists ENDIAN] } {
13    set _ENDIAN $ENDIAN
14 } else {
15    set _ENDIAN little
16 }
17
18 if { [info exists CPUTAPID] } {
19    set _CPUTAPID $CPUTAPID
20 } else {
21    set _CPUTAPID 0x17900f0f
22 }
23
24 if { [info exists CPUTAPID_REV_A0] } {
25    set _CPUTAPID_REV_A0 $CPUTAPID_REV_A0
26 } else {
27    set _CPUTAPID_REV_A0 0x17926f0f
28 }
29
30 if { [info exists SJCTAPID] } {
31    set _SJCTAPID $SJCTAPID
32 } else {
33    set _SJCTAPID 0x1b900f0f
34 }
35
36 jtag newtap $_CHIPNAME sjc -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_SJCTAPID
37
38 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID \
39      -expected-id $_CPUTAPID_REV_A0
40
41 set _TARGETNAME $_CHIPNAME.cpu
42 target create $_TARGETNAME arm926ejs -endian little -chain-position $_TARGETNAME -work-area-phys 0x00000000 -work-area-size 0x7d0000 -work-area-backup 0
43
44 proc power_restore {} { echo "Sensed power restore. No action." }
45 proc srst_deasserted {} { echo "Sensed nSRST deasserted. No action." }