1 # SPDX-License-Identifier: GPL-2.0-or-later
3 if { [info exists CHIPNAME] } {
4 set _CHIPNAME $CHIPNAME
9 if { [info exists ENDIAN] } {
15 if { [info exists CPUTAPID] } {
16 set _CPUTAPID $CPUTAPID
18 set _CPUTAPID 0x00526fa1
21 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
23 # Create the GDB Target.
24 set _TARGETNAME $_CHIPNAME.cpu
25 target create $_TARGETNAME fa526 -endian $_ENDIAN -chain-position $_TARGETNAME
27 # There is 16K of SRAM on this chip
28 # FIXME: flash programming is not working by using this work area. So comment this out for now.
29 #$_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x4000 -work-area-backup 1
31 # This chip has a DCC ... use it
32 arm7_9 dcc_downloads enable