]>
Commit | Line | Data |
---|---|---|
745c46a8 GKH |
1 | From c7d373c3f0da2b2b78c4b1ce5ae41485b3ef848c Mon Sep 17 00:00:00 2001 |
2 | From: Max Mansfield <max.m.mansfield@gmail.com> | |
3 | Date: Mon, 2 Mar 2015 18:38:02 -0700 | |
4 | Subject: usb: ftdi_sio: Add jtag quirk support for Cyber Cortex AV boards | |
5 | ||
6 | From: Max Mansfield <max.m.mansfield@gmail.com> | |
7 | ||
8 | commit c7d373c3f0da2b2b78c4b1ce5ae41485b3ef848c upstream. | |
9 | ||
10 | This patch integrates Cyber Cortex AV boards with the existing | |
11 | ftdi_jtag_quirk in order to use serial port 0 with JTAG which is | |
12 | required by the manufacturers' software. | |
13 | ||
14 | Steps: 2 | |
15 | ||
16 | [ftdi_sio_ids.h] | |
17 | 1. Defined the device PID | |
18 | ||
19 | [ftdi_sio.c] | |
20 | 2. Added a macro declaration to the ids array, in order to enable the | |
21 | jtag quirk for the device. | |
22 | ||
23 | Signed-off-by: Max Mansfield <max.m.mansfield@gmail.com> | |
24 | Signed-off-by: Johan Hovold <johan@kernel.org> | |
25 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
26 | ||
27 | --- | |
28 | drivers/usb/serial/ftdi_sio.c | 2 ++ | |
29 | drivers/usb/serial/ftdi_sio_ids.h | 3 +++ | |
30 | 2 files changed, 5 insertions(+) | |
31 | ||
32 | --- a/drivers/usb/serial/ftdi_sio.c | |
33 | +++ b/drivers/usb/serial/ftdi_sio.c | |
34 | @@ -812,6 +812,8 @@ static const struct usb_device_id id_tab | |
35 | { USB_DEVICE(FTDI_VID, FTDI_ELSTER_UNICOM_PID) }, | |
36 | { USB_DEVICE(FTDI_VID, FTDI_PROPOX_JTAGCABLEII_PID) }, | |
37 | { USB_DEVICE(FTDI_VID, FTDI_PROPOX_ISPCABLEIII_PID) }, | |
38 | + { USB_DEVICE(FTDI_VID, CYBER_CORTEX_AV_PID), | |
39 | + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, | |
40 | { USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_PID), | |
41 | .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, | |
42 | { USB_DEVICE(OLIMEX_VID, OLIMEX_ARM_USB_OCD_H_PID), | |
43 | --- a/drivers/usb/serial/ftdi_sio_ids.h | |
44 | +++ b/drivers/usb/serial/ftdi_sio_ids.h | |
45 | @@ -38,6 +38,9 @@ | |
46 | ||
47 | #define FTDI_LUMEL_PD12_PID 0x6002 | |
48 | ||
49 | +/* Cyber Cortex AV by Fabulous Silicon (http://fabuloussilicon.com) */ | |
50 | +#define CYBER_CORTEX_AV_PID 0x8698 | |
51 | + | |
52 | /* | |
53 | * Marvell OpenRD Base, Client | |
54 | * http://www.open-rd.org |