From: Da Shi Cao <dscao999@gmail.com> To: linux-usb@vger.kernel.org, linux-terminal@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] Add support of TI ICDI to USB simple serial device Date: Sat, 13 Oct 2018 17:10:50 +0800 [thread overview] Message-ID: <CAG3POB=BYJ_+iYy-xNygzp2RVOaUY2qEhRn9kTSNXYUo=9a5Og@mail.gmail.com> (raw) In-Circuit Debug Interface is a debugging interface for TI ARM microcontrollers. It has three USB interfaces and two of them are presented as standard ACM serial device. The 3rd interface is the debugging interface and it can be driven as a Linux USB simple terminal. With it, debugging session and firmware up/down loading are supported on Linux. Signed-off-by: Dashi Cao <dscao999@hotmail.com, dscao999@gmail.com> --- drivers/usb/serial/usb-serial-simple.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c index 4d0273508043..ae43088b659e 100644 --- a/drivers/usb/serial/usb-serial-simple.c +++ b/drivers/usb/serial/usb-serial-simple.c @@ -109,6 +109,11 @@ DEVICE(suunto, SUUNTO_IDS); { USB_DEVICE(0x908, 0x0004) } DEVICE(siemens_mpi, SIEMENS_IDS); +/* TI In-Circuit Debug Interface */ +#define ICDI_IDS() \ + { USB_DEVICE_INTERFACE_CLASS(0x1cbe, 0x00fd, USB_CLASS_VENDOR_SPEC) } +DEVICE(ti_icdi, ICDI_IDS); + /* All of the above structures mushed into two lists */ static struct usb_serial_driver * const serial_drivers[] = { &carelink_device, @@ -124,6 +129,7 @@ static struct usb_serial_driver * const serial_drivers[] = { &hp4x_device, &suunto_device, &siemens_mpi_device, + &ti_icdi_device, NULL }; @@ -141,6 +147,7 @@ static const struct usb_device_id id_table[] = { HP4X_IDS(), SUUNTO_IDS(), SIEMENS_IDS(), + ICDI_IDS(), { }, }; MODULE_DEVICE_TABLE(usb, id_table); -- 2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: Da Shi Cao <dscao999@gmail.com> To: linux-usb@vger.kernel.org, linux-terminal@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: Add support of TI ICDI to USB simple serial device Date: Sat, 13 Oct 2018 17:10:50 +0800 [thread overview] Message-ID: <CAG3POB=BYJ_+iYy-xNygzp2RVOaUY2qEhRn9kTSNXYUo=9a5Og@mail.gmail.com> (raw) In-Circuit Debug Interface is a debugging interface for TI ARM microcontrollers. It has three USB interfaces and two of them are presented as standard ACM serial device. The 3rd interface is the debugging interface and it can be driven as a Linux USB simple terminal. With it, debugging session and firmware up/down loading are supported on Linux. Signed-off-by: Dashi Cao <dscao999@hotmail.com, dscao999@gmail.com> --- drivers/usb/serial/usb-serial-simple.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.11.0 diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c index 4d0273508043..ae43088b659e 100644 --- a/drivers/usb/serial/usb-serial-simple.c +++ b/drivers/usb/serial/usb-serial-simple.c @@ -109,6 +109,11 @@ DEVICE(suunto, SUUNTO_IDS); { USB_DEVICE(0x908, 0x0004) } DEVICE(siemens_mpi, SIEMENS_IDS); +/* TI In-Circuit Debug Interface */ +#define ICDI_IDS() \ + { USB_DEVICE_INTERFACE_CLASS(0x1cbe, 0x00fd, USB_CLASS_VENDOR_SPEC) } +DEVICE(ti_icdi, ICDI_IDS); + /* All of the above structures mushed into two lists */ static struct usb_serial_driver * const serial_drivers[] = { &carelink_device, @@ -124,6 +129,7 @@ static struct usb_serial_driver * const serial_drivers[] = { &hp4x_device, &suunto_device, &siemens_mpi_device, + &ti_icdi_device, NULL }; @@ -141,6 +147,7 @@ static const struct usb_device_id id_table[] = { HP4X_IDS(), SUUNTO_IDS(), SIEMENS_IDS(), + ICDI_IDS(), { }, }; MODULE_DEVICE_TABLE(usb, id_table);
next reply other threads:[~2018-10-13 9:11 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-10-13 9:10 Da Shi Cao [this message] 2018-10-13 9:10 ` Add support of TI ICDI to USB simple serial device Da Shi Cao 2018-10-15 5:49 ` [PATCH] " Felipe Balbi 2018-10-15 5:49 ` Felipe Balbi 2018-10-18 16:53 ` [PATCH] " Greg KH 2018-10-18 16:53 ` Greg KH 2018-10-26 11:38 [PATCH] " Dashi Cao 2018-11-12 9:17 ` Johan Hovold
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CAG3POB=BYJ_+iYy-xNygzp2RVOaUY2qEhRn9kTSNXYUo=9a5Og@mail.gmail.com' \ --to=dscao999@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-terminal@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.