diff options
author | Johan Hovold <johan@kernel.org> | 2018-09-30 14:27:03 +0200 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2018-10-05 08:57:06 +0200 |
commit | ff32d97e39e7053fdc1d316bd2e2eff70b77fdd2 (patch) | |
tree | 01ecdc02233d27560d2dc6fc3c87e4f713c258ad /drivers/usb/serial/ftdi_sio.h | |
parent | USB: serial: ftdi_sio: fix gpio name collisions (diff) | |
download | linux-ff32d97e39e7053fdc1d316bd2e2eff70b77fdd2.tar.xz linux-ff32d97e39e7053fdc1d316bd2e2eff70b77fdd2.zip |
USB: serial: ftdi_sio: add support for FT232R CBUS gpios
Enable support for cbus gpios on FT232R. The cbus configuration is
stored in one word in the EEPROM at offset 0x0a (byte-offset 0x14) with
the mux config for CBUS0, CBUS1, CBUS2 and CBUS3 in bits 0..3, 4..7,
8..11 and 12..15, respectively.
Tested using FT232RL by configuring one cbus pin at a time.
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.h')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/ftdi_sio.h b/drivers/usb/serial/ftdi_sio.h index 6cfe682f8348..a79a1325b4d9 100644 --- a/drivers/usb/serial/ftdi_sio.h +++ b/drivers/usb/serial/ftdi_sio.h @@ -457,7 +457,8 @@ enum ftdi_sio_baudrate { #define FTDI_SIO_READ_EEPROM_REQUEST_TYPE 0xc0 #define FTDI_SIO_READ_EEPROM_REQUEST FTDI_SIO_READ_EEPROM -#define FTDI_FTX_CBUS_MUX_GPIO 8 +#define FTDI_FTX_CBUS_MUX_GPIO 0x8 +#define FTDI_FT232R_CBUS_MUX_GPIO 0xa /* Descriptors returned by the device |