David Brownell <david-b@pacbell.net>:
[openocd.git] / tcl / target / epc9301.cfg
blob6dbb91b37ba8eff3c34bd27386a2f5783fec1501
1 # Cirrus Logic EP9301 processor on an Olimex CS-E9301 board.
3 if { [info exists CHIPNAME] } { 
4    set  _CHIPNAME $CHIPNAME    
5 } else {         
6    set  _CHIPNAME ep9301
9 if { [info exists ENDIAN] } {   
10    set  _ENDIAN $ENDIAN    
11 } else {         
12    set  _ENDIAN little
15 if { [info exists CPUTAPID ] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18   # force an error till we get a good number
19    set _CPUTAPID 0xffffffff
22 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
23 jtag_nsrst_delay 100
24 jtag_ntrst_delay 100
26 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
27 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -work-area-virt 0 -work-area-phys 0x80014000 -work-area-size 0x1000 -work-area-backup 1
29 #flash configuration
30 #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
31 flash bank cfi 0x60000000 0x1000000 2 2 0