Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
msm_otg.c File Reference
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/uaccess.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/pm_runtime.h>
#include <linux/usb.h>
#include <linux/usb/otg.h>
#include <linux/usb/ulpi.h>
#include <linux/usb/gadget.h>
#include <linux/usb/hcd.h>
#include <linux/usb/msm_hsusb.h>
#include <linux/usb/msm_hsusb_hw.h>
#include <linux/regulator/consumer.h>
#include <mach/clk.h>

Go to the source code of this file.

Macros

#define MSM_USB_BASE   (motg->regs)
 
#define DRIVER_NAME   "msm_otg"
 
#define ULPI_IO_TIMEOUT_USEC   (10 * 1000)
 
#define USB_PHY_3P3_VOL_MIN   3050000 /* uV */
 
#define USB_PHY_3P3_VOL_MAX   3300000 /* uV */
 
#define USB_PHY_3P3_HPM_LOAD   50000 /* uA */
 
#define USB_PHY_3P3_LPM_LOAD   4000 /* uA */
 
#define USB_PHY_1P8_VOL_MIN   1800000 /* uV */
 
#define USB_PHY_1P8_VOL_MAX   1800000 /* uV */
 
#define USB_PHY_1P8_HPM_LOAD   50000 /* uA */
 
#define USB_PHY_1P8_LPM_LOAD   4000 /* uA */
 
#define USB_PHY_VDD_DIG_VOL_MIN   1000000 /* uV */
 
#define USB_PHY_VDD_DIG_VOL_MAX   1320000 /* uV */
 
#define LINK_RESET_TIMEOUT_USEC   (250 * 1000)
 
#define PHY_SUSPEND_TIMEOUT_USEC   (500 * 1000)
 
#define PHY_RESUME_TIMEOUT_USEC   (100 * 1000)
 
#define MSM_CHG_DCD_POLL_TIME   (100 * HZ/1000) /* 100 msec */
 
#define MSM_CHG_DCD_MAX_RETRIES   6 /* Tdcd_tmout = 6 * 100 msec */
 
#define MSM_CHG_PRIMARY_DET_TIME   (40 * HZ/1000) /* TVDPSRC_ON */
 
#define MSM_CHG_SECONDARY_DET_TIME   (40 * HZ/1000) /* TVDMSRC_ON */
 

Functions

 module_init (msm_otg_init)
 
 module_exit (msm_otg_exit)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_DESCRIPTION ("MSM USB transceiver driver")
 

Variables

struct file_operations msm_otg_mode_fops
 

Macro Definition Documentation

#define DRIVER_NAME   "msm_otg"

Definition at line 46 of file msm_otg.c.

#define LINK_RESET_TIMEOUT_USEC   (250 * 1000)

Definition at line 392 of file msm_otg.c.

#define MSM_CHG_DCD_MAX_RETRIES   6 /* Tdcd_tmout = 6 * 100 msec */

Definition at line 1035 of file msm_otg.c.

#define MSM_CHG_DCD_POLL_TIME   (100 * HZ/1000) /* 100 msec */

Definition at line 1034 of file msm_otg.c.

#define MSM_CHG_PRIMARY_DET_TIME   (40 * HZ/1000) /* TVDPSRC_ON */

Definition at line 1036 of file msm_otg.c.

#define MSM_CHG_SECONDARY_DET_TIME   (40 * HZ/1000) /* TVDMSRC_ON */

Definition at line 1037 of file msm_otg.c.

#define MSM_USB_BASE   (motg->regs)

Definition at line 45 of file msm_otg.c.

#define PHY_RESUME_TIMEOUT_USEC   (100 * 1000)

Definition at line 446 of file msm_otg.c.

#define PHY_SUSPEND_TIMEOUT_USEC   (500 * 1000)

Definition at line 445 of file msm_otg.c.

#define ULPI_IO_TIMEOUT_USEC   (10 * 1000)

Definition at line 48 of file msm_otg.c.

#define USB_PHY_1P8_HPM_LOAD   50000 /* uA */

Definition at line 57 of file msm_otg.c.

#define USB_PHY_1P8_LPM_LOAD   4000 /* uA */

Definition at line 58 of file msm_otg.c.

#define USB_PHY_1P8_VOL_MAX   1800000 /* uV */

Definition at line 56 of file msm_otg.c.

#define USB_PHY_1P8_VOL_MIN   1800000 /* uV */

Definition at line 55 of file msm_otg.c.

#define USB_PHY_3P3_HPM_LOAD   50000 /* uA */

Definition at line 52 of file msm_otg.c.

#define USB_PHY_3P3_LPM_LOAD   4000 /* uA */

Definition at line 53 of file msm_otg.c.

#define USB_PHY_3P3_VOL_MAX   3300000 /* uV */

Definition at line 51 of file msm_otg.c.

#define USB_PHY_3P3_VOL_MIN   3050000 /* uV */

Definition at line 50 of file msm_otg.c.

#define USB_PHY_VDD_DIG_VOL_MAX   1320000 /* uV */

Definition at line 61 of file msm_otg.c.

#define USB_PHY_VDD_DIG_VOL_MIN   1000000 /* uV */

Definition at line 60 of file msm_otg.c.

Function Documentation

MODULE_DESCRIPTION ( "MSM USB transceiver driver )
module_exit ( msm_otg_exit  )
module_init ( msm_otg_init  )
MODULE_LICENSE ( "GPL v2 )

Variable Documentation

struct file_operations msm_otg_mode_fops
Initial value:
= {
.open = msm_otg_mode_open,
.read = seq_read,
.write = msm_otg_mode_write,
.llseek = seq_lseek,
.release = single_release,
}

Definition at line 1379 of file msm_otg.c.