ftdi: fix adapter_init rclk fallback
commite4df550ad9cb1ac1675054ff99cb2fc650dc6e29
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 24 Sep 2012 11:29:47 +0000 (24 12:29 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Tue, 2 Oct 2012 11:22:27 +0000 (2 11:22 +0000)
treea0bb2bde63ca65a16d59227fab2e875cd1be911e
parentabccd76ea45df7a3fad3fbb8e0def11e994fc20c
ftdi: fix adapter_init rclk fallback

adapter_init expects jtag_get_speed (via ftdi_khz) to return a valid
fallback speed if the adapter does not support rclk. The call was failing
and so was the rest of the adapter init.

The makes the new ftdi driver emulate the old ftdi driver.

Change-Id: Ic7fac7d201241eb181e98f1ba7111f159731f6e0
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/839
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/jtag/drivers/ftdi.c