Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gpio-twl4030.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kthread.h>
#include <linux/irq.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/irqdomain.h>
#include <linux/i2c/twl.h>

Go to the source code of this file.

Macros

#define is_module()   false
 
#define MASK_GPIO_CTRL_GPIO0CD1   BIT(0)
 
#define MASK_GPIO_CTRL_GPIO1CD2   BIT(1)
 
#define MASK_GPIO_CTRL_GPIO_ON   BIT(2)
 
#define GPIO_32_MASK   0x0003ffff
 
#define TWL4030_LED_LEDEN   0x0
 
#define LEDEN_LEDAON   BIT(0)
 
#define LEDEN_LEDBON   BIT(1)
 
#define LEDEN_LEDAEXT   BIT(2)
 
#define LEDEN_LEDBEXT   BIT(3)
 
#define LEDEN_LEDAPWM   BIT(4)
 
#define LEDEN_LEDBPWM   BIT(5)
 
#define LEDEN_PWM_LENGTHA   BIT(6)
 
#define LEDEN_PWM_LENGTHB   BIT(7)
 
#define TWL4030_PWMx_PWMxON   0x0
 
#define TWL4030_PWMx_PWMxOFF   0x1
 
#define PWMxON_LENGTH   BIT(7)
 

Functions

 MODULE_DEVICE_TABLE (of, twl_gpio_match)
 
 MODULE_ALIAS ("platform:twl4030_gpio")
 
 subsys_initcall (gpio_twl4030_init)
 
 module_exit (gpio_twl4030_exit)
 
 MODULE_AUTHOR ("Texas Instruments, Inc.")
 
 MODULE_DESCRIPTION ("GPIO interface for TWL4030")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define GPIO_32_MASK   0x0003ffff

Definition at line 70 of file gpio-twl4030.c.

#define is_module ( )    false

Definition at line 61 of file gpio-twl4030.c.

#define LEDEN_LEDAEXT   BIT(2)

Definition at line 100 of file gpio-twl4030.c.

#define LEDEN_LEDAON   BIT(0)

Definition at line 98 of file gpio-twl4030.c.

#define LEDEN_LEDAPWM   BIT(4)

Definition at line 102 of file gpio-twl4030.c.

#define LEDEN_LEDBEXT   BIT(3)

Definition at line 101 of file gpio-twl4030.c.

#define LEDEN_LEDBON   BIT(1)

Definition at line 99 of file gpio-twl4030.c.

#define LEDEN_LEDBPWM   BIT(5)

Definition at line 103 of file gpio-twl4030.c.

#define LEDEN_PWM_LENGTHA   BIT(6)

Definition at line 104 of file gpio-twl4030.c.

#define LEDEN_PWM_LENGTHB   BIT(7)

Definition at line 105 of file gpio-twl4030.c.

#define MASK_GPIO_CTRL_GPIO0CD1   BIT(0)

Definition at line 65 of file gpio-twl4030.c.

#define MASK_GPIO_CTRL_GPIO1CD2   BIT(1)

Definition at line 66 of file gpio-twl4030.c.

#define MASK_GPIO_CTRL_GPIO_ON   BIT(2)

Definition at line 67 of file gpio-twl4030.c.

#define PWMxON_LENGTH   BIT(7)

Definition at line 110 of file gpio-twl4030.c.

#define TWL4030_LED_LEDEN   0x0

Definition at line 95 of file gpio-twl4030.c.

#define TWL4030_PWMx_PWMxOFF   0x1

Definition at line 108 of file gpio-twl4030.c.

#define TWL4030_PWMx_PWMxON   0x0

Definition at line 107 of file gpio-twl4030.c.

Function Documentation

MODULE_ALIAS ( "platform:twl4030_gpio"  )
MODULE_AUTHOR ( "Texas  Instruments,
Inc."   
)
MODULE_DESCRIPTION ( "GPIO interface for TWL4030"  )
MODULE_DEVICE_TABLE ( of  ,
twl_gpio_match   
)
module_exit ( gpio_twl4030_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( gpio_twl4030_init  )