aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/swd.h
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2018-08-06 17:31:36 +0200
committerTomas Vanek <vanekt@fbl.cz>2019-06-06 16:20:58 +0100
commit7cddeb0af20049fc891ed726885aebceeb1e22b7 (patch)
tree7ceb4900b7e57606cfe8b73d59699a02bd4fe2cc /src/jtag/swd.h
parent8b9560349fb78887d8e353e20b303966d9ac2d1b (diff)
downloadriscv-openocd-7cddeb0af20049fc891ed726885aebceeb1e22b7.zip
riscv-openocd-7cddeb0af20049fc891ed726885aebceeb1e22b7.tar.gz
riscv-openocd-7cddeb0af20049fc891ed726885aebceeb1e22b7.tar.bz2
swd: remove unused API frequency()
The specific SWD API to change/query the adapter speed is never called because the equivalent JTAG API is used in place of it. In the restructure of struct jtag_interface, the JTAG API is promoted as global adapter API, thus a specific SWD one is not anymore required. Change-Id: I1e810d255b4dfcd5791b4fac8ae1260c31a057fd Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/4891 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/jtag/swd.h')
-rw-r--r--src/jtag/swd.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/jtag/swd.h b/src/jtag/swd.h
index 3ff4de0..0b32105 100644
--- a/src/jtag/swd.h
+++ b/src/jtag/swd.h
@@ -233,24 +233,6 @@ struct swd_driver {
int (*init)(void);
/**
- * Set the SWCLK frequency of the SWD link.
- *
- * The driver should round the desired value, downwards if possible, to
- * the nearest supported frequency. A negative value should be ignored
- * and can be used to query the current setting. If the driver does not
- * support a variable frequency a fixed, nominal, value should be
- * returned.
- *
- * If the frequency is increased, it must not apply before the currently
- * queued transactions are executed. If the frequency is lowered, it may
- * apply immediately.
- *
- * @param hz The desired frequency in Hz.
- * @return The actual resulting frequency after rounding.
- */
- int_least32_t (*frequency)(int_least32_t hz);
-
- /**
* Queue a special SWDIO sequence.
*
* @param seq The special sequence to generate.