diff options
author | Franck Jullien <franck.jullien@gmail.com> | 2013-02-03 18:15:13 +0100 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2013-02-08 22:33:19 +0000 |
commit | 87668aebf1851c06af2513ab5f27ebb9ebf1ff16 (patch) | |
tree | 5f8fad191256e26517b18166b0a276bdd708b3eb /tcl | |
parent | feddedb6db72b81714780fae5d0b3a51dc1ddedc (diff) |
jtag_interface: .speed can be NULL when not needed
adapter_init (core.c) won't check speed configuration
of the selected interface if it's not needed (.speed = NULL).
When it's not needed, we can now omit adapter_khz in
init scripts and we don't have to implement dummy handlers
for speed_div and khz functions.
It also removes calls to adapter_khz in interface configuration
files when not used anymore.
Change-Id: I6eb1894385503fede542a368f297cec6565eed44
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Reviewed-on: http://openocd.zylin.com/1131
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r-- | tcl/interface/altera-usb-blaster.cfg | 1 | ||||
-rw-r--r-- | tcl/interface/osbdm.cfg | 5 | ||||
-rw-r--r-- | tcl/interface/stlink-v1.cfg | 2 | ||||
-rw-r--r-- | tcl/interface/stlink-v2.cfg | 2 | ||||
-rw-r--r-- | tcl/interface/sysfsgpio-raspberrypi.cfg | 3 | ||||
-rw-r--r-- | tcl/interface/ti-icdi.cfg | 2 | ||||
-rw-r--r-- | tcl/interface/usb-jtag.cfg | 2 |
7 files changed, 0 insertions, 17 deletions
diff --git a/tcl/interface/altera-usb-blaster.cfg b/tcl/interface/altera-usb-blaster.cfg index 9f542d0a..f19abfeb 100644 --- a/tcl/interface/altera-usb-blaster.cfg +++ b/tcl/interface/altera-usb-blaster.cfg @@ -8,4 +8,3 @@ interface usb_blaster # These are already the defaults. # usb_blaster_vid_pid 0x09FB 0x6001 # usb_blaster_device_desc "USB-Blaster" -adapter_khz 3000 diff --git a/tcl/interface/osbdm.cfg b/tcl/interface/osbdm.cfg index 4d0c79d3..e88ce50b 100644 --- a/tcl/interface/osbdm.cfg +++ b/tcl/interface/osbdm.cfg @@ -5,8 +5,3 @@ # interface osbdm reset_config srst_only - -# -# OSBDM doesn't support speed control -# -adapter_khz 1 diff --git a/tcl/interface/stlink-v1.cfg b/tcl/interface/stlink-v1.cfg index 7f4a6720..13f207dc 100644 --- a/tcl/interface/stlink-v1.cfg +++ b/tcl/interface/stlink-v1.cfg @@ -7,5 +7,3 @@ hla_layout stlink hla_device_desc "ST-LINK/V1" hla_vid_pid 0x0483 0x3744 -# unused but set to disable warnings -adapter_khz 1000 diff --git a/tcl/interface/stlink-v2.cfg b/tcl/interface/stlink-v2.cfg index da0a2002..e145d635 100644 --- a/tcl/interface/stlink-v2.cfg +++ b/tcl/interface/stlink-v2.cfg @@ -7,5 +7,3 @@ hla_layout stlink hla_device_desc "ST-LINK/V2" hla_vid_pid 0x0483 0x3748 -# unused but set to disable warnings -adapter_khz 1000 diff --git a/tcl/interface/sysfsgpio-raspberrypi.cfg b/tcl/interface/sysfsgpio-raspberrypi.cfg index 105173c9..36364228 100644 --- a/tcl/interface/sysfsgpio-raspberrypi.cfg +++ b/tcl/interface/sysfsgpio-raspberrypi.cfg @@ -10,9 +10,6 @@ interface sysfsgpio -# This has no effect on the driver, but is required -adapter_khz 100 - # Each of the JTAG lines need a gpio number set: tck tms tdi tdo # Header pin numbers: 23 22 19 21 sysfsgpio_jtag_nums 11 25 10 9 diff --git a/tcl/interface/ti-icdi.cfg b/tcl/interface/ti-icdi.cfg index 16a901e9..0fc3a9b6 100644 --- a/tcl/interface/ti-icdi.cfg +++ b/tcl/interface/ti-icdi.cfg @@ -11,5 +11,3 @@ interface hla hla_layout ti-icdi hla_vid_pid 0x1cbe 0x00fd -# unused but set to disable warnings -adapter_khz 1000 diff --git a/tcl/interface/usb-jtag.cfg b/tcl/interface/usb-jtag.cfg index a3db11e3..f0164caf 100644 --- a/tcl/interface/usb-jtag.cfg +++ b/tcl/interface/usb-jtag.cfg @@ -7,5 +7,3 @@ interface usb_blaster usb_blaster_vid_pid 0x16C0 0x06AD usb_blaster_device_desc "USB-JTAG-IF" -adapter_khz 3000 - |