Skip to contentSkip to conversation

USB: serial: simple: add libtransistor console

PATCH Collin May 1 participant 1 message Apr 7, 2018

Subsystems (2)
lore
Share & tools
lore

Collin May

author
#0 lore raw

Add simple driver for libtransistor USB console.
This device is implemented in software:
https://github.com/reswitched/libtransistor/blob/development/lib/usb_serial.c

---
 drivers/usb/serial/Kconfig             | 1 +
 drivers/usb/serial/usb-serial-simple.c | 7 +++++++
 2 files changed, 8 insertions(+)
drivers/usb/serial/Kconfig +1 -0
index c66b93664d54..dac738364950 100644
@@ -69,6 +69,7 @@ config USB_SERIAL_SIMPLE
 		- ViVOtech ViVOpay USB device.
 		- Infineon Modem Flashloader USB interface
 		- ZIO Motherboard USB serial interface
+		- Libtransistor USB console
 
 	  To compile this driver as a module, choose M here: the module
 	  will be called usb-serial-simple.
drivers/usb/serial/usb-serial-simple.c +7 -0
index 4ef79e29cb26..e77017285fcd 100644
@@ -103,6 +103,11 @@ DEVICE(suunto, SUUNTO_IDS);
 	{ USB_DEVICE(0x908, 0x0004) }
 DEVICE(siemens_mpi, SIEMENS_IDS);
 
+/* Libtransistor USB console */
+#define LIBTRANSISTOR_IDS()			\
+	{ USB_DEVICE(0x1209, 0x8b00) }
+DEVICE(libtransistor, LIBTRANSISTOR_IDS);
+
 /* All of the above structures mushed into two lists */
 static struct usb_serial_driver * const serial_drivers[] = {
 	&carelink_device,
@@ -117,6 +122,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
 	&hp4x_device,
 	&suunto_device,
 	&siemens_mpi_device,
+	&libtransistor_device,
 	NULL
 };
 
@@ -133,6 +139,7 @@ static const struct usb_device_id id_table[] = {
 	HP4X_IDS(),
 	SUUNTO_IDS(),
 	SIEMENS_IDS(),
+	LIBTRANSISTOR_IDS(),
 	{ },
 };
 MODULE_DEVICE_TABLE(usb, id_table);