Add PARPORTADDR tcl variable making it easier to
change parallel port address in scripts.
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
# http://www.st.com/stonline/products/literature/um/7889.pdf
#
+if { [info exists PARPORTADDR] } {
+ set _PARPORTADDR $PARPORTADDR
+} else {
+ set _PARPORTADDR 0
+}
+
interface parport
-parport_port 0
+parport_port $_PARPORTADDR
parport_cable flashlink
#
# Addresses: 0x378/LPT1 or 0x278/LPT2 ...
+if { [info exists PARPORTADDR] } {
+ set _PARPORTADDR $PARPORTADDR
+} else {
+ set _PARPORTADDR 0x378
+}
+
interface parport
-parport_port 0x378
+parport_port $_PARPORTADDR
parport_cable wiggler
# http://www.xilinx.com/itp/xilinx4/data/docs/pac/appendixb.html
#
+if { [info exists PARPORTADDR] } {
+ set _PARPORTADDR $PARPORTADDR
+} else {
+ set _PARPORTADDR 0
+}
+
interface parport
-parport_port 0
+parport_port $_PARPORTADDR
parport_cable dlc5