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>bscan_tunnel
parent
c49ea5dab2
commit
8b8b66559d
|
@ -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
|
||||||
|
}
|
|
@ -1,16 +1,4 @@
|
||||||
# Renesas R-Car M2 Evaluation Board
|
# Renesas R-Car M2 Evaluation Board
|
||||||
|
|
||||||
source [find target/renesas_r8a7791.cfg]
|
source [find target/renesas_r8a7791.cfg]
|
||||||
|
source [find board/renesas_gen2_common.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
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,16 +1,4 @@
|
||||||
# Renesas R-Car E2 Evaluation Board
|
# Renesas R-Car E2 Evaluation Board
|
||||||
|
|
||||||
source [find target/renesas_r8a7794.cfg]
|
source [find target/renesas_r8a7794.cfg]
|
||||||
|
source [find board/renesas_gen2_common.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
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,16 +1,4 @@
|
||||||
# Renesas R-Car H2 Evaluation Board
|
# Renesas R-Car H2 Evaluation Board
|
||||||
|
|
||||||
source [find target/renesas_r8a7790.cfg]
|
source [find target/renesas_r8a7790.cfg]
|
||||||
|
source [find board/renesas_gen2_common.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
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue