JTAG/sun4iconfig


 * 1) Allwinner A10 (sun4i)

if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME sun4i }

if { [info exists DAP_TAPID ] } { set _DAP_TAPID $DAP_TAPID } else { set _DAP_TAPID 0x4ba00477 } jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf \ -expected-id $_DAP_TAPID
 * 1) Subsidiary TAP: CoreSight Debug Access Port (DAP)

set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME cortex_a8 -chain-position $_CHIPNAME.dap
 * 1) GDB target:  Cortex-A8, using DAP

$_TARGETNAME configure -work-area-phys 0x00004000 -work-area-size 0x4000
 * 1) SRAM-A2: 16K at 0x00004000;

proc sun4i_dbginit {target} { # General Cortex A8 debug initialisation cortex_a8 dbginit }