1
0
mirror of https://git.code.sf.net/p/openocd/code synced 2024-11-14 18:37:11 +00:00
openocd/tcl/target/netl_xlp3xx.cfg
Peter Mamonov eeee3f41da tcl/target: Add XLP3xx configuration files
The patch adds configuration files for the following XLP 300-series
processors: XLP304, XLP308, XLP316.

Change-Id: Iaf2b807abf9fc4d7b51222fd40bdb18c6aca7d9c
Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru>
Signed-off-by: Peter Mamonov <pmamonov@gmail.com>
CC: Antony Pavlov <antonynpavlov@gmail.com>
CC: Dongxue Zhang <elta.era@gmail.com>
CC: Oleksij Rempel <linux@rempel-privat.de>
CC: Paul Fertser <fercerpav@gmail.com>
CC: Salvador Arroyo <sarroyofdez@yahoo.es>
CC: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: https://review.openocd.org/c/openocd/+/2323
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2023-09-23 14:40:17 +00:00

40 lines
911 B
INI

# SPDX-License-Identifier: GPL-2.0-or-later
#
# Target: XLP 300-series processors by NetLogic Microsystems
#
# See http://www.broadcom.com/products/Processors/Enterprise/XLP300-Series
#
# Use xlp304.cfg, xlp308.cfg, xlp316.cfg for particular processor model.
#
transport select jtag
global XLP_NT
for {set i $XLP_NT} {$i > 0} {incr i -1} {
jtag newtap xlp cpu_$i -irlen 5 -disable
if {$i != 1} {
jtag configure xlp.cpu_$i -event tap-enable {}
}
}
jtag newtap xlp jrc -irlen 16 -expected-id 0x00011449
jtag configure xlp.cpu_1 -event tap-enable {
global XLP_NT
irscan xlp.jrc 0xe0
drscan xlp.jrc 1 1
for {set i $XLP_NT} {$i > 1} {incr i -1} {
jtag tapenable xlp.cpu_$i
}
}
proc chipreset {} {
irscan xlp.jrc 0xab
drscan xlp.jrc 1 1
drscan xlp.jrc 1 0
}
jtag configure xlp.jrc -event setup "jtag tapenable xlp.cpu_1"
target create xlp.cpu_1 mips_mips64 -endian big -chain-position xlp.cpu_1