0715d82d8114c79bcbba67938b5fa3c0be6473db
[fw/openocd] / tcl / target / bcm281xx.cfg
1 # BCM281xx
2
3 if { [info exists CHIPNAME] } {
4         set  _CHIPNAME $CHIPNAME
5 } else {
6         set  _CHIPNAME bcm281xx
7 }
8
9
10 # Main CPU DAP
11 if { [info exists DAP_TAPID] } {
12         set _DAP_TAPID $DAP_TAPID
13 } else {
14         set _DAP_TAPID 0x4ba00477
15 }
16
17 jtag newtap $_CHIPNAME cpu -expected-id $_DAP_TAPID -irlen 4
18
19
20 # Dual Cortex-A9
21 set _TARGETNAME0 $_CHIPNAME.cpu0
22 set _TARGETNAME1 $_CHIPNAME.cpu1
23
24 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
25
26 target create $_TARGETNAME0 cortex_a -dap $_CHIPNAME.dap -coreid 0 -dbgbase 0x3fe10000
27 target create $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x3fe12000
28 target smp $_TARGETNAME0 $_TARGETNAME1