set _ENDIAN little
}
-if { [info exists CPUTAPID ] } {
+if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x40700f0f
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
+target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME
$_TARGETNAME configure -event reset-start {
# start off real slow when we're running off internal RC oscillator
- jtag_khz 32
+ adapter_khz 32
}
proc peek32 {address} {
echo "Master clock ok."
# Now that we're up and running, crank up speed!
- global post_reset_khz ; jtag_khz $post_reset_khz
+ global post_reset_khz ; adapter_khz $post_reset_khz
echo "Configuring the SDRAM controller..."