flash/nor/at91samd: Use 32-bit register writes for ST-Link compat
[fw/openocd] / tcl / target / avr32.cfg
index 7fe98b2ce4dad3aa212072169097a6e878c2043c..e16d11439c998cb109de893e3ac0905dc22f3a7a 100644 (file)
@@ -1,18 +1,18 @@
-set  _CHIPNAME avr32
-set  _ENDIAN big
+# SPDX-License-Identifier: GPL-2.0-or-later
 
-# force an error till we get a good number
-set _CPUTAPID  0x21e8203f
+set _CHIPNAME avr32
+set _ENDIAN big
 
-jtag_nsrst_delay 100
+set _CPUTAPID 0x21e8203f
+
+adapter srst delay 100
 jtag_ntrst_delay 100
 
 reset_config trst_and_srst separate
 
 # jtag scan chain
 # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
-jtag newtap $_CHIPNAME cpu -irlen 5  -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID
+jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_CPUTAPID
 
 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
 target create $_TARGETNAME avr32_ap7k -endian $_ENDIAN -chain-position $_TARGETNAME
-