aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/isp1760-hcd.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-01-20 17:55:59 -0500
committerFelipe Balbi <balbi@ti.com>2015-01-27 10:39:26 -0500
commit5171446a3aec607c4f94a32758f51a68bc627fe3 (patch)
treeef715105026ba279886ab33ef1a089a4606b11dc /drivers/usb/host/isp1760-hcd.h
parent667c45c2f159d3c4e1d592df42ffbc7d4d73e07b (diff)
usb: isp1760: Initialize the bus interface in core code
Although the corresponding register is part of the HCD register space, processor bus initialization is not specific to the HCD. To prepare for device controller support, move bus interface initialization to core code. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host/isp1760-hcd.h')
-rw-r--r--drivers/usb/host/isp1760-hcd.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/usb/host/isp1760-hcd.h b/drivers/usb/host/isp1760-hcd.h
index dcd2232848cd..df7ea3684b77 100644
--- a/drivers/usb/host/isp1760-hcd.h
+++ b/drivers/usb/host/isp1760-hcd.h
@@ -3,7 +3,6 @@
3 3
4#include <linux/spinlock.h> 4#include <linux/spinlock.h>
5 5
6struct gpio_desc;
7struct isp1760_qh; 6struct isp1760_qh;
8struct isp1760_qtd; 7struct isp1760_qtd;
9struct resource; 8struct resource;
@@ -27,20 +26,6 @@ struct usb_hcd;
27#define MAX_PAYLOAD_SIZE BLOCK_3_SIZE 26#define MAX_PAYLOAD_SIZE BLOCK_3_SIZE
28#define PAYLOAD_AREA_SIZE 0xf000 27#define PAYLOAD_AREA_SIZE 0xf000
29 28
30/*
31 * Device flags that can vary from board to board. All of these
32 * indicate the most "atypical" case, so that a devflags of 0 is
33 * a sane default configuration.
34 */
35#define ISP1760_FLAG_BUS_WIDTH_16 0x00000002 /* 16-bit data bus width */
36#define ISP1760_FLAG_OTG_EN 0x00000004 /* Port 1 supports OTG */
37#define ISP1760_FLAG_ANALOG_OC 0x00000008 /* Analog overcurrent */
38#define ISP1760_FLAG_DACK_POL_HIGH 0x00000010 /* DACK active high */
39#define ISP1760_FLAG_DREQ_POL_HIGH 0x00000020 /* DREQ active high */
40#define ISP1760_FLAG_ISP1761 0x00000040 /* Chip is ISP1761 */
41#define ISP1760_FLAG_INTR_POL_HIGH 0x00000080 /* Interrupt polarity active high */
42#define ISP1760_FLAG_INTR_EDGE_TRIG 0x00000100 /* Interrupt edge triggered */
43
44struct isp1760_slotinfo { 29struct isp1760_slotinfo {
45 struct isp1760_qh *qh; 30 struct isp1760_qh *qh;
46 struct isp1760_qtd *qtd; 31 struct isp1760_qtd *qtd;
@@ -79,14 +64,11 @@ struct isp1760_hcd {
79 unsigned i_thresh; 64 unsigned i_thresh;
80 unsigned long reset_done; 65 unsigned long reset_done;
81 unsigned long next_statechange; 66 unsigned long next_statechange;
82 unsigned int devflags;
83
84 struct gpio_desc *rst_gpio;
85}; 67};
86 68
87int isp1760_hcd_register(struct isp1760_hcd *priv, void __iomem *regs, 69int isp1760_hcd_register(struct isp1760_hcd *priv, void __iomem *regs,
88 struct resource *mem, int irq, unsigned long irqflags, 70 struct resource *mem, int irq, unsigned long irqflags,
89 struct device *dev, unsigned int devflags); 71 struct device *dev);
90void isp1760_hcd_unregister(struct isp1760_hcd *priv); 72void isp1760_hcd_unregister(struct isp1760_hcd *priv);
91 73
92int isp1760_init_kmem_once(void); 74int isp1760_init_kmem_once(void);