diff options
author | Franck Jullien <franck.jullien@gmail.com> | 2014-03-18 20:04:30 +0100 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2014-03-29 07:19:09 +0000 |
commit | 3c954fbd8933f0f8e6e988b28e65881a3401cb2b (patch) | |
tree | 943e0aaba71ece939a34f6b680e6c45978c51771 | |
parent | 947a459e188994bf247f3582f18e6cb3eefb217b (diff) |
cfg: or1k_generic: allow TAP_TYPE override
This patch allows users to specify TAP_TYPE from
the command line when using or1k_generic.cfg.
Change-Id: I9f4b7d8e4867658fa34bb4e92fc3a5f25227df11
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Reviewed-on: http://openocd.zylin.com/2056
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
-rw-r--r-- | tcl/board/or1k_generic.cfg | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tcl/board/or1k_generic.cfg b/tcl/board/or1k_generic.cfg index e7588f9e..5d23641a 100644 --- a/tcl/board/or1k_generic.cfg +++ b/tcl/board/or1k_generic.cfg @@ -4,7 +4,10 @@ set FPGATAPID 0x020b30dd # Choose your TAP core (VJTAG , MOHOR or XILINX_BSCAN) -set TAP_TYPE VJTAG +if { [info exists TAP_TYPE] == 0} { + set TAP_TYPE VJTAG +} + # Set your chip name set CHIPNAME or1200 |