tcl/board: add SPDX tag
[fw/openocd] / tcl / board / at91rm9200-dk.cfg
index af6e3df2025511b86186b002a2e26be323596d91..3751103fcdda54e0a4cc141af64d86ae4cda7ad4 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 #
 # This is for the "at91rm9200-DK" (not the EK) eval board.
 #
@@ -5,18 +7,21 @@
 #
 # It has atmel at91rm9200 chip.
 source [find target/at91rm9200.cfg]
+
+reset_config trst_and_srst
+
 $_TARGETNAME configure -event gdb-attach { reset init }
 $_TARGETNAME configure -event reset-init { at91rm9200_dk_init }
 
 #flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
 set _FLASHNAME $_CHIPNAME.flash
-flash_bank $_FLASHNAME cfi 0x10000000 0x00200000 2 2 $_TARGETNAME
+flash bank $_FLASHNAME cfi 0x10000000 0x00200000 2 2 $_TARGETNAME
 
 
 proc at91rm9200_dk_init { } {
     # Try to run at 1khz... Yea, that slow!
     # Chip is really running @ 32khz
-    adapter_khz 8
+    adapter speed 8
 
     mww 0xfffffc64 0xffffffff
     ##  disable all clocks but system clock
@@ -42,7 +47,7 @@ proc at91rm9200_dk_init { } {
     #========================================
     # CPU now runs at 180mhz
     # SYS runs at 60mhz.
-    adapter_khz 40000
+    adapter speed 40000
     #========================================