252bbab11dd36713cc436cef56810913117a6f3f
[fw/openocd] / tcl / target / epc9301.cfg
1 # Cirrus Logic EP9301 processor on an Olimex CS-E9301 board.
2
3 if { [info exists CHIPNAME] } {
4    set _CHIPNAME $CHIPNAME
5 } else {
6    set _CHIPNAME ep9301
7 }
8
9 if { [info exists ENDIAN] } {
10    set _ENDIAN $ENDIAN
11 } else {
12    set _ENDIAN little
13 }
14
15 if { [info exists CPUTAPID] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18    # Force an error until we get a good number.
19    set _CPUTAPID 0xffffffff
20 }
21
22 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
23 adapter srst delay 100
24 jtag_ntrst_delay 100
25
26 set _TARGETNAME $_CHIPNAME.cpu
27 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -work-area-phys 0x80014000 -work-area-size 0x1000 -work-area-backup 1
28
29 #flash configuration
30 #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
31 set _FLASHNAME $_CHIPNAME.flash
32 flash bank $_FLASHNAME cfi 0x60000000 0x1000000 2 2 $_TARGETNAME