diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-10-21 04:48:40 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-10-21 04:48:40 -0400 |
commit | 550109378450e7982101f299d41a80e8efc759ea (patch) | |
tree | 8ac065f460d6f8a12d54db0c011922dea37e8e7c /arch/sh | |
parent | bbc97411d11b3a835c62904fddb5ce9ff457f5fa (diff) |
sh: gpio: Stub in dummy GPIO<->IRQ mapping routines.
IRQ modes are not presently supported, so stub in dummy definitions
for now (taken from linux/gpio.h).
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/gpio.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/sh/include/asm/gpio.h b/arch/sh/include/asm/gpio.h index a6ec3e430380..02de5b609ba5 100644 --- a/arch/sh/include/asm/gpio.h +++ b/arch/sh/include/asm/gpio.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #ifndef __ASM_SH_GPIO_H | 12 | #ifndef __ASM_SH_GPIO_H |
13 | #define __ASM_SH_GPIO_H | 13 | #define __ASM_SH_GPIO_H |
14 | 14 | ||
15 | #include <linux/errno.h> | ||
16 | |||
15 | #if defined(CONFIG_CPU_SH3) | 17 | #if defined(CONFIG_CPU_SH3) |
16 | #include <cpu/gpio.h> | 18 | #include <cpu/gpio.h> |
17 | #endif | 19 | #endif |
@@ -100,6 +102,19 @@ int gpio_direction_output(unsigned gpio, int value); | |||
100 | int gpio_get_value(unsigned gpio); | 102 | int gpio_get_value(unsigned gpio); |
101 | void gpio_set_value(unsigned gpio, int value); | 103 | void gpio_set_value(unsigned gpio, int value); |
102 | 104 | ||
105 | /* IRQ modes are unspported */ | ||
106 | static inline int gpio_to_irq(unsigned gpio) | ||
107 | { | ||
108 | WARN_ON(1); | ||
109 | return -EINVAL; | ||
110 | } | ||
111 | |||
112 | static inline int irq_to_gpio(unsigned irq) | ||
113 | { | ||
114 | WARN_ON(1); | ||
115 | return -EINVAL; | ||
116 | } | ||
117 | |||
103 | #include <asm-generic/gpio.h> | 118 | #include <asm-generic/gpio.h> |
104 | 119 | ||
105 | #endif /* __ASM_SH_GPIO_H */ | 120 | #endif /* __ASM_SH_GPIO_H */ |