These devices have an additional output buffer which is activated only by pulling ADBUS4 low. This patch was real-life tested with arm-usb-ocd; arm-usb-ocd-h should be the same (as it shares the same documentation).
Signed-off-by: Paul Fertser fercerpav@gmail.com --- ft2232_spi.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ft2232_spi.c b/ft2232_spi.c index 8d89ea1..6dcf855 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -202,6 +202,8 @@ int ft2232_spi_init(void) ft2232_vid = OLIMEX_VID; ft2232_type = OLIMEX_ARM_OCD_PID; ft2232_interface = INTERFACE_A; + cs_bits = 0x08; + pindir = 0x1b; } else if (!strcasecmp(arg, "arm-usb-tiny")) { ft2232_vid = OLIMEX_VID; ft2232_type = OLIMEX_ARM_TINY_PID; @@ -210,6 +212,8 @@ int ft2232_spi_init(void) ft2232_vid = OLIMEX_VID; ft2232_type = OLIMEX_ARM_OCD_H_PID; ft2232_interface = INTERFACE_A; + cs_bits = 0x08; + pindir = 0x1b; } else if (!strcasecmp(arg, "arm-usb-tiny-h")) { ft2232_vid = OLIMEX_VID; ft2232_type = OLIMEX_ARM_TINY_H_PID;
On Fri, 18 Nov 2011 22:15:43 +0400 Paul Fertser fercerpav@gmail.com wrote:
These devices have an additional output buffer which is activated only by pulling ADBUS4 low. This patch was real-life tested with arm-usb-ocd; arm-usb-ocd-h should be the same (as it shares the same documentation).
Signed-off-by: Paul Fertser fercerpav@gmail.com
Thanks for your patch Paul! As you have found out we are not that fast at integrating patches... sorry for that. I don't know much about the ft2232 programmers, but your patch looks ok in general and is signed off, so there is not much you can do further (but nag us). I have CCed the submitter of the original olimex patch (hello Pete) in case he wants to take a look and ack it.
Hi Paul,
thanks for your patch!
Am 18.11.2011 19:15 schrieb Paul Fertser:
These devices have an additional output buffer which is activated only by pulling ADBUS4 low. This patch was real-life tested with arm-usb-ocd; arm-usb-ocd-h should be the same (as it shares the same documentation).
Signed-off-by: Paul Fertser fercerpav@gmail.com
Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net and committed in r1478.
Regards, Carl-Daniel