summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/zy1000/zy1000.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c
index 9070f2e3..2c205b7a 100644
--- a/src/jtag/zy1000/zy1000.c
+++ b/src/jtag/zy1000/zy1000.c
@@ -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*/