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

#include <tps65010.h>

Data Fields

int base
 
unsigned outmask
 
int(* setup )(struct i2c_client *client, void *context)
 
int(* teardown )(struct i2c_client *client, void *context)
 
voidcontext
 

Detailed Description

struct tps65010_board - packages GPIO and LED lines : the GPIO number to assign to GPIO-1 : bit (N-1) is set to allow GPIO-N to be used as an (open drain) output : optional callback issued once the GPIOs are valid : optional callback issued before the GPIOs are invalidated : optional parameter passed to setup() and teardown()

Board data may be used to package the GPIO (and LED) lines for use in by the generic GPIO and LED frameworks. The first four GPIOs starting at gpio_base are GPIO1..GPIO4. The next two are LED1/nPG and LED2 (with hardware blinking capability, not currently exposed).

The callback may be used with the kind of board-specific glue which hands the (now-valid) GPIOs to other drivers, or which puts devices in their initial states using these GPIOs.

Definition at line 195 of file tps65010.h.

Field Documentation

int base

Definition at line 196 of file tps65010.h.

Definition at line 201 of file tps65010.h.

unsigned outmask

Definition at line 197 of file tps65010.h.

Definition at line 199 of file tps65010.h.

Definition at line 200 of file tps65010.h.


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