usb/138915: [patch] add support for SheevaPlug serial interface to
uftdi driver
Maks Verver
maksverver at geocities.com
Thu Sep 17 21:20:01 UTC 2009
>Number: 138915
>Category: usb
>Synopsis: [patch] add support for SheevaPlug serial interface to uftdi driver
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 17 21:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Maks Verver
>Release: FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:
>Description:
I have a Marvell SheevaPlug that I tried to interface with FreeBSD. It has an FTDI based USB-to-serial adapter for this purpose, and the existing uftdi driver seems to work fine, except that the USB device is currently not recognized by the driver.
>How-To-Repeat:
>Fix:
I've attached a patch to add the vendor and product id for the Marvell
SheevaPlug to the USB device list, add it to the uftdi source, and update the
uftdi man page accordingly.
Patch attached with submission follows:
diff -ur sys.bak/dev/usb/serial/uftdi.c sys/dev/usb/serial/uftdi.c
--- sys.bak/dev/usb/serial/uftdi.c 2009-09-17 22:36:04.000000000 +0200
+++ sys/dev/usb/serial/uftdi.c 2009-09-17 21:55:11.000000000 +0200
@@ -246,6 +246,7 @@
{USB_VPI(USB_VENDOR_INTREPIDCS, USB_PRODUCT_INTREPIDCS_NEOVI, UFTDI_TYPE_8U232AM)},
{USB_VPI(USB_VENDOR_BBELECTRONICS, USB_PRODUCT_BBELECTRONICS_USOTL4, UFTDI_TYPE_8U232AM)},
{USB_VPI(USB_VENDOR_MELCO, USB_PRODUCT_MELCO_PCOPRS1, UFTDI_TYPE_8U232AM)},
+ {USB_VPI(USB_VENDOR_MARVELL, USB_PRODUCT_MARVELL_SHEEVAPLUG, UFTDI_TYPE_8U232AM)},
};
static int
diff -ur sys.bak/dev/usb/usbdevs sys/dev/usb/usbdevs
--- sys.bak/dev/usb/usbdevs 2009-09-17 22:36:05.000000000 +0200
+++ sys/dev/usb/usbdevs 2009-09-17 21:54:03.000000000 +0200
@@ -659,6 +659,7 @@
vendor INTEL 0x8086 Intel
vendor SITECOM2 0x9016 Sitecom
vendor MOSCHIP 0x9710 MosChip Semiconductor
+vendor MARVELL 0x9e88 Marvell Technology Group Ltd.
vendor 3COM3 0xa727 3Com
vendor HP2 0xf003 Hewlett Packard
vendor USRP 0xfffe GNU Radio USRP
@@ -1691,6 +1692,9 @@
/* Macally products */
product MACALLY MOUSE1 0x0101 mouse
+/* Marvell Technology Group, Ltd. products */
+product MARVELL SHEEVAPLUG 0x9e8f SheevaPlug serial interface
+
/* MCT Corp. */
product MCT HUB0100 0x0100 Hub
product MCT DU_H3SP_USB232 0x0200 D-Link DU-H3SP USB BAY Hub
diff -r share.bak/man/man4/uftdi.4 share/man/man4/uftdi.4
89a90,91
> .It
> Marvell SheevaPlug serial interface
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-usb
mailing list