mips: optimize write code for speed
[fw/openocd] / tcl / board / topasa900.cfg
index 9d3ced94961669bcd656491ffbccdaae26d1ce9a..2a388d5116f3d7fb99bb5d217ec436683e7dfff6 100644 (file)
@@ -1,4 +1,4 @@
-# Thanks to Pieter Conradie for this script! 
+# Thanks to Pieter Conradie for this script!
 # Target:    Toshiba TOPAS900 -- TMPA900 Starterkit
 ######################################
 
@@ -105,21 +105,22 @@ proc topasa900_init { } {
        mww 0xf4300004 0x00000000
 
        sleep 10
-#      jtag_speed 10000
+#      adapter_khz NNNN
 
-# remap off in case of IROM boot 
+# remap off in case of IROM boot
        mww 0xf0000004 0x00000001
 
 }
 
 # comment the following out if usinf J-Link, it soes not support DCC
-arm7_9 dcc_downloads enable       # Enable faster DCC downloads
+arm7_9 dcc_downloads enable       ;# Enable faster DCC downloads
 
 
 #####################
 # Flash configuration
 #####################
 
-#flash bank cfi <base> <size> <chip width> <bus width> <target#>
-flash bank cfi 0x20000000 0x1000000 2 2 0
+#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x20000000 0x1000000 2 2 $_TARGETNAME