Skip to content

Commit fe71050

Browse files
collinmayjhovold
authored andcommitted
USB: serial: simple: add libtransistor console
Add simple driver for libtransistor USB console. This device is implemented in software: https://github.com/reswitched/libtransistor/blob/development/lib/usb_serial.c Signed-off-by: Collin May <[email protected]> Cc: stable <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
1 parent 60cc43f commit fe71050

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

drivers/usb/serial/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ config USB_SERIAL_SIMPLE
6262
- Fundamental Software dongle.
6363
- Google USB serial devices
6464
- HP4x calculators
65+
- Libtransistor USB console
6566
- a number of Motorola phones
6667
- Motorola Tetra devices
6768
- Novatel Wireless GPS receivers

drivers/usb/serial/usb-serial-simple.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ DEVICE(flashloader, FLASHLOADER_IDS);
6363
0x01) }
6464
DEVICE(google, GOOGLE_IDS);
6565

66+
/* Libtransistor USB console */
67+
#define LIBTRANSISTOR_IDS() \
68+
{ USB_DEVICE(0x1209, 0x8b00) }
69+
DEVICE(libtransistor, LIBTRANSISTOR_IDS);
70+
6671
/* ViVOpay USB Serial Driver */
6772
#define VIVOPAY_IDS() \
6873
{ USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */
@@ -110,6 +115,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
110115
&funsoft_device,
111116
&flashloader_device,
112117
&google_device,
118+
&libtransistor_device,
113119
&vivopay_device,
114120
&moto_modem_device,
115121
&motorola_tetra_device,
@@ -126,6 +132,7 @@ static const struct usb_device_id id_table[] = {
126132
FUNSOFT_IDS(),
127133
FLASHLOADER_IDS(),
128134
GOOGLE_IDS(),
135+
LIBTRANSISTOR_IDS(),
129136
VIVOPAY_IDS(),
130137
MOTO_IDS(),
131138
MOTOROLA_TETRA_IDS(),

0 commit comments

Comments
 (0)