#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.
#define DRIVER_NAME "msm_otg" |
#define LINK_RESET_TIMEOUT_USEC (250 * 1000) |
#define MSM_CHG_DCD_MAX_RETRIES 6 /* Tdcd_tmout = 6 * 100 msec */ |
#define MSM_CHG_DCD_POLL_TIME (100 * HZ/1000) /* 100 msec */ |
#define MSM_CHG_PRIMARY_DET_TIME (40 * HZ/1000) /* TVDPSRC_ON */ |
#define MSM_CHG_SECONDARY_DET_TIME (40 * HZ/1000) /* TVDMSRC_ON */ |
#define MSM_USB_BASE (motg->regs) |
#define PHY_RESUME_TIMEOUT_USEC (100 * 1000) |
#define PHY_SUSPEND_TIMEOUT_USEC (500 * 1000) |
#define ULPI_IO_TIMEOUT_USEC (10 * 1000) |
#define USB_PHY_1P8_HPM_LOAD 50000 /* uA */ |
#define USB_PHY_1P8_LPM_LOAD 4000 /* uA */ |
#define USB_PHY_1P8_VOL_MAX 1800000 /* uV */ |
#define USB_PHY_1P8_VOL_MIN 1800000 /* uV */ |
#define USB_PHY_3P3_HPM_LOAD 50000 /* uA */ |
#define USB_PHY_3P3_LPM_LOAD 4000 /* uA */ |
#define USB_PHY_3P3_VOL_MAX 3300000 /* uV */ |
#define USB_PHY_3P3_VOL_MIN 3050000 /* uV */ |
#define USB_PHY_VDD_DIG_VOL_MAX 1320000 /* uV */ |
#define USB_PHY_VDD_DIG_VOL_MIN 1000000 /* uV */ |
module_exit |
( |
msm_otg_exit |
| ) |
|
module_init |
( |
msm_otg_init |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|
Initial value:= {
.open = msm_otg_mode_open,
.write = msm_otg_mode_write,
}
Definition at line 1379 of file msm_otg.c.