update 'flash bank' usage in scripts
[fw/openocd] / tcl / board / x300t.cfg
index 3b094930152c633da46ae3d2f264438c777cfe1b..d9141809889ae813b6443672c17fc863dc1d737a 100644 (file)
@@ -8,7 +8,8 @@ $_TARGETNAME configure -event reset-init { x300t_init }
 
 # 1MB CFI capable flash
 # flash bank <driver> <base> <size> <chip_width> <bus_width>
-flash bank cfi 0xac000000 0x100000 2 2 0
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0xac000000 0x100000 2 2 0
 
 proc x300t_init { } {
        # Setup SDRAM config and flash mapping