From: Simon Qian Date: Mon, 16 Mar 2015 16:11:09 +0000 (+0800) Subject: configure the SWD frequency when setting adapter speed in SWD mode for versaloon X-Git-Tag: v0.9.0-rc1~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d4ae3f4c881696c60f2eb1d1c3b4b6a9577bbd6;p=openocd 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 --- diff --git a/src/jtag/drivers/vsllink.c b/src/jtag/drivers/vsllink.c index 844f6f27..f82dff91 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();