Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
usb-davinci.h File Reference

Go to the source code of this file.

Data Structures

struct  da8xx_ohci_root_hub
 

Macros

#define CFGCHIP2_PHYCLKGD   (1 << 17)
 
#define CFGCHIP2_VBUSSENSE   (1 << 16)
 
#define CFGCHIP2_RESET   (1 << 15)
 
#define CFGCHIP2_OTGMODE   (3 << 13)
 
#define CFGCHIP2_NO_OVERRIDE   (0 << 13)
 
#define CFGCHIP2_FORCE_HOST   (1 << 13)
 
#define CFGCHIP2_FORCE_DEVICE   (2 << 13)
 
#define CFGCHIP2_FORCE_HOST_VBUS_LOW   (3 << 13)
 
#define CFGCHIP2_USB1PHYCLKMUX   (1 << 12)
 
#define CFGCHIP2_USB2PHYCLKMUX   (1 << 11)
 
#define CFGCHIP2_PHYPWRDN   (1 << 10)
 
#define CFGCHIP2_OTGPWRDN   (1 << 9)
 
#define CFGCHIP2_DATPOL   (1 << 8)
 
#define CFGCHIP2_USB1SUSPENDM   (1 << 7)
 
#define CFGCHIP2_PHY_PLLON   (1 << 6) /* override PLL suspend */
 
#define CFGCHIP2_SESENDEN   (1 << 5) /* Vsess_end comparator */
 
#define CFGCHIP2_VBDTCTEN   (1 << 4) /* Vbus comparator */
 
#define CFGCHIP2_REFFREQ   (0xf << 0)
 
#define CFGCHIP2_REFFREQ_12MHZ   (1 << 0)
 
#define CFGCHIP2_REFFREQ_24MHZ   (2 << 0)
 
#define CFGCHIP2_REFFREQ_48MHZ   (3 << 0)
 

Typedefs

typedef void(* da8xx_ocic_handler_t )(struct da8xx_ohci_root_hub *hub, unsigned port)
 

Functions

void davinci_setup_usb (unsigned mA, unsigned potpgt_ms)
 

Macro Definition Documentation

#define CFGCHIP2_DATPOL   (1 << 8)

Definition at line 27 of file usb-davinci.h.

#define CFGCHIP2_FORCE_DEVICE   (2 << 13)

Definition at line 21 of file usb-davinci.h.

#define CFGCHIP2_FORCE_HOST   (1 << 13)

Definition at line 20 of file usb-davinci.h.

#define CFGCHIP2_FORCE_HOST_VBUS_LOW   (3 << 13)

Definition at line 22 of file usb-davinci.h.

#define CFGCHIP2_NO_OVERRIDE   (0 << 13)

Definition at line 19 of file usb-davinci.h.

#define CFGCHIP2_OTGMODE   (3 << 13)

Definition at line 18 of file usb-davinci.h.

#define CFGCHIP2_OTGPWRDN   (1 << 9)

Definition at line 26 of file usb-davinci.h.

#define CFGCHIP2_PHY_PLLON   (1 << 6) /* override PLL suspend */

Definition at line 29 of file usb-davinci.h.

#define CFGCHIP2_PHYCLKGD   (1 << 17)

Definition at line 15 of file usb-davinci.h.

#define CFGCHIP2_PHYPWRDN   (1 << 10)

Definition at line 25 of file usb-davinci.h.

#define CFGCHIP2_REFFREQ   (0xf << 0)

Definition at line 32 of file usb-davinci.h.

#define CFGCHIP2_REFFREQ_12MHZ   (1 << 0)

Definition at line 33 of file usb-davinci.h.

#define CFGCHIP2_REFFREQ_24MHZ   (2 << 0)

Definition at line 34 of file usb-davinci.h.

#define CFGCHIP2_REFFREQ_48MHZ   (3 << 0)

Definition at line 35 of file usb-davinci.h.

#define CFGCHIP2_RESET   (1 << 15)

Definition at line 17 of file usb-davinci.h.

#define CFGCHIP2_SESENDEN   (1 << 5) /* Vsess_end comparator */

Definition at line 30 of file usb-davinci.h.

#define CFGCHIP2_USB1PHYCLKMUX   (1 << 12)

Definition at line 23 of file usb-davinci.h.

#define CFGCHIP2_USB1SUSPENDM   (1 << 7)

Definition at line 28 of file usb-davinci.h.

#define CFGCHIP2_USB2PHYCLKMUX   (1 << 11)

Definition at line 24 of file usb-davinci.h.

#define CFGCHIP2_VBDTCTEN   (1 << 4) /* Vbus comparator */

Definition at line 31 of file usb-davinci.h.

#define CFGCHIP2_VBUSSENSE   (1 << 16)

Definition at line 16 of file usb-davinci.h.

Typedef Documentation

typedef void(* da8xx_ocic_handler_t)(struct da8xx_ohci_root_hub *hub, unsigned port)

Definition at line 39 of file usb-davinci.h.

Function Documentation

void davinci_setup_usb ( unsigned  mA,
unsigned  potpgt_ms 
)

Definition at line 135 of file usb.c.