]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
Xilinx: Added USB Controller platform data structure.
authorNaveen Mamindlapalli <naveenm@xhd-epdswlin32re1.(none)>
Tue, 12 Apr 2011 15:04:27 +0000 (20:34 +0530)
committerJohn Linn <john.linn@xilinx.com>
Tue, 12 Apr 2011 19:11:53 +0000 (13:11 -0600)
Added PS USB Controller platform data structure.

Signed-off-by: Naveen Mamindlapalli <naveenm@xilinx.com>
include/linux/xilinx_devices.h

index 902b66394c30c0c165c4fbeb15c0bc2d754a513c..d9dd46965f9ca0dc04771c29112f152644a3980e 100644 (file)
@@ -113,5 +113,49 @@ struct xi2cpss_platform_data {
        unsigned int i2c_clk;
 };
 
+/*- PS USB Controller IP -*/
+enum xusbps_usb2_operating_modes {
+       XUSBPS_USB2_MPH_HOST,
+       XUSBPS_USB2_DR_HOST,
+       XUSBPS_USB2_DR_DEVICE,
+       XUSBPS_USB2_DR_OTG,
+};
+
+enum xusbps_usb2_phy_modes {
+       XUSBPS_USB2_PHY_NONE,
+       XUSBPS_USB2_PHY_ULPI,
+       XUSBPS_USB2_PHY_UTMI,
+       XUSBPS_USB2_PHY_UTMI_WIDE,
+       XUSBPS_USB2_PHY_SERIAL,
+};
+
+struct clk;
+struct platform_device;
+
+struct xusbps_usb2_platform_data {
+       /* board specific information */
+       enum xusbps_usb2_operating_modes        operating_mode;
+       enum xusbps_usb2_phy_modes      phy_mode;
+       unsigned int                    port_enables;
+       unsigned int                    workaround;
+
+       int             (*init)(struct platform_device *);
+       void            (*exit)(struct platform_device *);
+       void __iomem    *regs;          /* ioremap'd register base */
+       struct otg_transceiver  *otg;
+       int             irq;
+       struct clk      *clk;
+       unsigned        big_endian_mmio:1;
+       unsigned        big_endian_desc:1;
+       unsigned        es:1;           /* need USBMODE:ES */
+       unsigned        le_setup_buf:1;
+       unsigned        have_sysif_regs:1;
+       unsigned        invert_drvvbus:1;
+       unsigned        invert_pwr_fault:1;
+};
+
+#define XUSBPS_USB2_PORT0_ENABLED      0x00000001
+#define XUSBPS_USB2_PORT1_ENABLED      0x00000002
+
 #endif /* _XILINX_DEVICE_H_ */
 #endif /* __KERNEL__ */