diff options
| author | Icenowy Zheng <icenowy@aosc.io> | 2019-01-28 13:57:17 +0800 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2019-02-04 17:24:48 +0100 |
| commit | 15fb84b741966c8a08e02e145ec5932d51b6c4ad (patch) | |
| tree | f3834781910c045ab47e6a926fab2260080051f0 /drivers/usb/serial/ch341.c | |
| parent | a49e1abf07701600ad5ef990e56d676cbab91bf5 (diff) | |
| download | linux-15fb84b741966c8a08e02e145ec5932d51b6c4ad.tar.gz linux-15fb84b741966c8a08e02e145ec5932d51b6c4ad.tar.bz2 linux-15fb84b741966c8a08e02e145ec5932d51b6c4ad.zip | |
USB: serial: cp210x: add GPIO support for CP2104
The CP2104 chips feature 4 controllable GPIO pins, which are similar to
the ones on CP2102N chip (output-only when push-pull, output or
simulated input mode when open-drain).
Add support for the GPIO pins for cp210x driver. The pin get/set routine
is shared with CP2102N, but the pinconf initialization code is not
shared because the acquisition of GPIO configuration in OTP ROM is
similar to CP2105, not CP2102N.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ch341.c')
0 files changed, 0 insertions, 0 deletions
