#include <linux/delay.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <asm/blackfin.h>
#include <asm/gpio.h>
#include <asm/portmux.h>
#include <linux/irq.h>
#include <asm/irq_handler.h>
Go to the source code of this file.
|
| DECLARE_RESERVED_MAP (gpio, GPIO_BANK_NUM) |
|
| DECLARE_RESERVED_MAP (peri, DIV_ROUND_UP(MAX_RESOURCES, GPIO_BANKSIZE)) |
|
| DECLARE_RESERVED_MAP (gpio_irq, GPIO_BANK_NUM) |
|
int | check_gpio (unsigned gpio) |
|
| SET_GPIO (dir) |
|
| EXPORT_SYMBOL (set_gpio_toggle) |
|
int | peripheral_request (unsigned short per, const char *label) |
|
| EXPORT_SYMBOL (peripheral_request) |
|
int | peripheral_request_list (const unsigned short per[], const char *label) |
|
| EXPORT_SYMBOL (peripheral_request_list) |
|
void | peripheral_free (unsigned short per) |
|
| EXPORT_SYMBOL (peripheral_free) |
|
void | peripheral_free_list (const unsigned short per[]) |
|
| EXPORT_SYMBOL (peripheral_free_list) |
|
int | bfin_gpio_request (unsigned gpio, const char *label) |
|
| EXPORT_SYMBOL (bfin_gpio_request) |
|
void | bfin_gpio_free (unsigned gpio) |
|
| EXPORT_SYMBOL (bfin_gpio_free) |
|
int | bfin_gpio_irq_request (unsigned gpio, const char *label) |
|
void | bfin_gpio_irq_free (unsigned gpio) |
|
int | bfin_gpio_direction_input (unsigned gpio) |
|
| EXPORT_SYMBOL (bfin_gpio_direction_input) |
|
void | bfin_gpio_irq_prepare (unsigned gpio) |
|
void | bfin_gpio_set_value (unsigned gpio, int arg) |
|
| EXPORT_SYMBOL (bfin_gpio_set_value) |
|
int | bfin_gpio_direction_output (unsigned gpio, int value) |
|
| EXPORT_SYMBOL (bfin_gpio_direction_output) |
|
int | bfin_gpio_get_value (unsigned gpio) |
|
| EXPORT_SYMBOL (bfin_gpio_get_value) |
|
void | bfin_reset_boot_spi_cs (unsigned short pin) |
|
#define AWA_DUMMY_READ |
( |
|
... | ) |
do { } while (0) |
#define DECLARE_RESERVED_MAP |
( |
|
m, |
|
|
|
c |
|
) |
| static unsigned short reserved_##m##_map[c] |
Value:unsigned short get_gpio_ ##
name(
unsigned gpio) \
{ \
hard_local_irq_restore(flags); \
} \
} \
EXPORT_SYMBOL(get_gpio_ ##
name);
Definition at line 484 of file bfin_gpio.c.
#define GET_GPIO_P |
( |
|
name | ) |
|
Value:unsigned short get_gpiop_ ##
name(
unsigned gpio) \
{ \
hard_local_irq_restore(flags); \
} \
} \
EXPORT_SYMBOL(get_gpiop_ ##
name);
Definition at line 511 of file bfin_gpio.c.
#define portmux_setup |
( |
|
... | ) |
do { } while (0) |
#define RESOURCE_LABEL_SIZE 16 |
Value:void set_gpio_ ##
name(
unsigned gpio,
unsigned short arg) \
{ \
else \
hard_local_irq_restore(flags); \
} \
EXPORT_SYMBOL(set_gpio_ ##
name);
Definition at line 402 of file bfin_gpio.c.
#define SET_GPIO_P |
( |
|
name | ) |
|
Value:void set_gpiop_ ##
name(
unsigned gpio,
unsigned short arg) \
{ \
hard_local_irq_restore(flags); \
} \
} \
EXPORT_SYMBOL(set_gpiop_ ##
name);
Definition at line 460 of file bfin_gpio.c.
#define SET_GPIO_SC |
( |
|
name | ) |
|
Value:void set_gpio_ ##
name(
unsigned gpio,
unsigned short arg) \
{ \
else \
hard_local_irq_restore(flags); \
} \
} \
EXPORT_SYMBOL(set_gpio_ ##
name);
int bfin_gpio_direction_input |
( |
unsigned |
gpio | ) |
|
int bfin_gpio_direction_output |
( |
unsigned |
gpio, |
|
|
int |
value |
|
) |
| |
void bfin_gpio_free |
( |
unsigned |
gpio | ) |
|
int bfin_gpio_get_value |
( |
unsigned |
gpio | ) |
|
void bfin_gpio_irq_free |
( |
unsigned |
gpio | ) |
|
void bfin_gpio_irq_prepare |
( |
unsigned |
gpio | ) |
|
int bfin_gpio_irq_request |
( |
unsigned |
gpio, |
|
|
const char * |
label |
|
) |
| |
void bfin_gpio_set_value |
( |
unsigned |
gpio, |
|
|
int |
arg |
|
) |
| |
void bfin_reset_boot_spi_cs |
( |
unsigned short |
pin | ) |
|
int check_gpio |
( |
unsigned |
gpio | ) |
|
|
inline |