update 'flash bank' usage in scripts
[fw/openocd] / tcl / board / pxa255_sst.cfg
index 8bc691bab190dee5b385012471c75d44d5d5c986..ce9038710e0ec190fa9d1ab2f6bbf2a40463fcc3 100644 (file)
@@ -13,7 +13,8 @@ source [find target/pxa255.cfg]
 $_TARGETNAME configure -work-area-phys 0x4000000 -work-area-size 0x4000 -work-area-backup 0
 
 # flash bank <driver> <base> <size> <chip_width> <bus_width> <target> [options]
-flash bank cfi 0x00000000 0x80000 2 2 $_TARGETNAME jedec_probe
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x00000000 0x80000 2 2 $_TARGETNAME jedec_probe
 
 proc pxa255_sst_init {} {
        xscale cp15   15      0x00002001  #Enable CP0 and CP13 access