tcl/board: add SPDX tag
[fw/openocd] / tcl / board / topasa900.cfg
index 5984f81ffa960621d5da9f399499d69321a8f8d9..d6ddc44efe37b53f35a4a42a9f152d40239f12f1 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # Thanks to Pieter Conradie for this script!
 # Target:    Toshiba TOPAS900 -- TMPA900 Starterkit
 ######################################
@@ -37,7 +39,7 @@ proc topasa900_init { } {
 # Init SDRAM
 #  _PMCDRV          = 0x00000071;
 #  //
-#  // Initialize SDRAM timing paramater
+#  // Initialize SDRAM timing parameter
 #  //
 #  _DMC_CAS_LATENCY = 0x00000006;
 #  _DMC_T_DQSS      = 0x00000000;
@@ -105,7 +107,7 @@ proc topasa900_init { } {
        mww 0xf4300004 0x00000000
 
        sleep 10
-#      jtag_khz NNNN
+#      adapter speed NNNN
 
 # remap off in case of IROM boot
        mww 0xf0000004 0x00000001
@@ -113,14 +115,13 @@ proc topasa900_init { } {
 }
 
 # 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 <name> cfi <base> <size> <chip width> <bus width> <target>
 set _FLASHNAME $_CHIPNAME.flash
-flash bank $_FLASHNAME cfi 0x20000000 0x1000000 2 2 0
-
+flash bank $_FLASHNAME cfi 0x20000000 0x1000000 2 2 $_TARGETNAME