summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-08-12 01:19:32 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-08-12 01:19:32 +0000
commit5e88d071c691206c3da74b4e9ebf1559069fc4cf (patch)
treedd0dfd3a8cee05c22e09b94e670390b8c307b61d
parentafa089d66e840c79e80786da3cde16a1e517ce3f (diff)
downloadflashrom-5e88d071c691206c3da74b4e9ebf1559069fc4cf.tar.gz
ft2232_spi: add support for the Dangerous Prototypes Bus Blaster
Add support for the Dangerous Prototypes Bus Blaster (v1/v2). The new model is called "busblaster". So far only v2 has been tested, but since both v1 and v2 emulate a Amontec JTAGKEY in the default configuration, it is assumed that v1 should work fine as well. Information about the Busblaster can be found at: http://dangerousprototypes.com/docs/Bus_Blaster Signed-off-by: Steve Markgraf <steve@steve-m.de> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1412 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--flashrom.88
-rw-r--r--ft2232_spi.c6
2 files changed, 10 insertions, 4 deletions
diff --git a/flashrom.8 b/flashrom.8
index 6556609..1b9bf60 100644
--- a/flashrom.8
+++ b/flashrom.8
@@ -198,8 +198,8 @@ cards)"
.BR "* ft2232_spi" " (for SPI flash ROMs attached to an FT2232/FT4232H family \
based USB SPI programmer), including the DLP Design DLP-USB1232H, \
FTDI FT2232H Mini-Module, FTDI FT4232H Mini-Module, openbiosprog-spi, Amontec \
-JTAGkey/JTAGkey-tiny/JTAGkey-2, Olimex ARM-USB-TINY/-H, and Olimex \
-ARM-USB-OCD/-H."
+JTAGkey/JTAGkey-tiny/JTAGkey-2, Dangerous Prototypes Bus Blaster, \
+Olimex ARM-USB-TINY/-H, and Olimex ARM-USB-OCD/-H."
.sp
.BR "* serprog" " (for flash ROMs attached to a programmer speaking serprog), \
including AVR flasher by Urja Rannikko, AVR flasher by eightdot, \
@@ -440,8 +440,8 @@ type and interface/port it should support. For that you have to use the
syntax where
.B model
can be
-.BR 2232H ", " 4232H ", " jtagkey ", " openmoko ", " arm-usb-tiny ", " \
-arm-usb-tiny-h ", " arm-usb-ocd " or " arm-usb-ocd-h
+.BR 2232H ", " 4232H ", " jtagkey ", " busblaster ", " openmoko ", " \
+arm-usb-tiny ", " arm-usb-tiny-h ", " arm-usb-ocd " or " arm-usb-ocd-h
and
.B interface
can be
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 689f276..cb247fa 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -173,6 +173,12 @@ int ft2232_spi_init(void)
ft2232_interface = INTERFACE_A;
cs_bits = 0x18;
pindir = 0x1b;
+ } else if (!strcasecmp(arg, "busblaster")) {
+ /* In its default configuration it is a jtagkey clone */
+ ft2232_type = FTDI_FT2232H_PID;
+ ft2232_interface = INTERFACE_A;
+ cs_bits = 0x18;
+ pindir = 0x1b;
} else if (!strcasecmp(arg, "openmoko")) {
ft2232_vid = FIC_VID;
ft2232_type = OPENMOKO_DBGBOARD_PID;