Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
gpio-pxa.c File Reference
#include <linux/module.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/gpio-pxa.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/syscore_ops.h>
#include <linux/slab.h>
#include <asm/mach/irq.h>
#include <mach/irqs.h>

Go to the source code of this file.

Data Structures

struct  pxa_gpio_chip
 

Macros

#define GPLR_OFFSET   0x00
 
#define GPDR_OFFSET   0x0C
 
#define GPSR_OFFSET   0x18
 
#define GPCR_OFFSET   0x24
 
#define GRER_OFFSET   0x30
 
#define GFER_OFFSET   0x3C
 
#define GEDR_OFFSET   0x48
 
#define GAFR_OFFSET   0x54
 
#define ED_MASK_OFFSET   0x9C /* GPIO edge detection for AP side */
 
#define BANK_OFF(n)   (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))
 
#define for_each_gpio_chip(i, c)   for (i = 0, c = &pxa_gpio_chips[0]; i <= pxa_last_gpio; i += 32, c++)
 
#define pxa_gpio_probe_dt(pdev)   (-1)
 
#define pxa_gpio_suspend   NULL
 
#define pxa_gpio_resume   NULL
 

Enumerations

enum  {
  PXA25X_GPIO = 0, PXA26X_GPIO, PXA27X_GPIO, PXA3XX_GPIO,
  PXA93X_GPIO, MMP_GPIO = 0x10
}
 

Functions

int pxa_irq_to_gpio (int irq)
 
 postcore_initcall (pxa_gpio_init)
 
 postcore_initcall (pxa_gpio_sysinit)
 

Variables

int pxa_last_gpio
 
struct syscore_ops pxa_gpio_syscore_ops
 

Macro Definition Documentation

#define BANK_OFF (   n)    (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2))

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

#define ED_MASK_OFFSET   0x9C /* GPIO edge detection for AP side */

Definition at line 59 of file gpio-pxa.c.

#define for_each_gpio_chip (   i,
  c 
)    for (i = 0, c = &pxa_gpio_chips[0]; i <= pxa_last_gpio; i += 32, c++)

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

#define GAFR_OFFSET   0x54

Definition at line 58 of file gpio-pxa.c.

#define GEDR_OFFSET   0x48

Definition at line 57 of file gpio-pxa.c.

#define GFER_OFFSET   0x3C

Definition at line 56 of file gpio-pxa.c.

#define GPCR_OFFSET   0x24

Definition at line 54 of file gpio-pxa.c.

#define GPDR_OFFSET   0x0C

Definition at line 52 of file gpio-pxa.c.

#define GPLR_OFFSET   0x00

Definition at line 51 of file gpio-pxa.c.

#define GPSR_OFFSET   0x18

Definition at line 53 of file gpio-pxa.c.

#define GRER_OFFSET   0x30

Definition at line 55 of file gpio-pxa.c.

#define pxa_gpio_probe_dt (   pdev)    (-1)

Definition at line 537 of file gpio-pxa.c.

#define pxa_gpio_resume   NULL

Definition at line 687 of file gpio-pxa.c.

#define pxa_gpio_suspend   NULL

Definition at line 686 of file gpio-pxa.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
PXA25X_GPIO 
PXA26X_GPIO 
PXA27X_GPIO 
PXA3XX_GPIO 
PXA93X_GPIO 
MMP_GPIO 

Definition at line 89 of file gpio-pxa.c.

Function Documentation

postcore_initcall ( pxa_gpio_init  )
postcore_initcall ( pxa_gpio_sysinit  )
int pxa_irq_to_gpio ( int  irq)

Definition at line 178 of file gpio-pxa.c.

Variable Documentation

struct syscore_ops pxa_gpio_syscore_ops
Initial value:
= {
.suspend = pxa_gpio_suspend,
.resume = pxa_gpio_resume,
}

Definition at line 690 of file gpio-pxa.c.

int pxa_last_gpio

Definition at line 63 of file gpio-pxa.c.