USB: serial: ftdi_sio: add support for FT232H CBUS gpios
authorMatthew Michilot <matthew.michilot@gmail.com>
Thu, 15 Aug 2019 17:40:54 +0000 (17:40 +0000)
committerJohan Hovold <johan@kernel.org>
Wed, 28 Aug 2019 13:35:33 +0000 (15:35 +0200)
commit7a786b84790789eff5bad49e3f6c15f75b7bf691
tree91922a7b2bd7fa6a1d54004ee6c27a4580a691be
parentd1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1
USB: serial: ftdi_sio: add support for FT232H CBUS gpios

Enable support for cbus gpios on FT232H. The cbus configuration is
stored in two words in the EEPROM at byte-offset 0x1a with the mux
config for ACBUS5, ACBUS6, ACBUS8 and ACBUS9 (only pins that can be
configured as I/O mode).

Tested using FT232H by configuring one ACBUS pin at a time.

Reviewed-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Matthew Michilot <matthew.michilot@gmail.com>
[ johan: fix copy-paste error in commit message ]
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c