Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/stddef.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <asm/intel_scu_ipc.h>
#include <linux/device.h>
#include <linux/intel_pmic_gpio.h>
#include <linux/platform_device.h>
Go to the source code of this file.
Data Structures | |
struct | pmic_gpio |
Macros | |
#define | pr_fmt(fmt) "%s: " fmt, __func__ |
#define | DRIVER_NAME "pmic_gpio" |
#define | GPIO_DRV 0x01 |
#define | GPIO_DIR 0x02 |
#define | GPIO_DIN 0x04 |
#define | GPIO_DOU 0x08 |
#define | GPIO_INTCTL 0x30 |
#define | GPIO_DBC 0xc0 |
#define | GPOSW_DRV 0x01 |
#define | GPOSW_DOU 0x08 |
#define | GPOSW_RDRV 0x30 |
#define | GPIO_UPDATE_TYPE 0x80000000 |
#define | NUM_GPIO 24 |
Enumerations | |
enum | pmic_gpio_register { GPIO0 = 0xE0, GPIO7 = 0xE7, GPIOINT = 0xE8, GPOSWCTL0 = 0xEC, GPOSWCTL5 = 0xF1, GPO = 0xF4 } |
Functions | |
subsys_initcall (platform_pmic_gpio_init) | |
MODULE_AUTHOR ("Alek Du <[email protected]>") | |
MODULE_DESCRIPTION ("Intel Moorestown PMIC GPIO driver") | |
MODULE_LICENSE ("GPL v2") | |
#define DRIVER_NAME "pmic_gpio" |
Definition at line 39 of file intel_pmic_gpio.c.
#define GPIO_DBC 0xc0 |
Definition at line 59 of file intel_pmic_gpio.c.
#define GPIO_DIN 0x04 |
Definition at line 56 of file intel_pmic_gpio.c.
#define GPIO_DIR 0x02 |
Definition at line 55 of file intel_pmic_gpio.c.
#define GPIO_DOU 0x08 |
Definition at line 57 of file intel_pmic_gpio.c.
#define GPIO_DRV 0x01 |
Definition at line 54 of file intel_pmic_gpio.c.
#define GPIO_INTCTL 0x30 |
Definition at line 58 of file intel_pmic_gpio.c.
#define GPIO_UPDATE_TYPE 0x80000000 |
Definition at line 65 of file intel_pmic_gpio.c.
#define GPOSW_DOU 0x08 |
Definition at line 62 of file intel_pmic_gpio.c.
#define GPOSW_DRV 0x01 |
Definition at line 61 of file intel_pmic_gpio.c.
#define GPOSW_RDRV 0x30 |
Definition at line 63 of file intel_pmic_gpio.c.
#define NUM_GPIO 24 |
Definition at line 67 of file intel_pmic_gpio.c.
#define pr_fmt | ( | fmt | ) | "%s: " fmt, __func__ |
Definition at line 22 of file intel_pmic_gpio.c.
enum pmic_gpio_register |
Definition at line 44 of file intel_pmic_gpio.c.
MODULE_AUTHOR | ( | "Alek Du <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL v2" | ) |
subsys_initcall | ( | platform_pmic_gpio_init | ) |