jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / tcl / target / bcm2837.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # This is the Broadcom chip used in the Raspberry Pi 3,
4 # and in later models of the Raspberry Pi 2.
5
6 # Partial information is available in raspberry pi website:
7 # https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2837
8 # https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2837b0
9
10 if { [info exists CHIPNAME] } {
11 set _CHIPNAME $CHIPNAME
12 } else {
13 set _CHIPNAME bcm2837
14 }
15
16 if { [info exists CHIPCORES] } {
17 set _cores $CHIPCORES
18 } else {
19 set _cores 4
20 }
21
22 if { [info exists USE_SMP] } {
23 set _USE_SMP $USE_SMP
24 } else {
25 set _USE_SMP 0
26 }
27
28 if { [info exists DAP_TAPID] } {
29 set _DAP_TAPID $DAP_TAPID
30 } else {
31 set _DAP_TAPID 0x4ba00477
32 }
33
34 jtag newtap $_CHIPNAME cpu -expected-id $_DAP_TAPID -irlen 4
35 adapter speed 4000
36
37 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
38
39 # MEM-AP for direct access
40 target create $_CHIPNAME.ap mem_ap -dap $_CHIPNAME.dap -ap-num 0
41
42 # these addresses are obtained from the ROM table via 'dap info 0' command
43 set _DBGBASE {0x80010000 0x80012000 0x80014000 0x80016000}
44 set _CTIBASE {0x80018000 0x80019000 0x8001a000 0x8001b000}
45
46 set _smp_command "target smp"
47
48 for { set _core 0 } { $_core < $_cores } { incr _core } {
49 set _CTINAME $_CHIPNAME.cti$_core
50 set _TARGETNAME $_CHIPNAME.cpu$_core
51
52 cti create $_CTINAME -dap $_CHIPNAME.dap -ap-num 0 -baseaddr [lindex $_CTIBASE $_core]
53 target create $_TARGETNAME aarch64 -dap $_CHIPNAME.dap -ap-num 0 -dbgbase [lindex $_DBGBASE $_core] -cti $_CTINAME
54 $_TARGETNAME configure -event reset-assert-post { aarch64 dbginit }
55
56 set _smp_command "$_smp_command $_TARGETNAME"
57 }
58
59 if {$_USE_SMP} {
60 eval $_smp_command
61 }
62
63 # default target is cpu0
64 targets $_CHIPNAME.cpu0

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)