tcl/board: Factor out common R-Car Gen2 code 33/4533/3
authorMarek Vasut <marek.vasut@gmail.com>
Wed, 23 May 2018 13:10:12 +0000 (15:10 +0200)
committerMatthias Welwarsky <matthias@welwarsky.de>
Mon, 25 Jun 2018 09:06:39 +0000 (10:06 +0100)
Factor out the code shared by all R-Car Gen2 boards into a single
file to get rid of the duplication.

Change-Id: I70b302c2e71f4e6fdccb2817dd65a5493bb393d8
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Reviewed-on: http://openocd.zylin.com/4533
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
tcl/board/renesas_gen2_common.cfg [new file with mode: 0644]
tcl/board/renesas_porter.cfg
tcl/board/renesas_silk.cfg
tcl/board/renesas_stout.cfg

diff --git a/tcl/board/renesas_gen2_common.cfg b/tcl/board/renesas_gen2_common.cfg
new file mode 100644 (file)
index 0000000..00fa777
--- /dev/null
@@ -0,0 +1,14 @@
+# Renesas R-Car Gen2 Evaluation Board common settings
+
+reset_config trst_and_srst srst_nogate
+
+proc init_reset {mode} {
+    # Assert both resets: equivalent to a power-on reset
+    jtag_reset 1 1
+
+    # Deassert TRST to begin TAP communication
+    jtag_reset 0 1
+
+    # TAP should now be responsive, validate the scan-chain
+    jtag arp_init
+}
index da2bba1f450a208514ef7fed13e948dc743d9c6e..c8032f512dab76932e08cb4f8417d5c7000d548f 100644 (file)
@@ -1,16 +1,4 @@
 # Renesas R-Car M2 Evaluation Board
 
 source [find target/renesas_r8a7791.cfg]
 # Renesas R-Car M2 Evaluation Board
 
 source [find target/renesas_r8a7791.cfg]
-
-reset_config trst_and_srst srst_nogate
-
-proc init_reset {mode} {
-    # Assert both resets: equivalent to a power-on reset
-    jtag_reset 1 1
-
-    # Deassert TRST to begin TAP communication
-    jtag_reset 0 1
-
-    # TAP should now be responsive, validate the scan-chain
-    jtag arp_init
-}
+source [find board/renesas_gen2_common.cfg]
index 442c2a6ab63da148dcba8dffa6b1d838449a8c8a..a026537d42ef79d41cb95d8cc04944fc027e05a6 100644 (file)
@@ -1,16 +1,4 @@
 # Renesas R-Car E2 Evaluation Board
 
 source [find target/renesas_r8a7794.cfg]
 # Renesas R-Car E2 Evaluation Board
 
 source [find target/renesas_r8a7794.cfg]
-
-reset_config trst_and_srst srst_nogate
-
-proc init_reset {mode} {
-    # Assert both resets: equivalent to a power-on reset
-    jtag_reset 1 1
-
-    # Deassert TRST to begin TAP communication
-    jtag_reset 0 1
-
-    # TAP should now be responsive, validate the scan-chain
-    jtag arp_init
-}
+source [find board/renesas_gen2_common.cfg]
index fb0892425919d740f4b2cf4dd521b0af21677d0a..d35f8744fe0e9fe331d409136ec8503ee1573b7b 100644 (file)
@@ -1,16 +1,4 @@
 # Renesas R-Car H2 Evaluation Board
 
 source [find target/renesas_r8a7790.cfg]
 # Renesas R-Car H2 Evaluation Board
 
 source [find target/renesas_r8a7790.cfg]
-
-reset_config trst_and_srst srst_nogate
-
-proc init_reset {mode} {
-    # Assert both resets: equivalent to a power-on reset
-    jtag_reset 1 1
-
-    # Deassert TRST to begin TAP communication
-    jtag_reset 0 1
-
-    # TAP should now be responsive, validate the scan-chain
-    jtag arp_init
-}
+source [find board/renesas_gen2_common.cfg]

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)