projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ar71xx] prepare for RouterStation support
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
include
/
asm-mips
/
mach-ar71xx
/
gpio.h
diff --git
a/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/gpio.h
b/target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/gpio.h
index
3477270
..
6354d68
100644
(file)
--- a/
target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/gpio.h
+++ b/
target/linux/ar71xx/files/include/asm-mips/mach-ar71xx/gpio.h
@@
-18,6
+18,7
@@
#include <asm/mach-ar71xx/ar71xx.h>
#include <asm/mach-ar71xx/ar71xx.h>
+extern unsigned long ar71xx_gpio_count;
extern void __ar71xx_gpio_set_value(unsigned gpio, int value);
extern int __ar71xx_gpio_get_value(unsigned gpio);
extern void __ar71xx_gpio_set_value(unsigned gpio, int value);
extern int __ar71xx_gpio_get_value(unsigned gpio);
@@
-33,7
+34,7
@@
static inline int irq_to_gpio(unsigned irq)
static inline int gpio_get_value(unsigned gpio)
{
static inline int gpio_get_value(unsigned gpio)
{
- if (gpio <
AR71XX_GPIO_COUNT
)
+ if (gpio <
ar71xx_gpio_count
)
return __ar71xx_gpio_get_value(gpio);
return __gpio_get_value(gpio);
return __ar71xx_gpio_get_value(gpio);
return __gpio_get_value(gpio);
@@
-41,7
+42,7
@@
static inline int gpio_get_value(unsigned gpio)
static inline void gpio_set_value(unsigned gpio, int value)
{
static inline void gpio_set_value(unsigned gpio, int value)
{
- if (gpio <
AR71XX_GPIO_COUNT
)
+ if (gpio <
ar71xx_gpio_count
)
__ar71xx_gpio_set_value(gpio, value);
else
__gpio_set_value(gpio, value);
__ar71xx_gpio_set_value(gpio, value);
else
__gpio_set_value(gpio, value);
This page took
0.023897 seconds
and
4
git commands to generate.