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 <marek.vasut@gmail.com>
Reviewed-on: http://openocd.zylin.com/4533
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
This commit is contained in:
Marek Vasut 2018-05-23 15:10:12 +02:00 committed by Matthias Welwarsky
parent c49ea5dab2
commit 8b8b66559d
4 changed files with 17 additions and 39 deletions

View File

@ -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
}

View 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]

View 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]

View 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]