TCL scripts: update to current "flash bank" syntax
[fw/openocd] / tcl / board / imx27ads.cfg
index 664b4705cac1d203484bc9acc317e9e401c17190..927647a9b65016a78eeefa035165738d8d025b41 100644 (file)
@@ -5,7 +5,8 @@ $_TARGETNAME configure -event gdb-attach { reset init }
 $_TARGETNAME configure -event reset-init { imx27ads_init }
 
 # The IMX27 ADS 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
 
 proc imx27ads_init { } {
        # This setup puts RAM at 0xA0000000