TCL scripts: update to current "flash bank" syntax
[fw/openocd] / tcl / board / topas910.cfg
index 450a75b8d2418fdda502ede79a522fef0858f753..333b016ba1b6f5a668510175775e84e37e5d4f4c 100644 (file)
@@ -53,7 +53,7 @@ proc topas910_init { } {
 #  //
 #  // Configure SDRAM type parameter
 #  _DMC_MEMORY_CFG  = 0x00008011;
-#  _DMC_USER_CONFIG = 0x00000011;   
+#  _DMC_USER_CONFIG = 0x00000011;
 #  // 32 bit memory interface
 #
 #
@@ -99,9 +99,9 @@ proc topas910_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
 
 }
@@ -114,5 +114,6 @@ 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 0x2000000 2 2 0
+#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x20000000 0x2000000 2 2 $_TARGETNAME