2009-09-10 08:06:22 +00:00
|
|
|
# c100 config.
|
|
|
|
# This is ARM1136 dual core
|
|
|
|
# this script only configures one core (that is used to run Linux)
|
|
|
|
|
|
|
|
# assume no PLL lock, start slowly
|
2010-03-15 15:37:43 +00:00
|
|
|
adapter_khz 100
|
2009-08-16 11:58:40 +00:00
|
|
|
|
2009-09-21 18:48:22 +00:00
|
|
|
if { [info exists CHIPNAME] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-09-21 18:48:22 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME c100
|
2009-08-16 11:58:40 +00:00
|
|
|
}
|
|
|
|
|
2009-09-21 18:48:22 +00:00
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-09-21 18:48:22 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN little
|
2009-08-16 11:58:40 +00:00
|
|
|
}
|
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
if { [info exists CPUTAPID] } {
|
2009-08-16 11:58:40 +00:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x27b3645b
|
|
|
|
}
|
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
if { [info exists DSPTAPID] } {
|
2009-08-16 11:58:40 +00:00
|
|
|
set _DSPTAPID $DSPTAPID
|
|
|
|
} else {
|
|
|
|
set _DSPTAPID 0x27b3645b
|
|
|
|
}
|
|
|
|
|
|
|
|
jtag newtap $_CHIPNAME dsp -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_DSPTAPID
|
|
|
|
|
|
|
|
|
|
|
|
# Per ARM: DDI0211J_arm1136_r1p5_trm.pdf - the ARM 1136 as a 5 bit IR register
|
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
|
|
|
|
|
2009-12-15 22:39:25 +00:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2009-08-16 11:58:40 +00:00
|
|
|
target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
|
|
|
|
|
|
|
|
# C100's ARAM 64k SRAM
|
|
|
|
$_TARGETNAME configure -work-area-phys 0x0a000000 -work-area-size 0x10000 -work-area-backup 0
|