summaryrefslogtreecommitdiff
path: root/ft2232_spi.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-12-20 02:08:14 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-12-20 02:08:14 +0000
commite9252c3ab20287c2c08275a56c67c8abae1cff74 (patch)
tree22ca726858c8c2032b7b3a58343a29755deea7a6 /ft2232_spi.c
parentfd350a134f80c20f8d6ec05afe1347ece1b67e3e (diff)
downloadflashrom-e9252c3ab20287c2c08275a56c67c8abae1cff74.tar.gz
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 <fercerpav@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1478 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'ft2232_spi.c')
-rw-r--r--ft2232_spi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index ce7d899..122866f 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -204,6 +204,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;
@@ -212,6 +214,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;