From a83e76bef948a72918325598f1323e4a158af458 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 5 Sep 2019 15:51:04 +0200 Subject: [PATCH] libftdi: Add USBMATE. --- src/platforms/hosted/ftdi_bmp.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/platforms/hosted/ftdi_bmp.c b/src/platforms/hosted/ftdi_bmp.c index 70b3f13..002955a 100644 --- a/src/platforms/hosted/ftdi_bmp.c +++ b/src/platforms/hosted/ftdi_bmp.c @@ -56,6 +56,31 @@ cable_desc_t cable_desc[] = { .description = "FLOSS-JTAG", .name = "flossjtag" }, + { + /* MPSSE_SK (DB0) ----------- SWDCK/JTCK + * MPSSE-DO (DB1) -- 470 R -- SWDIO/JTMS + * MPSSE-DI (DB2) ----------- SWDIO/JTMS + * DO is tristated with SWD read, so + * resistor is not necessary, but protects + * from contentions in case of errors. + * JTAG not possible + * PIN6 (DB6) ----------- NRST */ + .vendor = 0x0403, + .product = 0x6010,/*FT2232H*/ + .interface = INTERFACE_B, + .init.data_low = PIN4, /* Pull up pin 4 */ + .init.ddr_low = PIN4, /* Pull up pin 4 */ + .mpsse_swd_read.set_data_low = MPSSE_DO, + .mpsse_swd_write.set_data_low = MPSSE_DO, + .assert_srst.data_low = ~PIN6, + .assert_srst.ddr_low = PIN6, + .deassert_srst.data_low = PIN6, + .deassert_srst.ddr_low = ~PIN6, + .target_voltage_cmd = GET_BITS_LOW, + .target_voltage_pin = PIN4, /* Always read as target voltage present.*/ + .description = "USBMATE", + .name = "usbmate" + }, { /* MPSSE_SK (DB0) ----------- SWDCK/JTCK * MPSSE-DO (DB1) -- 470 R -- SWDIO/JTMS