USB: Product ID for FT232RL in ftdi_sio

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.

From: Gard Spreemann <spreeman@stud.ntnu.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by Gard Spreemann and committed by Greg Kroah-Hartman d8b21606 6438ac26

+4
+2
drivers/usb/serial/ftdi_sio.c
··· 315 315 { USB_DEVICE(FTDI_VID, FTDI_SIO_PID) }, 316 316 { USB_DEVICE(FTDI_VID, FTDI_8U232AM_PID) }, 317 317 { USB_DEVICE(FTDI_VID, FTDI_8U232AM_ALT_PID) }, 318 + { USB_DEVICE(FTDI_VID, FTDI_232RL_PID) }, 318 319 { USB_DEVICE(FTDI_VID, FTDI_8U2232C_PID) }, 319 320 { USB_DEVICE(FTDI_VID, FTDI_MICRO_CHAMELEON_PID) }, 320 321 { USB_DEVICE(FTDI_VID, FTDI_RELAIS_PID) }, ··· 543 542 [FT8U232AM] = "FT8U232AM", 544 543 [FT232BM] = "FT232BM", 545 544 [FT2232C] = "FT2232C", 545 + [FT232RL] = "FT232RL", 546 546 }; 547 547 548 548
+2
drivers/usb/serial/ftdi_sio.h
··· 27 27 #define FTDI_8U232AM_PID 0x6001 /* Similar device to SIO above */ 28 28 #define FTDI_8U232AM_ALT_PID 0x6006 /* FTDI's alternate PID for above */ 29 29 #define FTDI_8U2232C_PID 0x6010 /* Dual channel device */ 30 + #define FTDI_232RL_PID 0xFBFA /* Product ID for FT232RL */ 30 31 #define FTDI_RELAIS_PID 0xFA10 /* Relais device from Rudolf Gugler */ 31 32 #define FTDI_NF_RIC_VID 0x0DCD /* Vendor Id */ 32 33 #define FTDI_NF_RIC_PID 0x0001 /* Product Id */ ··· 640 639 FT8U232AM = 2, 641 640 FT232BM = 3, 642 641 FT2232C = 4, 642 + FT232RL = 5, 643 643 } ftdi_chip_type_t; 644 644 645 645 typedef enum {