tcl/interface: Restructure parport config files
Provide cable specific configuration files like for the FTDI interface. Depcrecate the old configuration files but keep them until the next release for compatibility reasons. Change-Id: I436bd60779a107120c9e1b1f0b8a69a39a240ad4 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8514 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
parent
99f60d5e59
commit
f4d81cd4d4
|
@ -5,17 +5,6 @@
|
|||
#
|
||||
# Addresses: 0x378/LPT1 or 0x278/LPT2 ...
|
||||
#
|
||||
echo "DEPRECATED: use interface/parport/wiggler.cfg instead of deprecated interface/parport.cfg"
|
||||
|
||||
if { [info exists PARPORTADDR] } {
|
||||
set _PARPORTADDR $PARPORTADDR
|
||||
} else {
|
||||
if {$tcl_platform(platform) eq "windows"} {
|
||||
set _PARPORTADDR 0x378
|
||||
} {
|
||||
set _PARPORTADDR 0
|
||||
}
|
||||
}
|
||||
|
||||
adapter driver parport
|
||||
parport port $_PARPORTADDR
|
||||
parport cable wiggler
|
||||
source [find interface/parport/wiggler.cfg]
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#
|
||||
# Xilinx Parallel Cable III 'DLC 5' (and various clones)
|
||||
#
|
||||
# http://www.xilinx.com/itp/xilinx4/data/docs/pac/appendixb.html
|
||||
#
|
||||
|
||||
if { [info exists PARPORTADDR] } {
|
||||
set _PARPORTADDR $PARPORTADDR
|
||||
} else {
|
||||
set _PARPORTADDR 0
|
||||
}
|
||||
|
||||
adapter driver parport
|
||||
parport port $_PARPORTADDR
|
||||
parport cable dlc5
|
|
@ -0,0 +1,21 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#
|
||||
# Parallel port wiggler (many clones available) on port 0x378
|
||||
#
|
||||
# Addresses: 0x378/LPT1 or 0x278/LPT2 ...
|
||||
#
|
||||
|
||||
if { [info exists PARPORTADDR] } {
|
||||
set _PARPORTADDR $PARPORTADDR
|
||||
} else {
|
||||
if {$tcl_platform(platform) eq "windows"} {
|
||||
set _PARPORTADDR 0x378
|
||||
} {
|
||||
set _PARPORTADDR 0
|
||||
}
|
||||
}
|
||||
|
||||
adapter driver parport
|
||||
parport port $_PARPORTADDR
|
||||
parport cable wiggler
|
|
@ -5,13 +5,6 @@
|
|||
#
|
||||
# http://www.xilinx.com/itp/xilinx4/data/docs/pac/appendixb.html
|
||||
#
|
||||
echo "DEPRECATED: use interface/parport/dlc5.cfg instead of deprecated interface/parport_dlc5.cfg"
|
||||
|
||||
if { [info exists PARPORTADDR] } {
|
||||
set _PARPORTADDR $PARPORTADDR
|
||||
} else {
|
||||
set _PARPORTADDR 0
|
||||
}
|
||||
|
||||
adapter driver parport
|
||||
parport port $_PARPORTADDR
|
||||
parport cable dlc5
|
||||
source [find interface/parport/dlc5.cfg]
|
||||
|
|
Loading…
Reference in New Issue