This is an automated email from Gerrit.

Marek Vasut ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/4533

-- gerrit

commit 5fdd40bdc569dcec57e9d779c1a4659c48f578ee
Author: Marek Vasut <[email protected]>
Date:   Wed May 23 15:10:12 2018 +0200

    tcl/board: Factor out common R-Car Gen2 code
    
    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 <[email protected]>

diff --git a/tcl/board/renesas_gen2_common.cfg 
b/tcl/board/renesas_gen2_common.cfg
new file mode 100644
index 0000000..00fa777
--- /dev/null
+++ b/tcl/board/renesas_gen2_common.cfg
@@ -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
+}
diff --git a/tcl/board/renesas_porter.cfg b/tcl/board/renesas_porter.cfg
index da2bba1..c8032f5 100644
--- a/tcl/board/renesas_porter.cfg
+++ b/tcl/board/renesas_porter.cfg
@@ -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]
diff --git a/tcl/board/renesas_silk.cfg b/tcl/board/renesas_silk.cfg
index 442c2a6..a026537 100644
--- a/tcl/board/renesas_silk.cfg
+++ b/tcl/board/renesas_silk.cfg
@@ -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]
diff --git a/tcl/board/renesas_stout.cfg b/tcl/board/renesas_stout.cfg
index fb08924..d35f874 100644
--- a/tcl/board/renesas_stout.cfg
+++ b/tcl/board/renesas_stout.cfg
@@ -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]

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to