summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorJörg Fischer <turboj@gmx.de>2010-07-29 15:54:53 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-07-29 15:54:53 +0000
commit6529b9fdc2340d7cfee198eea77f38424acaef86 (patch)
treea3a6767ea99a4711985bdf06d2b4424005ce88e8 /programmer.h
parent116171275ca1262feb55d961d2dbb1232f73b29d (diff)
downloadast2050-flashrom-6529b9fdc2340d7cfee198eea77f38424acaef86.zip
ast2050-flashrom-6529b9fdc2340d7cfee198eea77f38424acaef86.tar.gz
Add support for the Amontec JTAGkey2
Add support for the Amontec JTAGkey2, see http://www.amontec.com/jtagkey2.shtml http://www.amontec.com/jtagkey.shtml. This FTDI 2232H variant has an additional output enable, which will be set to its "on" (L) when CS is pulled low. But it lacks a power supply and you need an external 3.3V source. The attached patch adds "jtagkey" as "type" parameter for ft2232_spi. It should work with all JTAGkeys (JTAGkey, JTAGkey-tiny and JTAGkey2) but I only have a JTAGkey2 here for testing. Add all FT2232H/FT4232H based programmers to the list printed with flashrom -L Corresponding to flashrom svn r1119. Signed-off-by: Jörg Fischer <turboj@gmx.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/programmer.h b/programmer.h
index 226db04..b8b7d04 100644
--- a/programmer.h
+++ b/programmer.h
@@ -397,12 +397,21 @@ extern const struct pcidev_status ata_hpt[];
#endif
/* ft2232_spi.c */
-#define FTDI_FT2232H 0x6010
-#define FTDI_FT4232H 0x6011
+#if CONFIG_FT2232_SPI == 1
+struct usbdev_status {
+uint16_t vendor_id;
+ uint16_t device_id;
+ int status;
+ const char *vendor_name;
+ const char *device_name;
+};
int ft2232_spi_init(void);
int ft2232_spi_send_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr);
int ft2232_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);
int ft2232_spi_write_256(struct flashchip *flash, uint8_t *buf, int start, int len);
+extern const struct usbdev_status devs_ft2232spi[];
+void print_supported_usbdevs(const struct usbdev_status *devs);
+#endif
/* rayer_spi.c */
#if CONFIG_RAYER_SPI == 1
OpenPOWER on IntegriCloud