eeprom->product_id = 0x6001;
else
eeprom->product_id = 0x6010;
- switch (ftdi->type)
- {
- case TYPE_2232C:
- eeprom->release = 0x500;
- break;
- case TYPE_2232H:
- eeprom->release = 0x200;
- break;
- default:
- eeprom->release = 0;
- }
if (ftdi->type == TYPE_AM)
eeprom->usb_version = 0x0101;
else
// Addr 06: Device release number (0400h for BM features)
output[0x06] = 0x00;
- switch (eeprom->release) {
+ switch (ftdi->type) {
case TYPE_AM:
output[0x07] = 0x02;
break;
case TYPE_R:
output[0x07] = 0x06;
break;
+ case TYPE_2232H:
+ output[0x07] = 0x07;
+ break;
+ case TYPE_4232H:
+ output[0x07] = 0x08;
+ break;
default:
output[0x07] = 0x00;
}
ftdi_error_return(-1,"EEPROM checksum error");
}
+ eeprom->channel_a_type = 0;
if ((ftdi->type == TYPE_AM) || (ftdi->type == TYPE_BM))
{
eeprom->chip = -1;
}
else if(ftdi->type == TYPE_R)
{
- eeprom->channel_a_type = 0;
/* TYPE_R flags D2XX, not VCP as all others*/
eeprom->channel_a_driver = (~buf[0x00]) & DRIVER_VCP;
eeprom->high_current = buf[0x00] & HIGH_CURRENT_DRIVE_R;