]> git.karo-electronics.de Git - linux-beck.git/commitdiff
fusbh200: Use ehci_dbg_port struct
authorChris Rorvick <chris@rorvick.com>
Wed, 5 Nov 2014 01:18:49 +0000 (19:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:02:38 +0000 (09:02 -0800)
The FUSBH200 debug port has a EHCI-compatible register layout so there
is no need to define a custom struct.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fusbh200.h

index 47aecfc03582b05359df8893fc8462899006a51a..d6e5b3d4aa68b7bd9378594fd5fcbcacbe90de4a 100644 (file)
@@ -86,7 +86,7 @@ struct fusbh200_hcd {                 /* one per controller */
        /* glue to PCI and HCD framework */
        struct fusbh200_caps __iomem *caps;
        struct fusbh200_regs __iomem *regs;
-       struct fusbh200_dbg_port __iomem *debug;
+       struct ehci_dbg_port __iomem *debug;
 
        __u32                   hcs_params;     /* cached register copy */
        spinlock_t              lock;
@@ -287,17 +287,6 @@ struct fusbh200_regs {
 #define BMIER_VBUS_ERR_EN      (1<<0)
 };
 
-/* Appendix C, Debug port ... intended for use with special "debug devices"
- * that can help if there's no serial console.  (nonstandard enumeration.)
- */
-struct fusbh200_dbg_port {
-       u32     control;
-       u32     pids;
-       u32     data03;
-       u32     data47;
-       u32     address;
-};
-
 /*-------------------------------------------------------------------------*/
 
 #define        QTD_NEXT(fusbh200, dma) cpu_to_hc32(fusbh200, (u32)dma)