Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gpio.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/gpio.h>
#include <mach/hardware.h>
#include <mach/irqs.h>

Go to the source code of this file.

Macros

#define GPIO_BASE(x)   IO_ADDRESS(GEMINI_GPIO_BASE(x))
 
#define GPIO_DATA_OUT   0x0
 
#define GPIO_DATA_IN   0x4
 
#define GPIO_DIR   0x8
 
#define GPIO_DATA_SET   0x10
 
#define GPIO_DATA_CLR   0x14
 
#define GPIO_PULL_EN   0x18
 
#define GPIO_PULL_TYPE   0x1C
 
#define GPIO_INT_EN   0x20
 
#define GPIO_INT_STAT   0x24
 
#define GPIO_INT_MASK   0x2C
 
#define GPIO_INT_CLR   0x30
 
#define GPIO_INT_TYPE   0x34
 
#define GPIO_INT_BOTH_EDGE   0x38
 
#define GPIO_INT_LEVEL   0x3C
 
#define GPIO_DEBOUNCE_EN   0x40
 
#define GPIO_DEBOUNCE_PRESCALE   0x44
 
#define GPIO_PORT_NUM   3
 

Functions

void __init gemini_gpio_init (void)
 

Macro Definition Documentation

#define GPIO_BASE (   x)    IO_ADDRESS(GEMINI_GPIO_BASE(x))

Definition at line 25 of file gpio.c.

#define GPIO_DATA_CLR   0x14

Definition at line 32 of file gpio.c.

#define GPIO_DATA_IN   0x4

Definition at line 29 of file gpio.c.

#define GPIO_DATA_OUT   0x0

Definition at line 28 of file gpio.c.

#define GPIO_DATA_SET   0x10

Definition at line 31 of file gpio.c.

#define GPIO_DEBOUNCE_EN   0x40

Definition at line 42 of file gpio.c.

#define GPIO_DEBOUNCE_PRESCALE   0x44

Definition at line 43 of file gpio.c.

#define GPIO_DIR   0x8

Definition at line 30 of file gpio.c.

#define GPIO_INT_BOTH_EDGE   0x38

Definition at line 40 of file gpio.c.

#define GPIO_INT_CLR   0x30

Definition at line 38 of file gpio.c.

#define GPIO_INT_EN   0x20

Definition at line 35 of file gpio.c.

#define GPIO_INT_LEVEL   0x3C

Definition at line 41 of file gpio.c.

#define GPIO_INT_MASK   0x2C

Definition at line 37 of file gpio.c.

#define GPIO_INT_STAT   0x24

Definition at line 36 of file gpio.c.

#define GPIO_INT_TYPE   0x34

Definition at line 39 of file gpio.c.

#define GPIO_PORT_NUM   3

Definition at line 45 of file gpio.c.

#define GPIO_PULL_EN   0x18

Definition at line 33 of file gpio.c.

#define GPIO_PULL_TYPE   0x1C

Definition at line 34 of file gpio.c.

Function Documentation

void __init gemini_gpio_init ( void  )

Definition at line 208 of file gpio.c.