aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Rorvick <chris@rorvick.com>2014-11-04 20:18:49 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-07 12:02:38 -0500
commitda5d5c58f3e9314cd43bf1d28a1a9e3b2659d632 (patch)
tree222b51e14a0065b05074bc977dc8efe6b9bec29b
parente004631a4f183a9e64db91e3753e97edc5a8cb94 (diff)
fusbh200: Use ehci_dbg_port struct
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>
-rw-r--r--drivers/usb/host/fusbh200.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/host/fusbh200.h b/drivers/usb/host/fusbh200.h
index 47aecfc03582..d6e5b3d4aa68 100644
--- a/drivers/usb/host/fusbh200.h
+++ b/drivers/usb/host/fusbh200.h
@@ -86,7 +86,7 @@ struct fusbh200_hcd { /* one per controller */
86 /* glue to PCI and HCD framework */ 86 /* glue to PCI and HCD framework */
87 struct fusbh200_caps __iomem *caps; 87 struct fusbh200_caps __iomem *caps;
88 struct fusbh200_regs __iomem *regs; 88 struct fusbh200_regs __iomem *regs;
89 struct fusbh200_dbg_port __iomem *debug; 89 struct ehci_dbg_port __iomem *debug;
90 90
91 __u32 hcs_params; /* cached register copy */ 91 __u32 hcs_params; /* cached register copy */
92 spinlock_t lock; 92 spinlock_t lock;
@@ -287,17 +287,6 @@ struct fusbh200_regs {
287#define BMIER_VBUS_ERR_EN (1<<0) 287#define BMIER_VBUS_ERR_EN (1<<0)
288}; 288};
289 289
290/* Appendix C, Debug port ... intended for use with special "debug devices"
291 * that can help if there's no serial console. (nonstandard enumeration.)
292 */
293struct fusbh200_dbg_port {
294 u32 control;
295 u32 pids;
296 u32 data03;
297 u32 data47;
298 u32 address;
299};
300
301/*-------------------------------------------------------------------------*/ 290/*-------------------------------------------------------------------------*/
302 291
303#define QTD_NEXT(fusbh200, dma) cpu_to_hc32(fusbh200, (u32)dma) 292#define QTD_NEXT(fusbh200, dma) cpu_to_hc32(fusbh200, (u32)dma)