tcl/target: Unify Renesas R-Car JTAG reset config 00/5400/8
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 15 Jan 2020 04:42:03 +0000 (05:42 +0100)
committerOleksij Rempel <linux@rempel-privat.de>
Mon, 9 Mar 2020 05:59:39 +0000 (05:59 +0000)
Both Gen2 and Gen3 used the same init_reset{} implementation,
pull it into common file and include it from both generations.
Moreover, this behavior is SoC specific, not board specific,
so move the common init_reset into target/ directory.

Change-Id: I5489a4bff9a786da8cb7fd7a515b0c9ce9dc16e3
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Reviewed-on: http://openocd.zylin.com/5400
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
tcl/board/renesas_salvator-xs.cfg
tcl/target/renesas_rcar_gen2.cfg
tcl/target/renesas_rcar_gen3.cfg
tcl/target/renesas_rcar_reset_common.cfg [moved from tcl/board/renesas_gen2_common.cfg with 100% similarity]

index e6f4da337b9362e640bdf560b4a6d9e9a3840714..6d3096ec1aa301cee64175f6dc6bdd2d58598b83 100644 (file)
@@ -7,17 +7,3 @@ if { ![info exists SOC] } {
        set SOC H3
 }
 source [find target/renesas_rcar_gen3.cfg]
-
-reset_config trst_and_srst srst_nogate
-
-proc init_reset {mode} {
-       # Assert both resets: equivalent to a power-on reset
-       adapter assert trst assert srst
-
-       # Deassert TRST to begin TAP communication
-       adapter deassert trst assert srst
-
-       # TAP should now be responsive, validate the scan-chain
-       jtag arp_init
-}
-
index 9f7421d914e2813971cc69f2d25f153734293751..91baa6c908202459506092a624e7ef2e90a2cc57 100644 (file)
@@ -120,4 +120,6 @@ if { [string equal $_boot_core CA15] } {
        setup_ca a7  $CA7_DBGBASE  $_num_ca7 0
 }
 
+source [find target/renesas_rcar_reset_common.cfg]
+
 eval "target smp $smp_targets"
index 34c191827b4e5ab3553468b10187d7421f30c68e..72f185d61bf1af43fbfff6f48a1b9a9f5312e0dd 100644 (file)
@@ -166,4 +166,6 @@ if { [string equal $_boot_core CA57] } {
        setup_a5x a53 $CA53_DBGBASE $CA53_CTIBASE $_num_ca53 0
 }
 
+source [find target/renesas_rcar_reset_common.cfg]
+
 eval "target smp $smp_targets"

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)