diff options
author | Karoly Pados <[email protected]> | 2018-09-25 15:59:11 +0200 |
---|---|---|
committer | Johan Hovold <[email protected]> | 2018-09-26 11:59:56 +0200 |
commit | ba93cc7da8965bd513a7393db0f030e51bff4b60 (patch) | |
tree | a165379bb83716c62951f8dcea43484e85b9c84d /scripts/bpf_helpers_doc.py | |
parent | bbc1f57aa87066a188ef34330bc1f091b95b1a6b (diff) |
USB: serial: ftdi_sio: implement GPIO support for FT-X devices
This patch allows using the CBUS pins of FT-X devices as GPIO in CBUS
bitbanging mode. There is no conflict between the GPIO and VCP
functionality in this mode. Tested on FT230X and FT231X.
As there is no way to request the current CBUS register configuration
from the device, all CBUS pins are set to a known state when the first
GPIO is requested. This allows using libftdi to set the GPIO pins
before loading this module for UART functionality, a behavior that
existing applications might be relying upon (though no specific case
is known to the authors of this patch).
Signed-off-by: Karoly Pados <[email protected]>
[ johan: minor style changes ]
Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions