Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
#include <linux/mfd/intel_msic.h>
Go to the source code of this file.
Data Structures | |
struct | msic_gpio |
Macros | |
#define | MSIC_GPIO_IRQ_OFFSET 0x100 |
#define | MSIC_GPIO_DIR_IN 0 |
#define | MSIC_GPIO_DIR_OUT BIT(5) |
#define | MSIC_GPIO_TRIG_FALL BIT(1) |
#define | MSIC_GPIO_TRIG_RISE BIT(2) |
#define | MSIC_GPIO_DIR_MASK BIT(5) |
#define | MSIC_GPIO_DRV_MASK BIT(4) |
#define | MSIC_GPIO_REN_MASK BIT(3) |
#define | MSIC_GPIO_RVAL_MASK (BIT(2) | BIT(1)) |
#define | MSIC_GPIO_DOUT_MASK BIT(0) |
#define | MSIC_GPIO_GLBYP_MASK BIT(5) |
#define | MSIC_GPIO_DBNC_MASK (BIT(4) | BIT(3)) |
#define | MSIC_GPIO_INTCNT_MASK (BIT(2) | BIT(1)) |
#define | MSIC_GPIO_DIN_MASK BIT(0) |
#define | MSIC_NUM_GPIO 24 |
Functions | |
subsys_initcall (platform_msic_gpio_init) | |
MODULE_AUTHOR ("Mathias Nyman <[email protected]>") | |
MODULE_DESCRIPTION ("Intel Medfield MSIC GPIO driver") | |
MODULE_LICENSE ("GPL v2") | |
Definition at line 49 of file gpio-msic.c.
#define MSIC_GPIO_DIN_MASK BIT(0) |
Definition at line 51 of file gpio-msic.c.
#define MSIC_GPIO_DIR_IN 0 |
Definition at line 35 of file gpio-msic.c.
#define MSIC_GPIO_DIR_MASK BIT(5) |
Definition at line 41 of file gpio-msic.c.
#define MSIC_GPIO_DIR_OUT BIT(5) |
Definition at line 36 of file gpio-msic.c.
#define MSIC_GPIO_DOUT_MASK BIT(0) |
Definition at line 45 of file gpio-msic.c.
#define MSIC_GPIO_DRV_MASK BIT(4) |
Definition at line 42 of file gpio-msic.c.
#define MSIC_GPIO_GLBYP_MASK BIT(5) |
Definition at line 48 of file gpio-msic.c.
Definition at line 50 of file gpio-msic.c.
#define MSIC_GPIO_IRQ_OFFSET 0x100 |
Definition at line 33 of file gpio-msic.c.
#define MSIC_GPIO_REN_MASK BIT(3) |
Definition at line 43 of file gpio-msic.c.
Definition at line 44 of file gpio-msic.c.
#define MSIC_GPIO_TRIG_FALL BIT(1) |
Definition at line 37 of file gpio-msic.c.
#define MSIC_GPIO_TRIG_RISE BIT(2) |
Definition at line 38 of file gpio-msic.c.
#define MSIC_NUM_GPIO 24 |
Definition at line 53 of file gpio-msic.c.
MODULE_AUTHOR | ( | "Mathias Nyman <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |
subsys_initcall | ( | platform_msic_gpio_init | ) |