diff options
author | Tarek BOCHKATI <tarek.bouchkati@gmail.com> | 2021-02-19 15:23:34 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-03-10 21:36:45 +0000 |
commit | a909df7088c32ef455ad3f78041ea17ffde41795 (patch) | |
tree | 99aff1717df6f036f07d5d4fd95e9bc7fb952f40 /tcl/target | |
parent | 210b7d2d1644c5c3dd1e59ffa684af56e3be498f (diff) | |
download | riscv-openocd-a909df7088c32ef455ad3f78041ea17ffde41795.zip riscv-openocd-a909df7088c32ef455ad3f78041ea17ffde41795.tar.gz riscv-openocd-a909df7088c32ef455ad3f78041ea17ffde41795.tar.bz2 |
tcl/target: add BCM2835 configuration file
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>
Diffstat (limited to 'tcl/target')
-rw-r--r-- | tcl/target/bcm2835.cfg | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tcl/target/bcm2835.cfg b/tcl/target/bcm2835.cfg new file mode 100644 index 0000000..32a0366 --- /dev/null +++ b/tcl/target/bcm2835.cfg @@ -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 |