From: <ge...@op...> - 2021-10-02 19:30:30
|
This is an automated email from Gerrit. "David Lamparter <eq...@di...>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/6624 -- gerrit commit 4bca43c3992e62891e8b4fcc15b341ac96bfd88b Author: David Lamparter <eq...@di...> Date: Sat Oct 2 17:45:49 2021 +0200 tcl/target: add NXP LX2160A Tested on a Solid-Run Honeycomb LX2k board. Signed-off-by: David Lamparter <eq...@di...> Change-Id: I103228591e40983c0088d906258618c379d3a634 diff --git a/tcl/target/lx2160a.cfg b/tcl/target/lx2160a.cfg new file mode 100644 index 000000000..e254ebc96 --- /dev/null +++ b/tcl/target/lx2160a.cfg @@ -0,0 +1,51 @@ +# +# NXP LX2160A +# + +if { [info exists CHIPNAME] } { + set _CHIPNAME $CHIPNAME +} else { + set _CHIPNAME lx2160a +} + +if { [info exists NUMCORES] } { + set _NUMCORES $NUMCORES +} else { + set _NUMCORES 16 +} + +if { [info exists DAP_TAPID] } { + set _DAP_TAPID $DAP_TAPID +} else { + set _DAP_TAPID 0x6ba00477 +} + +jtag newtap $_CHIPNAME dap -irlen 4 -expected-id $_DAP_TAPID +dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.dap + +set _TARGETNAME $_CHIPNAME.cpu +set _smp "target smp" + +# implementation has 2 cores in each core complex +for {set cc 0} {$cc < $_NUMCORES / 2} {incr cc} { + set core0 [format %x [expr {$cc * 2 + 0}]] + set core1 [format %x [expr {$cc * 2 + 1}]] + set offset [expr {$cc * 0x400000}] + + cti create $_CHIPNAME.cti.$core0 -dap $_CHIPNAME.dap -ap-num 0 -baseaddr [expr {0x1020000 + $cc * 0x400000}] + target create $_CHIPNAME.cpu.$core0 aarch64 -dap $_CHIPNAME.dap -ap-num 0 -dbgbase [expr {0x1010000 + $cc * 0x400000}] -cti $_CHIPNAME.cti.$core0 + cti create $_CHIPNAME.cti.$core1 -dap $_CHIPNAME.dap -ap-num 0 -baseaddr [expr {0x1120000 + $cc * 0x400000}] + target create $_CHIPNAME.cpu.$core1 aarch64 -dap $_CHIPNAME.dap -ap-num 0 -dbgbase [expr {0x1110000 + $cc * 0x400000}] -cti $_CHIPNAME.cti.$core1 + + set _smp "$_smp $_CHIPNAME.cpu.$core0 $_CHIPNAME.cpu.$core1" + + unset core0 + unset core1 + unset offset +} + +eval $_smp +targets lx2160a.cpu.0 + +# datasheet value, tested @ 15MHz +adapter speed 25000 -- |