tcl/target: add BCM2835 configuration file
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Fri, 19 Feb 2021 14:23:34 +0000 (15:23 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Wed, 10 Mar 2021 21:36:45 +0000 (21:36 +0000)
This is the Broadcom chip used in the Raspberry Pi Model A, B, B+,
the Compute Module, and the Raspberry Pi Zero.

Partial information is available in raspberry pi website:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835

Change-Id: Ifeb012952473d624327e8c010ac5c886d9473aa0
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/6067
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
tcl/target/bcm2835.cfg [new file with mode: 0644]

diff --git a/tcl/target/bcm2835.cfg b/tcl/target/bcm2835.cfg
new file mode 100644 (file)
index 0000000..32a0366
--- /dev/null
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# This is the Broadcom chip used in the Raspberry Pi Model A, B, B+,
+# the Compute Module, and the Raspberry Pi Zero.
+
+# Partial information is available in raspberry pi website:
+# https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835
+
+if { [info exists CHIPNAME] } {
+       set  _CHIPNAME $CHIPNAME
+} else {
+       set  _CHIPNAME bcm2835
+}
+
+if { [info exists DAP_TAPID] } {
+       set _DAP_TAPID $DAP_TAPID
+} else {
+       set _DAP_TAPID 0x07b7617F
+}
+
+jtag newtap $_CHIPNAME cpu -expected-id $_DAP_TAPID -irlen 5
+adapter speed 4000
+
+target create $_CHIPNAME.cpu0 arm11 -chain-position $_CHIPNAME.cpu