]> git.sur5r.net Git - openocd/commitdiff
configure the SWD frequency when setting adapter speed in SWD mode for versaloon
authorSimon Qian <openocd@versaloon.com>
Mon, 16 Mar 2015 16:11:09 +0000 (00:11 +0800)
committerPaul Fertser <fercerpav@gmail.com>
Thu, 16 Apr 2015 19:30:49 +0000 (20:30 +0100)
Change-Id: I99cdc11ba1442e4c9efaa0f1de8e7089ec725e14
Signed-off-by: Simon Qian <openocd@versaloon.com>
Reviewed-on: http://openocd.zylin.com/2608
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/vsllink.c

index 844f6f2766f07bde5b10344dbc49a8db7b69a4cf..f82dff911666ad87a8f33222759705182a47b31c 100644 (file)
@@ -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();