Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-da9052.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/syscalls.h>
#include <linux/seq_file.h>
#include <linux/mfd/da9052/da9052.h>
#include <linux/mfd/da9052/reg.h>
#include <linux/mfd/da9052/pdata.h>

Go to the source code of this file.

Data Structures

struct  da9052_gpio
 

Macros

#define DA9052_INPUT   1
 
#define DA9052_OUTPUT_OPENDRAIN   2
 
#define DA9052_OUTPUT_PUSHPULL   3
 
#define DA9052_SUPPLY_VDD_IO1   0
 
#define DA9052_DEBOUNCING_OFF   0
 
#define DA9052_DEBOUNCING_ON   1
 
#define DA9052_OUTPUT_LOWLEVEL   0
 
#define DA9052_ACTIVE_LOW   0
 
#define DA9052_ACTIVE_HIGH   1
 
#define DA9052_GPIO_MAX_PORTS_PER_REGISTER   8
 
#define DA9052_GPIO_SHIFT_COUNT(no)   (no%8)
 
#define DA9052_GPIO_MASK_UPPER_NIBBLE   0xF0
 
#define DA9052_GPIO_MASK_LOWER_NIBBLE   0x0F
 
#define DA9052_GPIO_NIBBLE_SHIFT   4
 
#define DA9052_IRQ_GPI0   16
 
#define DA9052_GPIO_ODD_SHIFT   7
 
#define DA9052_GPIO_EVEN_SHIFT   3
 

Functions

 module_platform_driver (da9052_gpio_driver)
 
 MODULE_AUTHOR ("David Dajun Chen <[email protected]>")
 
 MODULE_DESCRIPTION ("DA9052 GPIO Device Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:da9052-gpio")
 

Macro Definition Documentation

#define DA9052_ACTIVE_HIGH   1

Definition at line 38 of file gpio-da9052.c.

#define DA9052_ACTIVE_LOW   0

Definition at line 37 of file gpio-da9052.c.

#define DA9052_DEBOUNCING_OFF   0

Definition at line 32 of file gpio-da9052.c.

#define DA9052_DEBOUNCING_ON   1

Definition at line 33 of file gpio-da9052.c.

#define DA9052_GPIO_EVEN_SHIFT   3

Definition at line 47 of file gpio-da9052.c.

#define DA9052_GPIO_MASK_LOWER_NIBBLE   0x0F

Definition at line 43 of file gpio-da9052.c.

#define DA9052_GPIO_MASK_UPPER_NIBBLE   0xF0

Definition at line 42 of file gpio-da9052.c.

#define DA9052_GPIO_MAX_PORTS_PER_REGISTER   8

Definition at line 40 of file gpio-da9052.c.

#define DA9052_GPIO_NIBBLE_SHIFT   4

Definition at line 44 of file gpio-da9052.c.

#define DA9052_GPIO_ODD_SHIFT   7

Definition at line 46 of file gpio-da9052.c.

#define DA9052_GPIO_SHIFT_COUNT (   no)    (no%8)

Definition at line 41 of file gpio-da9052.c.

#define DA9052_INPUT   1

Definition at line 26 of file gpio-da9052.c.

#define DA9052_IRQ_GPI0   16

Definition at line 45 of file gpio-da9052.c.

#define DA9052_OUTPUT_LOWLEVEL   0

Definition at line 35 of file gpio-da9052.c.

#define DA9052_OUTPUT_OPENDRAIN   2

Definition at line 27 of file gpio-da9052.c.

#define DA9052_OUTPUT_PUSHPULL   3

Definition at line 28 of file gpio-da9052.c.

#define DA9052_SUPPLY_VDD_IO1   0

Definition at line 30 of file gpio-da9052.c.

Function Documentation

MODULE_ALIAS ( "platform:da9052-gpio )
MODULE_AUTHOR ( "David Dajun Chen <[email protected]>"  )
MODULE_DESCRIPTION ( "DA9052 GPIO Device Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( da9052_gpio_driver  )