#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/bitops.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <plat/orion-gpio.h>
Go to the source code of this file.
|
void __init | orion_gpio_set_unused (unsigned pin) |
|
void __init | orion_gpio_set_valid (unsigned pin, int mode) |
|
void | orion_gpio_set_blink (unsigned pin, int blink) |
|
| EXPORT_SYMBOL (orion_gpio_set_blink) |
|
int | orion_gpio_led_blink_set (unsigned gpio, int state, unsigned long *delay_on, unsigned long *delay_off) |
|
| EXPORT_SYMBOL_GPL (orion_gpio_led_blink_set) |
|
void __init | orion_gpio_init (struct device_node *np, int gpio_base, int ngpio, void __iomem *base, int mask_offset, int secondary_irq_base, int irqs[4]) |
|
#define GPIO_BLINK_EN_OFF 0x0008 |
#define GPIO_DATA_IN_OFF 0x0010 |
#define GPIO_EDGE_CAUSE_OFF 0x0014 |
#define GPIO_EDGE_MASK_OFF 0x0018 |
#define GPIO_IN_POL_OFF 0x000c |
#define GPIO_IO_CONF_OFF 0x0004 |
#define GPIO_LEVEL_MASK_OFF 0x001c |
#define GPIO_OUT_OFF 0x0000 |
#define ORION_BLINK_HALF_PERIOD 100 /* ms */ |
int orion_gpio_led_blink_set |
( |
unsigned |
gpio, |
|
|
int |
state, |
|
|
unsigned long * |
delay_on, |
|
|
unsigned long * |
delay_off |
|
) |
| |
void orion_gpio_set_blink |
( |
unsigned |
pin, |
|
|
int |
blink |
|
) |
| |