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 <col...@collinswebsite.com>
Tested-by: Collin May <col...@collinswebsite.com>
---
 drivers/usb/serial/Kconfig             | 1 +
 drivers/usb/serial/usb-serial-simple.c | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig
index c66b93664d54..dac738364950 100644
--- a/drivers/usb/serial/Kconfig
+++ b/drivers/usb/serial/Kconfig
@@ -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.
diff --git a/drivers/usb/serial/usb-serial-simple.c 
b/drivers/usb/serial/usb-serial-simple.c
index 4ef79e29cb26..e77017285fcd 100644
--- a/drivers/usb/serial/usb-serial-simple.c
+++ b/drivers/usb/serial/usb-serial-simple.c
@@ -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);
-- 
2.16.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to