Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | msm_otg_platform_data |
struct | msm_otg |
Macros | |
#define | IDEV_CHG_MAX 1500 |
#define | IUNIT 100 |
#define | ID 0 |
#define | B_SESS_VLD 1 |
Enumerations | |
enum | usb_mode_type { USB_NONE = 0, USB_PERIPHERAL, USB_HOST, USB_OTG } |
enum | otg_control_type { OTG_NO_CONTROL = 0, OTG_PHY_CONTROL, OTG_PMIC_CONTROL, OTG_USER_CONTROL } |
enum | msm_usb_phy_type { INVALID_PHY = 0, CI_45NM_INTEGRATED_PHY, SNPS_28NM_INTEGRATED_PHY } |
enum | usb_chg_state { USB_CHG_STATE_UNDEFINED = 0, USB_CHG_STATE_WAIT_FOR_DCD, USB_CHG_STATE_DCD_DONE, USB_CHG_STATE_PRIMARY_DONE, USB_CHG_STATE_SECONDARY_DONE, USB_CHG_STATE_DETECTED } |
enum | usb_chg_type { USB_INVALID_CHARGER = 0, USB_SDP_CHARGER, USB_DCP_CHARGER, USB_CDP_CHARGER } |
#define B_SESS_VLD 1 |
Definition at line 173 of file msm_hsusb.h.
#define ID 0 |
Definition at line 172 of file msm_hsusb.h.
#define IDEV_CHG_MAX 1500 |
Definition at line 70 of file msm_hsusb.h.
#define IUNIT 100 |
Definition at line 71 of file msm_hsusb.h.
enum msm_usb_phy_type |
enum otg_control_type |
OTG control
OTG_NO_CONTROL Id/VBUS notifications not required. Useful in host only configuration. OTG_PHY_CONTROL Id/VBUS notifications comes form USB PHY. OTG_PMIC_CONTROL Id/VBUS notifications comes from PMIC hardware. OTG_USER_CONTROL Id/VBUS notifcations comes from User via sysfs.
Definition at line 49 of file msm_hsusb.h.
enum usb_chg_state |
Different states involved in USB charger detection.
USB_CHG_STATE_UNDEFINED USB charger is not connected or detection process is not yet started. USB_CHG_STATE_WAIT_FOR_DCD Waiting for Data pins contact. USB_CHG_STATE_DCD_DONE Data pin contact is detected. USB_CHG_STATE_PRIMARY_DONE Primary detection is completed (Detects between SDP and DCP/CDP). USB_CHG_STATE_SECONDARY_DONE Secondary detection is completed (Detects between DCP and CDP). USB_CHG_STATE_DETECTED USB charger type is determined.
USB_CHG_STATE_UNDEFINED | |
USB_CHG_STATE_WAIT_FOR_DCD | |
USB_CHG_STATE_DCD_DONE | |
USB_CHG_STATE_PRIMARY_DONE | |
USB_CHG_STATE_SECONDARY_DONE | |
USB_CHG_STATE_DETECTED |
Definition at line 87 of file msm_hsusb.h.
enum usb_chg_type |
USB charger types
USB_INVALID_CHARGER Invalid USB charger. USB_SDP_CHARGER Standard downstream port. Refers to a downstream port on USB2.0 compliant host/hub. USB_DCP_CHARGER Dedicated charger port (AC charger/ Wall charger). USB_CDP_CHARGER Charging downstream port. Enumeration can happen and IDEV_CHG_MAX can be drawn irrespective of USB state.
Definition at line 107 of file msm_hsusb.h.
enum usb_mode_type |
Supported USB modes
USB_PERIPHERAL Only peripheral mode is supported. USB_HOST Only host mode is supported. USB_OTG OTG mode is supported.
Definition at line 32 of file msm_hsusb.h.