index_value = get_ftdi_divisor(tty, port);
value = (u16)index_value;
index = (u16)(index_value >> 16);
- if (priv->chip_type == FT2232C || priv->chip_type == FT2232H ||
- priv->chip_type == FT4232H || priv->chip_type == FT232H ||
- priv->chip_type == FTX) {
- /* Probably the BM type needs the MSB of the encoded fractional
- * divider also moved like for the chips above. Any infos? */
+ if (priv->channel)
index = (u16)((index << 8) | priv->channel);
- }
rv = usb_control_msg(port->serial->dev,
usb_sndctrlpipe(port->serial->dev, 0),
break;
case 0x900:
priv->chip_type = FT232H;
+ priv->channel = CHANNEL_A + ifnum;
priv->baud_base = 120000000 / 2;
break;
case 0x1000:
priv->chip_type = FTX;
+ priv->channel = CHANNEL_A + ifnum;
break;
default:
if (version < 0x200) {