src/jtag/drivers/mpsse: Add support for new FTDI chip types.

The new FTDI ICs with USB-C Support have different bcdDevice
identifiers. The added bcdDevice identifiers are taken from
the chips datasheet, respectively. The patch was tested with
a FT4232HP IC.
The used bcdDevice IDs can be found in Section 8.1 of the respective
Datasheets:
https://ftdichip.com/wp-content/uploads/2023/09/DS_FT233HP-v1.4.pdf
https://ftdichip.com/wp-content/uploads/2023/09/DS_FT2233HP-v1.4.pdf
https://ftdichip.com/wp-content/uploads/2023/09/DS_FT4233HP-v1.5.pdf

Change-Id: I701083cb72030e398ce1c74310676e13895a77ff
Signed-off-by: Luca Rufer <lucarufer333@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8134
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Luca Rufer 2024-02-08 21:59:47 +01:00 committed by Antonio Borneo
parent 179169268c
commit 56a7925a1d
2 changed files with 24 additions and 0 deletions

View File

@ -265,6 +265,24 @@ static bool open_matching_device(struct mpsse_ctx *ctx, const uint16_t vids[], c
case 0x900:
ctx->type = TYPE_FT232H;
break;
case 0x2800:
ctx->type = TYPE_FT2233HP;
break;
case 0x2900:
ctx->type = TYPE_FT4233HP;
break;
case 0x3000:
ctx->type = TYPE_FT2232HP;
break;
case 0x3100:
ctx->type = TYPE_FT4232HP;
break;
case 0x3200:
ctx->type = TYPE_FT233HP;
break;
case 0x3300:
ctx->type = TYPE_FT232HP;
break;
default:
LOG_ERROR("unsupported FTDI chip type: 0x%04x", desc.bcdDevice);
goto error;

View File

@ -24,6 +24,12 @@ enum ftdi_chip_type {
TYPE_FT2232H,
TYPE_FT4232H,
TYPE_FT232H,
TYPE_FT2233HP,
TYPE_FT4233HP,
TYPE_FT2232HP,
TYPE_FT4232HP,
TYPE_FT233HP,
TYPE_FT232HP,
};
struct mpsse_ctx;