arm926ejs: fix gaffe when converting from arm926ejs cp15 to mcr
[openocd/genbsdl.git] / src / flash / startup.tcl
blobfcebbe01a1abb1e7c6b9843a556d82e0b0a03abc
1 # Defines basic Tcl procs for OpenOCD flash module
3 # Show flash in human readable form
4 # This is an example of a human readable form of a low level fn
5 proc flash_banks {} {
6 set i 0
7 set result ""
8 foreach {a} [ocd_flash_banks] {
9 if {$i > 0} {
10 set result "$result\n"
12 set result [format "$result#%d: %s at 0x%08x, size 0x%08x, buswidth %d, chipwidth %d" $i $a(name) $a(base) $a(size) $a(bus_width) $a(chip_width)]
13 set i [expr $i+1]
15 return $result