+# Serial NOR on SMI CS0.
+set _FLASHNAME $_CHIPNAME.snor
+flash bank $_FLASHNAME stmsmi 0x80000000 0 0 0 $_TARGETNAME
+
+source [find mem_helper.tcl]
+
+proc init_smi {} {
+ mmw 0x60000030 0x01000000 0x00000000; # enable clock for GPIO regs
+ mmw 0xffffe420 0x00000001 0x00000000; # set SMI_EN bit
+ mmw 0x90000000 0x00000001 0x00000000; # set BLOCK_EN_1
+}