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

TOMOYO Linux Cross Reference
Linux/include/linux/usb/ulpi.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/usb/ulpi.h (Version linux-6.12-rc7) and /include/linux/usb/ulpi.h (Version linux-5.2.21)


  1 // SPDX-License-Identifier: GPL-2.0                 1 // SPDX-License-Identifier: GPL-2.0
  2 /*                                                  2 /*
  3  * ulpi.h -- ULPI defines and function proroty      3  * ulpi.h -- ULPI defines and function prorotypes
  4  *                                                  4  *
  5  * Copyright (C) 2010 Nokia Corporation             5  * Copyright (C) 2010 Nokia Corporation
                                                   >>   6  *
                                                   >>   7  * This software is distributed under the terms of the GNU General
                                                   >>   8  * Public License ("GPL") as published by the Free Software Foundation,
                                                   >>   9  * version 2 of that License.
  6  */                                                10  */
  7                                                    11 
  8 #ifndef __LINUX_USB_ULPI_H                         12 #ifndef __LINUX_USB_ULPI_H
  9 #define __LINUX_USB_ULPI_H                         13 #define __LINUX_USB_ULPI_H
 10                                                    14 
 11 #include <linux/usb/otg.h>                         15 #include <linux/usb/otg.h>
 12 #include <linux/ulpi/regs.h>                       16 #include <linux/ulpi/regs.h>
 13                                                    17 
 14 /*--------------------------------------------     18 /*-------------------------------------------------------------------------*/
 15                                                    19 
 16 /*                                                 20 /*
 17  * ULPI Flags                                      21  * ULPI Flags
 18  */                                                22  */
 19 #define ULPI_OTG_ID_PULLUP              (1 <<      23 #define ULPI_OTG_ID_PULLUP              (1 << 0)
 20 #define ULPI_OTG_DP_PULLDOWN_DIS        (1 <<      24 #define ULPI_OTG_DP_PULLDOWN_DIS        (1 << 1)
 21 #define ULPI_OTG_DM_PULLDOWN_DIS        (1 <<      25 #define ULPI_OTG_DM_PULLDOWN_DIS        (1 << 2)
 22 #define ULPI_OTG_DISCHRGVBUS            (1 <<      26 #define ULPI_OTG_DISCHRGVBUS            (1 << 3)
 23 #define ULPI_OTG_CHRGVBUS               (1 <<      27 #define ULPI_OTG_CHRGVBUS               (1 << 4)
 24 #define ULPI_OTG_DRVVBUS                (1 <<      28 #define ULPI_OTG_DRVVBUS                (1 << 5)
 25 #define ULPI_OTG_DRVVBUS_EXT            (1 <<      29 #define ULPI_OTG_DRVVBUS_EXT            (1 << 6)
 26 #define ULPI_OTG_EXTVBUSIND             (1 <<      30 #define ULPI_OTG_EXTVBUSIND             (1 << 7)
 27                                                    31 
 28 #define ULPI_IC_6PIN_SERIAL             (1 <<      32 #define ULPI_IC_6PIN_SERIAL             (1 << 8)
 29 #define ULPI_IC_3PIN_SERIAL             (1 <<      33 #define ULPI_IC_3PIN_SERIAL             (1 << 9)
 30 #define ULPI_IC_CARKIT                  (1 <<      34 #define ULPI_IC_CARKIT                  (1 << 10)
 31 #define ULPI_IC_CLKSUSPM                (1 <<      35 #define ULPI_IC_CLKSUSPM                (1 << 11)
 32 #define ULPI_IC_AUTORESUME              (1 <<      36 #define ULPI_IC_AUTORESUME              (1 << 12)
 33 #define ULPI_IC_EXTVBUS_INDINV          (1 <<      37 #define ULPI_IC_EXTVBUS_INDINV          (1 << 13)
 34 #define ULPI_IC_IND_PASSTHRU            (1 <<      38 #define ULPI_IC_IND_PASSTHRU            (1 << 14)
 35 #define ULPI_IC_PROTECT_DIS             (1 <<      39 #define ULPI_IC_PROTECT_DIS             (1 << 15)
 36                                                    40 
 37 #define ULPI_FC_HS                      (1 <<      41 #define ULPI_FC_HS                      (1 << 16)
 38 #define ULPI_FC_FS                      (1 <<      42 #define ULPI_FC_FS                      (1 << 17)
 39 #define ULPI_FC_LS                      (1 <<      43 #define ULPI_FC_LS                      (1 << 18)
 40 #define ULPI_FC_FS4LS                   (1 <<      44 #define ULPI_FC_FS4LS                   (1 << 19)
 41 #define ULPI_FC_TERMSEL                 (1 <<      45 #define ULPI_FC_TERMSEL                 (1 << 20)
 42 #define ULPI_FC_OP_NORM                 (1 <<      46 #define ULPI_FC_OP_NORM                 (1 << 21)
 43 #define ULPI_FC_OP_NODRV                (1 <<      47 #define ULPI_FC_OP_NODRV                (1 << 22)
 44 #define ULPI_FC_OP_DIS_NRZI             (1 <<      48 #define ULPI_FC_OP_DIS_NRZI             (1 << 23)
 45 #define ULPI_FC_OP_NSYNC_NEOP           (1 <<      49 #define ULPI_FC_OP_NSYNC_NEOP           (1 << 24)
 46 #define ULPI_FC_RST                     (1 <<      50 #define ULPI_FC_RST                     (1 << 25)
 47 #define ULPI_FC_SUSPM                   (1 <<      51 #define ULPI_FC_SUSPM                   (1 << 26)
 48                                                    52 
 49 /*--------------------------------------------     53 /*-------------------------------------------------------------------------*/
 50                                                    54 
 51 #if IS_ENABLED(CONFIG_USB_ULPI)                    55 #if IS_ENABLED(CONFIG_USB_ULPI)
 52 struct usb_phy *otg_ulpi_create(struct usb_phy     56 struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
 53                                         unsign     57                                         unsigned int flags);
 54                                                << 
 55 struct usb_phy *devm_otg_ulpi_create(struct de << 
 56                                      struct us << 
 57                                      unsigned  << 
 58 #else                                              58 #else
 59 static inline struct usb_phy *otg_ulpi_create(     59 static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
 60                                                    60                                               unsigned int flags)
 61 {                                              << 
 62         return NULL;                           << 
 63 }                                              << 
 64                                                << 
 65 static inline struct usb_phy *devm_otg_ulpi_cr << 
 66                                                << 
 67                                                << 
 68 {                                                  61 {
 69         return NULL;                               62         return NULL;
 70 }                                                  63 }
 71 #endif                                             64 #endif
 72                                                    65 
 73 #ifdef CONFIG_USB_ULPI_VIEWPORT                    66 #ifdef CONFIG_USB_ULPI_VIEWPORT
 74 /* access ops for controllers with a viewport      67 /* access ops for controllers with a viewport register */
 75 extern struct usb_phy_io_ops ulpi_viewport_acc     68 extern struct usb_phy_io_ops ulpi_viewport_access_ops;
 76 #endif                                             69 #endif
 77                                                    70 
 78 #endif /* __LINUX_USB_ULPI_H */                    71 #endif /* __LINUX_USB_ULPI_H */
 79                                                    72 

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

kernel.org | git.kernel.org | LWN.net | Project Home | 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.

sflogo.php