tcl/board: fix changed target config filenames
[fw/openocd] / tcl / board / logicpd_imx27.cfg
index b068f1a105d0fdcf08a07bad76a4a2245e77b218..da0b46223d52948aa08d798b7a48d334c81f57eb 100644 (file)
@@ -2,7 +2,8 @@
 source [find target/imx27.cfg]
 
 # The Logic PD board has a NOR flash on CS0
-flash_bank cfi 0xc0000000 0x00200000 2 2 0
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0xc0000000 0x00200000 2 2 $_TARGETNAME
 
 #
 # FIX ME, Add support to