Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
gpio-msm-v2.c File Reference
#include <linux/bitmap.h>
#include <linux/bitops.h>
#include <linux/gpio.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <asm/mach/irq.h>
#include <mach/msm_gpiomux.h>
#include <mach/msm_iomap.h>

Go to the source code of this file.

Data Structures

struct  msm_gpio_dev
 

Macros

#define pr_fmt(fmt)   "%s: " fmt, __func__
 
#define GPIO_INTR_CFG_SU(gpio)   (MSM_TLMM_BASE + 0x0400 + (0x04 * (gpio)))
 
#define GPIO_CONFIG(gpio)   (MSM_TLMM_BASE + 0x1000 + (0x10 * (gpio)))
 
#define GPIO_IN_OUT(gpio)   (MSM_TLMM_BASE + 0x1004 + (0x10 * (gpio)))
 
#define GPIO_INTR_CFG(gpio)   (MSM_TLMM_BASE + 0x1008 + (0x10 * (gpio)))
 
#define GPIO_INTR_STATUS(gpio)   (MSM_TLMM_BASE + 0x100c + (0x10 * (gpio)))
 

Enumerations

enum  { GPIO_IN = 0, GPIO_OUT = 1 }
 
enum  { INTR_STATUS = 0 }
 
enum  { GPIO_OE = 9 }
 
enum  { INTR_ENABLE = 0, INTR_POL_CTL = 1, INTR_DECT_CTL = 2, INTR_RAW_STATUS_EN = 3 }
 
enum  { TARGET_PROC_SCORPION = 4, TARGET_PROC_NONE = 7 }
 

Functions

 postcore_initcall (msm_gpio_init)
 
 module_exit (msm_gpio_exit)
 
 MODULE_AUTHOR ("Gregory Bean <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for Qualcomm MSM TLMMv2 SoC GPIOs")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:msmgpio")
 

Macro Definition Documentation

#define GPIO_CONFIG (   gpio)    (MSM_TLMM_BASE + 0x1000 + (0x10 * (gpio)))

Definition at line 83 of file gpio-msm-v2.c.

#define GPIO_IN_OUT (   gpio)    (MSM_TLMM_BASE + 0x1004 + (0x10 * (gpio)))

Definition at line 84 of file gpio-msm-v2.c.

#define GPIO_INTR_CFG (   gpio)    (MSM_TLMM_BASE + 0x1008 + (0x10 * (gpio)))

Definition at line 85 of file gpio-msm-v2.c.

#define GPIO_INTR_CFG_SU (   gpio)    (MSM_TLMM_BASE + 0x0400 + (0x04 * (gpio)))

Definition at line 82 of file gpio-msm-v2.c.

#define GPIO_INTR_STATUS (   gpio)    (MSM_TLMM_BASE + 0x100c + (0x10 * (gpio)))

Definition at line 86 of file gpio-msm-v2.c.

#define pr_fmt (   fmt)    "%s: " fmt, __func__

Definition at line 18 of file gpio-msm-v2.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
GPIO_IN 
GPIO_OUT 

Definition at line 38 of file gpio-msm-v2.c.

anonymous enum
Enumerator:
INTR_STATUS 

Definition at line 45 of file gpio-msm-v2.c.

anonymous enum
Enumerator:
GPIO_OE 

Definition at line 51 of file gpio-msm-v2.c.

anonymous enum
Enumerator:
INTR_ENABLE 
INTR_POL_CTL 
INTR_DECT_CTL 
INTR_RAW_STATUS_EN 

Definition at line 67 of file gpio-msm-v2.c.

anonymous enum
Enumerator:
TARGET_PROC_SCORPION 
TARGET_PROC_NONE 

Definition at line 76 of file gpio-msm-v2.c.

Function Documentation

MODULE_ALIAS ( "platform:msmgpio"  )
MODULE_AUTHOR ( "Gregory Bean <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Qualcomm MSM TLMMv2 SoC GPIOs"  )
module_exit ( msm_gpio_exit  )
MODULE_LICENSE ( "GPL v2 )
postcore_initcall ( msm_gpio_init  )