zy1000: flush jtag buffer before changing speed

It is conceivable that there could be commands in the
queue when a speed change request comes in. Flush the
hw queue before changing speed. Not observed, found by
inspection.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
__archive__
Øyvind Harboe 2010-01-18 21:54:58 +01:00
parent c795b0d8f1
commit 924bf27596
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ void zy1000_reset(int trst, int srst)
int zy1000_speed(int speed)
{
/* flush JTAG master FIFO before setting speed */
waitIdle();
if (speed == 0)
{
/*0 means RCLK*/