Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ulpi.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/usb/otg.h>
#include <linux/usb/ulpi.h>
#include <mach/ulpi.h>

Go to the source code of this file.

Macros

#define ULPIVW_WU   (1 << 31) /* Wakeup */
 
#define ULPIVW_RUN   (1 << 30) /* read/write run */
 
#define ULPIVW_WRITE   (1 << 29) /* 0 = read 1 = write */
 
#define ULPIVW_SS   (1 << 27) /* SyncState */
 
#define ULPIVW_PORT_MASK   0x07 /* Port field */
 
#define ULPIVW_PORT_SHIFT   24
 
#define ULPIVW_ADDR_MASK   0xff /* data address field */
 
#define ULPIVW_ADDR_SHIFT   16
 
#define ULPIVW_RDATA_MASK   0xff /* read data field */
 
#define ULPIVW_RDATA_SHIFT   8
 
#define ULPIVW_WDATA_MASK   0xff /* write data field */
 
#define ULPIVW_WDATA_SHIFT   0
 

Functions

 EXPORT_SYMBOL_GPL (mxc_ulpi_access_ops)
 
struct usb_phyimx_otg_ulpi_create (unsigned int flags)
 

Variables

struct usb_phy_io_ops mxc_ulpi_access_ops
 

Macro Definition Documentation

#define ULPIVW_ADDR_MASK   0xff /* data address field */

Definition at line 36 of file ulpi.c.

#define ULPIVW_ADDR_SHIFT   16

Definition at line 37 of file ulpi.c.

#define ULPIVW_PORT_MASK   0x07 /* Port field */

Definition at line 34 of file ulpi.c.

#define ULPIVW_PORT_SHIFT   24

Definition at line 35 of file ulpi.c.

#define ULPIVW_RDATA_MASK   0xff /* read data field */

Definition at line 38 of file ulpi.c.

#define ULPIVW_RDATA_SHIFT   8

Definition at line 39 of file ulpi.c.

#define ULPIVW_RUN   (1 << 30) /* read/write run */

Definition at line 31 of file ulpi.c.

#define ULPIVW_SS   (1 << 27) /* SyncState */

Definition at line 33 of file ulpi.c.

#define ULPIVW_WDATA_MASK   0xff /* write data field */

Definition at line 40 of file ulpi.c.

#define ULPIVW_WDATA_SHIFT   0

Definition at line 41 of file ulpi.c.

#define ULPIVW_WRITE   (1 << 29) /* 0 = read 1 = write */

Definition at line 32 of file ulpi.c.

#define ULPIVW_WU   (1 << 31) /* Wakeup */

Definition at line 30 of file ulpi.c.

Function Documentation

EXPORT_SYMBOL_GPL ( mxc_ulpi_access_ops  )
struct usb_phy* imx_otg_ulpi_create ( unsigned int  flags)
read

Definition at line 115 of file ulpi.c.

Variable Documentation

struct usb_phy_io_ops mxc_ulpi_access_ops
Initial value:
= {
.read = ulpi_read,
.write = ulpi_write,
}

Definition at line 109 of file ulpi.c.