Hi,
This patch fixes support for some processor, which require slow SWD frequency 
on startup, and can speed up later.
OpenOCD doesn't call jtag->swd->frequency, but call jtag->speed directly.



[email protected]
 
From: Tomas Vanek
Date: 2015-04-10 23:51
To: openocd-devel
Subject: Re: [OpenOCD-devel] [PATCH]: f0857f7 configure the SWD frequency when 
setting adapter speed in SWD mode for versaloon
Hi maintainers,
 
I think #2608 is worth merging to 0.9.0
Please give the second point.
 
Tom
 
On 16.3.2015 17:19, [email protected] wrote:
> This is an automated email from Gerrit.
>
> simon qian ([email protected]) just uploaded a new patch set to Gerrit, 
> which you can find at http://openocd.zylin.com/2608
>
> -- gerrit
>
> commit f0857f72bfcbe3be3f4e4c1059633ec3b36947f1
> Author: Simon Qian <[email protected]>
> Date:   Tue Mar 17 00:11:09 2015 +0800
>
>      configure the SWD frequency when setting adapter speed in SWD mode for 
> versaloon
>      
>      Change-Id: I99cdc11ba1442e4c9efaa0f1de8e7089ec725e14
>      Signed-off-by: Simon Qian <[email protected]>
>
> diff --git a/src/jtag/drivers/vsllink.c b/src/jtag/drivers/vsllink.c
> index 844f6f2..f82dff9 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();
>
 
 
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to