Author: hailfinger
Date: Tue Dec 20 03:08:14 2011
New Revision: 1478
URL: http://flashrom.org/trac/flashrom/changeset/1478

Log:
ft2232_spi: fix arm-usb-ocd and arm-usb-ocd-h

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 <fercer...@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2...@gmx.net>

Modified:
   trunk/ft2232_spi.c

Modified: trunk/ft2232_spi.c
==============================================================================
--- trunk/ft2232_spi.c  Tue Dec 20 02:54:19 2011        (r1477)
+++ trunk/ft2232_spi.c  Tue Dec 20 03:08:14 2011        (r1478)
@@ -204,6 +204,8 @@
                        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;
@@ -212,6 +214,8 @@
                        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;

_______________________________________________
flashrom mailing list
flashrom@flashrom.org
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to