[PATCH] Product ID for FT232RL in ftdi_sio
Gard Spreemann <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Here is a patch adding the PID for the FT232RL to ftdi_sio. The patch generates a warning during compilation because get_ftdi_divisor doesn't explicitly handle the FT232RL with this patch, so I guess you don't want to use it in its current state. It is all I could come up with with the knowledge I have of the drivers at the moment, though, and I hope you can have some use for it at least. It works fine with my DLP-TILT with an FT232RL. As I said, the patch is probably incomplete (although it works), but I'd really appreciate to hear about any corrections so that I can learn what I've done wrong. I'm not subscribed to the list, so please CC me. Thanks! Regards, -- Gard Spreemann <spreeman (AT) stud.ntnu.no> <http://folk.ntnu.no/spreeman/> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
usb-ftdi_sio-adding-pid-for-232rl.patch
(text/x-diff, 1.8 KB)
diff -uprN -X linux-2.6.20.1.orig/Documentation/dontdiff linux-2.6.20.1.orig/drivers/usb/serial/ftdi_sio.c linux-2.6.20.1/drivers/usb/serial/ftdi_sio.c
--- linux-2.6.20.1.orig/drivers/usb/serial/ftdi_sio.c 2007-03-04 15:03:24.000000000 +0100
+++ linux-2.6.20.1/drivers/usb/serial/ftdi_sio.c 2007-03-04 15:06:32.000000000 +0100
@@ -315,6 +315,7 @@ static struct usb_device_id id_table_com
{ USB_DEVICE(FTDI_VID, FTDI_SIO_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_8U232AM_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_8U232AM_ALT_PID) },
+ { USB_DEVICE(FTDI_VID, FTDI_232RL_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_8U2232C_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_MICRO_CHAMELEON_PID) },
{ USB_DEVICE(FTDI_VID, FTDI_RELAIS_PID) },
@@ -533,6 +534,7 @@ static const char *ftdi_chip_name[] = {
[FT8U232AM] = "FT8U232AM",
[FT232BM] = "FT232BM",
[FT2232C] = "FT2232C",
+ [FT232RL] = "FT232RL",
};
diff -uprN -X linux-2.6.20.1.orig/Documentation/dontdiff linux-2.6.20.1.orig/drivers/usb/serial/ftdi_sio.h linux-2.6.20.1/drivers/usb/serial/ftdi_sio.h
--- linux-2.6.20.1.orig/drivers/usb/serial/ftdi_sio.h 2007-03-04 15:03:24.000000000 +0100
+++ linux-2.6.20.1/drivers/usb/serial/ftdi_sio.h 2007-03-04 15:05:17.000000000 +0100
@@ -27,6 +27,7 @@
#define FTDI_8U232AM_PID 0x6001 /* Similar device to SIO above */
#define FTDI_8U232AM_ALT_PID 0x6006 /* FTDI's alternate PID for above */
#define FTDI_8U2232C_PID 0x6010 /* Dual channel device */
+#define FTDI_232RL_PID 0xFBFA /* Product ID for FT232RL */
#define FTDI_RELAIS_PID 0xFA10 /* Relais device from Rudolf Gugler */
#define FTDI_NF_RIC_VID 0x0DCD /* Vendor Id */
#define FTDI_NF_RIC_PID 0x0001 /* Product Id */
@@ -615,6 +616,7 @@ typedef enum {
FT8U232AM = 2,
FT232BM = 3,
FT2232C = 4,
+ FT232RL = 5,
} ftdi_chip_type_t;
typedef enum {
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBF61BCtROZTZIEULcRAuytAKC+aRX59W5Fta2H2nkJh95TZSpvQACeKo+Z QHjm3VU1XJG0yCKkBK74BAQ= =lnmR -----END PGP SIGNATURE-----