USB: serial: ftdi_sio: add support for FT232R CBUS gpios
authorJohan Hovold <johan@kernel.org>
Sun, 30 Sep 2018 12:27:03 +0000 (14:27 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 5 Oct 2018 06:57:06 +0000 (08:57 +0200)
commitff32d97e39e7053fdc1d316bd2e2eff70b77fdd2
tree01ecdc02233d27560d2dc6fc3c87e4f713c258ad
parente0658e3074231d68f6546be1c5916ba2f4dc1295
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>
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio.h