Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mxs-phy.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/usb/otg.h>
#include <linux/stmp_device.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/workqueue.h>

Go to the source code of this file.

Data Structures

struct  mxs_phy
 

Macros

#define DRIVER_NAME   "mxs_phy"
 
#define HW_USBPHY_PWD   0x00
 
#define HW_USBPHY_CTRL   0x30
 
#define HW_USBPHY_CTRL_SET   0x34
 
#define HW_USBPHY_CTRL_CLR   0x38
 
#define BM_USBPHY_CTRL_SFTRST   BIT(31)
 
#define BM_USBPHY_CTRL_CLKGATE   BIT(30)
 
#define BM_USBPHY_CTRL_ENUTMILEVEL3   BIT(15)
 
#define BM_USBPHY_CTRL_ENUTMILEVEL2   BIT(14)
 
#define BM_USBPHY_CTRL_ENHOSTDISCONDETECT   BIT(1)
 
#define MXY_PHY_ENHOSTDISCONDETECT_DELAY   250
 
#define to_mxs_phy(p)   container_of((p), struct mxs_phy, phy)
 

Functions

 MODULE_DEVICE_TABLE (of, mxs_phy_dt_ids)
 
 postcore_initcall (mxs_phy_module_init)
 
 module_exit (mxs_phy_module_exit)
 
 MODULE_ALIAS ("platform:mxs-usb-phy")
 
 MODULE_AUTHOR ("Marek Vasut <[email protected]>")
 
 MODULE_AUTHOR ("Richard Zhao <[email protected]>")
 
 MODULE_DESCRIPTION ("Freescale MXS USB PHY driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BM_USBPHY_CTRL_CLKGATE   BIT(30)

Definition at line 33 of file mxs-phy.c.

#define BM_USBPHY_CTRL_ENHOSTDISCONDETECT   BIT(1)

Definition at line 36 of file mxs-phy.c.

#define BM_USBPHY_CTRL_ENUTMILEVEL2   BIT(14)

Definition at line 35 of file mxs-phy.c.

#define BM_USBPHY_CTRL_ENUTMILEVEL3   BIT(15)

Definition at line 34 of file mxs-phy.c.

#define BM_USBPHY_CTRL_SFTRST   BIT(31)

Definition at line 32 of file mxs-phy.c.

#define DRIVER_NAME   "mxs_phy"

Definition at line 25 of file mxs-phy.c.

#define HW_USBPHY_CTRL   0x30

Definition at line 28 of file mxs-phy.c.

#define HW_USBPHY_CTRL_CLR   0x38

Definition at line 30 of file mxs-phy.c.

#define HW_USBPHY_CTRL_SET   0x34

Definition at line 29 of file mxs-phy.c.

#define HW_USBPHY_PWD   0x00

Definition at line 27 of file mxs-phy.c.

#define MXY_PHY_ENHOSTDISCONDETECT_DELAY   250

Definition at line 42 of file mxs-phy.c.

#define to_mxs_phy (   p)    container_of((p), struct mxs_phy, phy)

Definition at line 50 of file mxs-phy.c.

Function Documentation

MODULE_ALIAS ( "platform:mxs-usb-phy )
MODULE_AUTHOR ( "Marek Vasut <[email protected]>"  )
MODULE_AUTHOR ( "Richard Zhao <[email protected]>"  )
MODULE_DESCRIPTION ( "Freescale MXS USB PHY driver )
MODULE_DEVICE_TABLE ( of  ,
mxs_phy_dt_ids   
)
module_exit ( mxs_phy_module_exit  )
MODULE_LICENSE ( "GPL"  )
postcore_initcall ( mxs_phy_module_init  )