tcl/board: Add AM625 EVM basic support
[fw/openocd] / tcl / board / spear310evb20.cfg
index 887e799395acd284d196ba04587f6b0e02cb8654..c45873ca9923ef724988a5cfe8a1ac3091d39052 100644 (file)
@@ -8,13 +8,12 @@
 # The standard board has JTAG SRST not connected.
 # This script targets such boards using quirky code to bypass the issue.
 #
-# Check ST Application Note (FIXME: put reference) on how to fix SRST on
+# Check ST Application Note AN3321 on how to fix SRST on
 # the board, then use the script board/spear310evb20_mod.cfg
 
 
 source [find mem_helper.tcl]
 source [find target/spear3xx.cfg]
-source [find chip/st/spear/spear310.tcl]
 source [find chip/st/spear/spear3xx_ddr.tcl]
 source [find chip/st/spear/spear3xx.tcl]
 
@@ -25,6 +24,10 @@ arm7_9 fast_memory_access enable
 set _FLASHNAME0 $_CHIPNAME.pnor
 flash bank $_FLASHNAME0 cfi 0x50000000 0x01000000 2 4 $_TARGETNAME
 
+# Serial NOR on SMI CS0. 8Mbyte.
+set _FLASHNAME1 $_CHIPNAME.snor
+flash bank $_FLASHNAME1 stmsmi 0xf8000000 0 0 0 $_TARGETNAME
+
 if { [info exists BOARD_HAS_SRST] } {
        # Modified board has SRST on JTAG connector
        reset_config trst_and_srst separate srst_gates_jtag \
@@ -38,7 +41,7 @@ if { [info exists BOARD_HAS_SRST] } {
 $_TARGETNAME configure -event reset-init { spear310evb20_init }
 
 proc spear310evb20_init {} {
-       reg pc 0xffff0020       # loop forever
+       reg pc 0xffff0020       ;# loop forever
 
        sp3xx_clock_default
        sp3xx_common_init