target: Add LS1028A
authorSean Anderson <sean.anderson@seco.com>
Fri, 13 May 2022 15:07:29 +0000 (11:07 -0400)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 27 May 2022 22:48:36 +0000 (22:48 +0000)
The LS1028A is similar to the LS1088A, except that it has 2 CPUs (and
different ethernet capabilities). From a JTAG perspective, all that's
different is the number of CPUs and the TAPID.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Change-Id: Iba3a0ecfbf82cfcfeb7eea42d52121c3b9dc93a2
Reviewed-on: https://review.openocd.org/c/openocd/+/6976
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/target/ls1028a.cfg [new file with mode: 0644]

diff --git a/tcl/target/ls1028a.cfg b/tcl/target/ls1028a.cfg
new file mode 100644 (file)
index 0000000..463ec7d
--- /dev/null
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# NXP LS1028A
+
+if { [info exists CHIPNAME] } {
+       set _CHIPNAME $CHIPNAME
+} else {
+       set _CHIPNAME ls1028a
+}
+
+if { [info exists DAP_TAPID] } {
+       set _DAP_TAPID $DAP_TAPID
+} else {
+       set _DAP_TAPID 0x6ba00477
+}
+
+set _CPUS 2
+
+source [find target/lsch3_common.cfg]