]> git.sur5r.net Git - openocd/commitdiff
tcl/board: Factor out common R-Car Gen2 code
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]
-
-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]
-
-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]
-
-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]