1 ################################################################################
2 # Author: Michael Trensch (MTrensch@googlemail.com)
3 ################################################################################
7 if { [info exists CHIPNAME] } {
8 set _CHIPNAME $CHIPNAME
13 if { [info exists ENDIAN] } {
19 if { [info exists CPUTAPID] } {
20 set _CPUTAPID $CPUTAPID
22 set _CPUTAPID 0x25966021
26 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
28 # that TAP is associated with a target
29 set _TARGETNAME $_CHIPNAME.cpu
30 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME
32 # On netX50 SDRAM is not accessible at offset 0xDEAD0-0xDEADF as it is busy from
33 # DMA controller at init. This function will setup a dummy DMA to free this ares
34 # and must be called before using SDRAM
37 mww 0x1c005830 0x00000001
39 mww 0x1c005104 0xBFFFFFFC
40 mww 0x1c00510c 0x00480001
41 mww 0x1c005110 0x00000001
47 mww 0x1c005830 0x00000000
49 puts "SDRAM Fix executed!"