From 2d4ae3f4c881696c60f2eb1d1c3b4b6a9577bbd6 Mon Sep 17 00:00:00 2001 From: Simon Qian Date: Tue, 17 Mar 2015 00:11:09 +0800 Subject: [PATCH] configure the SWD frequency when setting adapter speed in SWD mode for versaloon Change-Id: I99cdc11ba1442e4c9efaa0f1de8e7089ec725e14 Signed-off-by: Simon Qian Reviewed-on: http://openocd.zylin.com/2608 Tested-by: jenkins Reviewed-by: Tomas Vanek Reviewed-by: Spencer Oliver --- src/jtag/drivers/vsllink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jtag/drivers/vsllink.c b/src/jtag/drivers/vsllink.c index 844f6f276..f82dff911 100644 --- a/src/jtag/drivers/vsllink.c +++ b/src/jtag/drivers/vsllink.c @@ -242,8 +242,10 @@ static int vsllink_execute_queue(void) static int vsllink_speed(int speed) { - if (swd_mode) + if (swd_mode) { + vsllink_swd_frequency(NULL, speed * 1000); return ERROR_OK; + } versaloon_interface.adaptors.jtag_raw.config(0, (uint16_t)speed); return versaloon_interface.adaptors.peripheral_commit();