diff options
author | Chris Rorvick <chris@rorvick.com> | 2014-11-04 20:18:53 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-07 12:02:38 -0500 |
commit | 9183b3641f50c3cc70c24073117bb9d53b858fb0 (patch) | |
tree | eeabf994a853059bdd74b08358541e18cffc03da | |
parent | b1f6ccf580a9c547d0299561149c6a03c833515a (diff) |
fotg210: 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/fotg210.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/host/fotg210.h b/drivers/usb/host/fotg210.h index 975d9bb25858..3bad17859cd7 100644 --- a/drivers/usb/host/fotg210.h +++ b/drivers/usb/host/fotg210.h | |||
@@ -86,7 +86,7 @@ struct fotg210_hcd { /* one per controller */ | |||
86 | /* glue to PCI and HCD framework */ | 86 | /* glue to PCI and HCD framework */ |
87 | struct fotg210_caps __iomem *caps; | 87 | struct fotg210_caps __iomem *caps; |
88 | struct fotg210_regs __iomem *regs; | 88 | struct fotg210_regs __iomem *regs; |
89 | struct fotg210_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; |
@@ -295,17 +295,6 @@ struct fotg210_regs { | |||
295 | #define GMIR_MDEV_INT (1 << 0) | 295 | #define GMIR_MDEV_INT (1 << 0) |
296 | }; | 296 | }; |
297 | 297 | ||
298 | /* Appendix C, Debug port ... intended for use with special "debug devices" | ||
299 | * that can help if there's no serial console. (nonstandard enumeration.) | ||
300 | */ | ||
301 | struct fotg210_dbg_port { | ||
302 | u32 control; | ||
303 | u32 pids; | ||
304 | u32 data03; | ||
305 | u32 data47; | ||
306 | u32 address; | ||
307 | }; | ||
308 | |||
309 | /*-------------------------------------------------------------------------*/ | 298 | /*-------------------------------------------------------------------------*/ |
310 | 299 | ||
311 | #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) | 300 | #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) |