Changeset 1451 for trunk


Ignore:
Timestamp:
10/14/11 22:33:14 (7 months ago)
Author:
uwe
Message:

TIAO/DIYGADGET USB Multi-Protocol Adapter (TUMPA) support.

Thanks to TIAO/DIYGADGET for sponsoring a test device!

This is an FTDI FT2232H based device which provides an easily accessible JTAG,
SPI, I2C, serial breakout. The SPI part can be used to flash SPI flash chips
using flashrom.

 http://www.diygadget.com/tiao-usb-multi-protocol-adapter-jtag-spi-i2c-serial.html
 http://www.tiaowiki.com/w/TIAO_USB_Multi_Protocol_Adapter_User%27s_Manual#SPI_Connector_1

There are two SPI connectors (pin headers) on the board: SPI1, which is
connected to the FT2232H's A interface, and SPI2, which is connected to the
chip's B interface. Both can be used to flash SPI chips:

flashrom -p ft2232_spi:type=tumpa,port=A
flashrom -p ft2232_spi:type=tumpa,port=B

The default interface is A, so for SPI1 you can also just write:

flashrom -p ft2232_spi:type=tumpa

I tested all operations on both interfaces, everything works fine.

Signed-off-by: Uwe Hermann <uwe@…>
Acked-by: Stefan Tauner <stefan.tauner@…>

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/flashrom.8

    r1437 r1451  
    200200FTDI FT2232H Mini-Module, FTDI FT4232H Mini-Module, openbiosprog-spi, Amontec \ 
    201201JTAGkey/JTAGkey-tiny/JTAGkey-2, Dangerous Prototypes Bus Blaster, \ 
    202 Olimex ARM-USB-TINY/-H, and Olimex ARM-USB-OCD/-H." 
     202Olimex ARM-USB-TINY/-H, Olimex ARM-USB-OCD/-H, and TIAO/DIYGADGET USB 
     203Multi-Protocol Adapter (TUMPA). 
    203204.sp 
    204205.BR "* serprog" " (for flash ROMs attached to a programmer speaking serprog), \ 
     
    442443can be 
    443444.BR 2232H ", " 4232H ", " jtagkey ", " busblaster ", " openmoko ", " \ 
    444 arm-usb-tiny ", " arm-usb-tiny-h ", " arm-usb-ocd " or " arm-usb-ocd-h 
     445arm-usb-tiny ", " arm-usb-tiny-h ", " arm-usb-ocd ", " arm-usb-ocd-h \ 
     446", or " tumpa 
    445447and 
    446448.B interface 
  • trunk/ft2232_spi.c

    r1414 r1451  
    3030#include <ftdi.h> 
    3131 
     32/* Please keep sorted by vendor ID, then device ID. */ 
     33 
    3234#define FTDI_VID                0x0403 
    3335#define FTDI_FT2232H_PID        0x6010 
    3436#define FTDI_FT4232H_PID        0x6011 
     37#define TIAO_TUMPA_PID          0x8a98 
    3538#define AMONTEC_JTAGKEY_PID     0xCFF8 
    3639 
     
    4750        {FTDI_VID, FTDI_FT2232H_PID, OK, "FTDI", "FT2232H"}, 
    4851        {FTDI_VID, FTDI_FT4232H_PID, OK, "FTDI", "FT4232H"}, 
     52        {FTDI_VID, TIAO_TUMPA_PID, OK, "TIAO", "USB Multi-Protocol Adapter"}, 
    4953        {FTDI_VID, AMONTEC_JTAGKEY_PID, OK, "Amontec", "JTAGkey"}, 
    5054        {FIC_VID, OPENMOKO_DBGBOARD_PID, OK, "FIC", 
     
    173177                        cs_bits = 0x18; 
    174178                        pindir = 0x1b; 
     179                } else if (!strcasecmp(arg, "tumpa")) { 
     180                        /* Interface A is SPI1, B is SPI2. */ 
     181                        ft2232_type = TIAO_TUMPA_PID; 
     182                        ft2232_interface = INTERFACE_A; 
    175183                } else if (!strcasecmp(arg, "busblaster")) { 
    176184                        /* In its default configuration it is a jtagkey clone */ 
  • trunk/util/z60_flashrom.rules

    r1340 r1451  
    7373ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002a", MODE="664", GROUP="plugdev" 
    7474 
     75# TIAO/DIYGADGET USB Multi-Protocol Adapter (TUMPA) 
     76# http://www.diygadget.com/tiao-usb-multi-protocol-adapter-jtag-spi-i2c-serial.html 
     77ATTRS{idVendor}=="0403", ATTRS{idProduct}=="8a98", MODE="664", GROUP="plugdev" 
     78 
    7579LABEL="flashrom_rules_end" 
Note: See TracChangeset for help on using the changeset viewer.