Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
gpio_vbus_mach_info Struct Reference

#include <gpio_vbus.h>

Data Fields

int gpio_vbus
 
int gpio_pullup
 
bool gpio_vbus_inverted
 
bool gpio_pullup_inverted
 
bool wakeup
 

Detailed Description

struct gpio_vbus_mach_info - configuration for gpio_vbus : VBUS sensing GPIO : optional D+ or D- pullup GPIO (else negative/invalid) : true if gpio_vbus is active low : true if gpio_pullup is active low : configure gpio_vbus as a wake-up source

The VBUS sensing GPIO should have a pulldown, which will normally be part of a resistor ladder turning a 4.0V-5.25V level on VBUS into a value the GPIO detects as active. Some systems will use comparators.

Definition at line 26 of file gpio_vbus.h.

Field Documentation

int gpio_pullup

Definition at line 28 of file gpio_vbus.h.

bool gpio_pullup_inverted

Definition at line 30 of file gpio_vbus.h.

int gpio_vbus

Definition at line 27 of file gpio_vbus.h.

bool gpio_vbus_inverted

Definition at line 29 of file gpio_vbus.h.

bool wakeup

Definition at line 31 of file gpio_vbus.h.


The documentation for this struct was generated from the following file: