cable: add FTDI FT4232HP mapping

This commit is contained in:
Giovanni Bruni 2023-10-11 10:04:29 +02:00
parent 0bbf817c92
commit 2754e99215
2 changed files with 4 additions and 0 deletions

View File

@ -108,6 +108,8 @@ static std::map <std::string, cable_t> cable_list = {
{"ft232", FTDI_SER(0x0403, 0x6014, FTDI_INTF_A, 0x08, 0x0B, 0x08, 0x0B)},
{"ft232RL", FTDI_BB( 0x0403, 0x6001, FTDI_INTF_A, 0x08, 0x0B, 0x08, 0x0B)},
{"ft4232", FTDI_SER(0x0403, 0x6011, FTDI_INTF_A, 0x08, 0x0B, 0x08, 0x0B)},
{"ft4232hp", FTDI_SER(0x0403, 0x6043, FTDI_INTF_A, 0x08, 0x0B, 0x00, 0x00)},
{"ft4232hp_b", FTDI_SER(0x0403, 0x6043, FTDI_INTF_B, 0x08, 0x0B, 0x00, 0x00)},
{"ecpix5-debug", FTDI_SER(0x0403, 0x6010, FTDI_INTF_A, 0xF8, 0xFB, 0xFF, 0xFF)},
{"jlink", CABLE_DEF(MODE_JLINK, 0x1366, 0x0105 )},
{"jlink_base", CABLE_DEF(MODE_JLINK, 0x1366, 0x0101 )},

View File

@ -74,6 +74,8 @@ bool libusb_ll::scan()
snprintf(probe_type, 256, "ft232H");
else if (desc.idProduct == 0x6015)
snprintf(probe_type, 256, "ft231X");
else if (desc.idProduct == 0x6043)
snprintf(probe_type, 256, "FT4232HP");
else
snprintf(probe_type, 256, "unknown FTDI");
found = true;