#include <linux/module.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/pinctrl/consumer.h>
#include <linux/pinctrl/pinconf-generic.h>
#include <linux/platform_data/pinctrl-coh901.h>
#include "pinctrl-coh901.h"
Go to the source code of this file.
#define BS335_GPIO_NUM_PORTS 7 |
#define U300_FLOATING_INPUT |
Value:{ \
.bias_mode = PIN_CONFIG_BIAS_HIGH_IMPEDANCE, \
.output = false, \
}
Definition at line 117 of file pinctrl-coh901.c.
#define U300_GPIO_CR (0x00) |
#define U300_GPIO_CR_BLOCK_CLKRQ_ENABLE (0x00000001UL) |
#define U300_GPIO_CR_SYNC_SEL_ENABLE (0x00000002UL) |
#define U300_GPIO_PINS_PER_PORT 8 |
#define U300_GPIO_PORT_STRIDE (0x30) |
#define U300_GPIO_PXICR (0x20) |
#define U300_GPIO_PXICR_ALL_IRQ_CONFIG_MASK (0x000000FFUL) |
#define U300_GPIO_PXICR_IRQ_CONFIG_FALLING_EDGE (0x00000000UL) |
#define U300_GPIO_PXICR_IRQ_CONFIG_MASK (0x00000001UL) |
#define U300_GPIO_PXICR_IRQ_CONFIG_RISING_EDGE (0x00000001UL) |
#define U300_GPIO_PXIEN (0x18) |
#define U300_GPIO_PXIEV (0x14) |
#define U300_GPIO_PXIFR (0x1C) |
#define U300_GPIO_PXPCR (0x0C) |
#define U300_GPIO_PXPCR_ALL_PINS_MODE_MASK (0x0000FFFFUL) |
#define U300_GPIO_PXPCR_PIN_MODE_INPUT (0x00000000UL) |
#define U300_GPIO_PXPCR_PIN_MODE_MASK (0x00000003UL) |
#define U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_DRAIN (0x00000002UL) |
#define U300_GPIO_PXPCR_PIN_MODE_OUTPUT_OPEN_SOURCE (0x00000003UL) |
#define U300_GPIO_PXPCR_PIN_MODE_OUTPUT_PUSH_PULL (0x00000001UL) |
#define U300_GPIO_PXPCR_PIN_MODE_SHIFT (0x00000002UL) |
#define U300_GPIO_PXPDIR (0x04) |
#define U300_GPIO_PXPDOR (0x08) |
#define U300_GPIO_PXPER (0x10) |
#define U300_GPIO_PXPER_ALL_PULL_UP_DISABLE_MASK (0x000000FFUL) |
#define U300_GPIO_PXPER_PULL_UP_DISABLE (0x00000001UL) |
#define U300_PIN_BIT |
( |
|
pin | ) |
(1 << (pin & 0x07)) |
#define U300_PULL_UP_INPUT |
Value:{ \
.bias_mode = PIN_CONFIG_BIAS_PULL_UP, \
.output = false, \
}
Definition at line 122 of file pinctrl-coh901.c.
arch_initcall |
( |
u300_gpio_init |
| ) |
|
MODULE_DESCRIPTION |
( |
"ST-Ericsson AB COH 901 335/COH 901 571/3 GPIO driver" |
| ) |
|
module_exit |
( |
u300_gpio_exit |
| ) |
|
int u300_gpio_config_get |
( |
struct gpio_chip * |
chip, |
|
|
unsigned |
offset, |
|
|
unsigned long * |
config |
|
) |
| |
int u300_gpio_config_set |
( |
struct gpio_chip * |
chip, |
|
|
unsigned |
offset, |
|
|
enum pin_config_param |
param |
|
) |
| |