]> git.sur5r.net Git - openocd/blob - src/tcl/target/epc9301.cfg
Move TCL script files -- Step 1 of 2:
[openocd] / src / 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 till 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 jtag_nsrst_delay 100
24 jtag_ntrst_delay 100
25
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
28
29 #flash configuration
30 #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
31 flash bank cfi 0x60000000 0x1000000 2 2 0