~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/platform_data/usb-ehci-mxc.h

Version: ~ [ linux-5.9-rc6 ] ~ [ linux-5.8.10 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.66 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.146 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.198 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.236 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.236 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef __INCLUDE_ASM_ARCH_MXC_EHCI_H
  2 #define __INCLUDE_ASM_ARCH_MXC_EHCI_H
  3 
  4 /* values for portsc field */
  5 #define MXC_EHCI_PHY_LOW_POWER_SUSPEND  (1 << 23)
  6 #define MXC_EHCI_FORCE_FS               (1 << 24)
  7 #define MXC_EHCI_UTMI_8BIT              (0 << 28)
  8 #define MXC_EHCI_UTMI_16BIT             (1 << 28)
  9 #define MXC_EHCI_SERIAL                 (1 << 29)
 10 #define MXC_EHCI_MODE_UTMI              (0 << 30)
 11 #define MXC_EHCI_MODE_PHILIPS           (1 << 30)
 12 #define MXC_EHCI_MODE_ULPI              (2 << 30)
 13 #define MXC_EHCI_MODE_SERIAL            (3 << 30)
 14 
 15 /* values for flags field */
 16 #define MXC_EHCI_INTERFACE_DIFF_UNI     (0 << 0)
 17 #define MXC_EHCI_INTERFACE_DIFF_BI      (1 << 0)
 18 #define MXC_EHCI_INTERFACE_SINGLE_UNI   (2 << 0)
 19 #define MXC_EHCI_INTERFACE_SINGLE_BI    (3 << 0)
 20 #define MXC_EHCI_INTERFACE_MASK         (0xf)
 21 
 22 #define MXC_EHCI_POWER_PINS_ENABLED     (1 << 5)
 23 #define MXC_EHCI_PWR_PIN_ACTIVE_HIGH    (1 << 6)
 24 #define MXC_EHCI_OC_PIN_ACTIVE_LOW      (1 << 7)
 25 #define MXC_EHCI_TTL_ENABLED            (1 << 8)
 26 
 27 #define MXC_EHCI_INTERNAL_PHY           (1 << 9)
 28 #define MXC_EHCI_IPPUE_DOWN             (1 << 10)
 29 #define MXC_EHCI_IPPUE_UP               (1 << 11)
 30 #define MXC_EHCI_WAKEUP_ENABLED         (1 << 12)
 31 #define MXC_EHCI_ITC_NO_THRESHOLD       (1 << 13)
 32 
 33 #define MXC_USBCTRL_OFFSET              0
 34 #define MXC_USB_PHY_CTR_FUNC_OFFSET     0x8
 35 #define MXC_USB_PHY_CTR_FUNC2_OFFSET    0xc
 36 #define MXC_USBH2CTRL_OFFSET            0x14
 37 
 38 #define MX5_USBOTHER_REGS_OFFSET        0x800
 39 
 40 /* USB_PHY_CTRL_FUNC2*/
 41 #define MX5_USB_UTMI_PHYCTRL1_PLLDIV_MASK               0x3
 42 #define MX5_USB_UTMI_PHYCTRL1_PLLDIV_SHIFT              0
 43 
 44 struct mxc_usbh_platform_data {
 45         int (*init)(struct platform_device *pdev);
 46         int (*exit)(struct platform_device *pdev);
 47 
 48         unsigned int             portsc;
 49         struct usb_phy          *otg;
 50 };
 51 
 52 int mx51_initialize_usb_hw(int port, unsigned int flags);
 53 int mx25_initialize_usb_hw(int port, unsigned int flags);
 54 int mx31_initialize_usb_hw(int port, unsigned int flags);
 55 int mx35_initialize_usb_hw(int port, unsigned int flags);
 56 int mx27_initialize_usb_hw(int port, unsigned int flags);
 57 
 58 #endif /* __INCLUDE_ASM_ARCH_MXC_EHCI_H */
 59 
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp