From d06b09595b4c15d02660964bf9706cbd469b16d4 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Mon, 2 Mar 2015 17:52:47 +0300 Subject: [PATCH] tcl/interface/parport: default to sane value on non-windows systems MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When using ppdev driver 0 is the most appropriate default value as it corresponds to /dev/parport0. Raw port address is suitable only for direct access (I think that's parport-giveio on windows). Reported by danitool on IRC. Change-Id: I983c22251de6601b433ad31aaf660fb664cee7e9 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2572 Reviewed-by: Andreas Färber Tested-by: jenkins Reviewed-by: Spencer Oliver --- tcl/interface/parport.cfg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tcl/interface/parport.cfg b/tcl/interface/parport.cfg index f7cc23ab48..ae3f8f1587 100644 --- a/tcl/interface/parport.cfg +++ b/tcl/interface/parport.cfg @@ -7,7 +7,11 @@ if { [info exists PARPORTADDR] } { set _PARPORTADDR $PARPORTADDR } else { - set _PARPORTADDR 0x378 + if {$tcl_platform(platform) eq "windows"} { + set _PARPORTADDR 0x378 + } { + set _PARPORTADDR 0 + } } interface parport -- 2.30.2