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@steve-m.de --- flashrom.8 | 4 ++-- ft2232_spi.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/flashrom.8 b/flashrom.8 index 6556609..537b61e 100644 --- a/flashrom.8 +++ b/flashrom.8 @@ -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..438e31d 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -173,6 +173,11 @@ int ft2232_spi_init(void) ft2232_interface = INTERFACE_A; cs_bits = 0x18; pindir = 0x1b; + } 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, "openmoko")) { ft2232_vid = FIC_VID; ft2232_type = OPENMOKO_DBGBOARD_PID;