USB: serial: simple: add libtransistor console
Subsystems (2)
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]>
Tested-by Collin May <[email protected]>
--- drivers/usb/serial/Kconfig | 1 + drivers/usb/serial/usb-serial-simple.c | 7 +++++++ 2 files changed, 8 insertions(+)
drivers/usb/serial/Kconfig +1 -0
@@ -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
@@ -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);