5b4354e909147f4709522379b066aaa79880a5d1
[fw/openocd] / tcl / target / c100.cfg
1 # c100 config.
2 # This is ARM1136 dual core
3 # this script only configures one core (that is used to run Linux)
4
5 # assume no PLL lock, start slowly
6 adapter speed 100
7
8 if { [info exists CHIPNAME] } {
9    set _CHIPNAME $CHIPNAME
10 } else {
11    set _CHIPNAME c100
12 }
13
14 if { [info exists ENDIAN] } {
15    set _ENDIAN $ENDIAN
16 } else {
17    set _ENDIAN little
18 }
19
20 if { [info exists CPUTAPID] } {
21    set _CPUTAPID $CPUTAPID
22 } else {
23    set _CPUTAPID 0x27b3645b
24 }
25
26 if { [info exists DSPTAPID] } {
27    set _DSPTAPID $DSPTAPID
28 } else {
29    set _DSPTAPID 0x27b3645b
30 }
31
32 jtag newtap $_CHIPNAME dsp -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_DSPTAPID
33
34
35 # Per ARM: DDI0211J_arm1136_r1p5_trm.pdf - the ARM 1136 as a 5 bit IR register
36 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
37
38 set _TARGETNAME $_CHIPNAME.cpu
39 target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
40
41 # C100's ARAM 64k SRAM
42 $_TARGETNAME configure -work-area-phys 0x0a000000 -work-area-size 0x10000 -work-area-backup 0