5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 if { [info exists DAP_TAPID] } {
12 set _DAP_TAPID $DAP_TAPID
14 set _DAP_TAPID 0x5ba00477
17 if { [info exists SAP_TAPID] } {
18 set _SAP_TAPID $SAP_TAPID
20 set _SAP_TAPID 0x06b2001d
23 jtag newtap $_CHIPNAME dap -irlen 4 -expected-id $_DAP_TAPID
24 jtag newtap $_CHIPNAME sap -irlen 8 -expected-id $_SAP_TAPID
26 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.dap
28 cti create $_CHIPNAME.cti -dap $_CHIPNAME.dap -ap-num 1 -ctibase 0x80420000
30 set _TARGETNAME $_CHIPNAME.cpu
31 target create $_TARGETNAME aarch64 -dap $_CHIPNAME.dap -dbgbase 0x80410000 -cti $_CHIPNAME.cti
33 target smp $_TARGETNAME