]> git.sur5r.net Git - openocd/blobdiff - src/jtag/drivers/vsllink.c
configure the SWD frequency when setting adapter speed in SWD mode for versaloon
[openocd] / 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();