[flashrom] [PATCH] ft2232_spi: add support for the Dangerous Prototypes Bus Blaster

Steve Markgraf steve at steve-m.de
Thu Aug 11 20:01:25 CEST 2011


Add support for the Dangerous Prototypes Bus Blaster (v1/v2).
The new type 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 at steve-m.de>
---
  ft2232_spi.c |    8 +++++++-
  1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ft2232_spi.c b/ft2232_spi.c
index 689f276..9d35d27 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -47,6 +47,7 @@
  const struct usbdev_status devs_ft2232spi[] = {
  	{FTDI_VID, FTDI_FT2232H_PID, OK, "FTDI", "FT2232H"},
  	{FTDI_VID, FTDI_FT4232H_PID, OK, "FTDI", "FT4232H"},
+	{FTDI_VID, FTDI_FT2232H_PID, OK, "FTDI", "Dual RS232-HS"},
  	{FTDI_VID, AMONTEC_JTAGKEY_PID, OK, "Amontec", "JTAGkey"},
  	{FIC_VID, OPENMOKO_DBGBOARD_PID, OK, "FIC",
  		"OpenMoko Neo1973 Debug board (V2+)"},
@@ -168,7 +169,12 @@ int ft2232_spi_init(void)
  			ft2232_type = FTDI_FT2232H_PID;
  		else if (!strcasecmp(arg, "4232H"))
  			ft2232_type = FTDI_FT4232H_PID;
-		else if (!strcasecmp(arg, "jtagkey")) {
+		else if (!strcasecmp(arg, "busblaster")) {
+			ft2232_type = FTDI_FT2232H_PID;
+			ft2232_interface = INTERFACE_A;
+			cs_bits = 0x18;		/* is a jtagkey clone in its */
+			pindir = 0x1b;		/* default configuration     */
+		} else if (!strcasecmp(arg, "jtagkey")) {
  			ft2232_type = AMONTEC_JTAGKEY_PID;
  			ft2232_interface = INTERFACE_A;
  			cs_bits = 0x18;
-- 
1.7.4.1




More information about the flashrom mailing list