aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/mach-lantiq
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-05-11 12:45:25 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-05-21 09:31:50 -0400
commitbd51db7f3bf2ba23ff55f6d5fdcec04c74df13e4 (patch)
treedc3a006b1679726d1eadca10c9d35f1b330c3fdc /arch/mips/include/asm/mach-lantiq
parent3645da0276ae9f6938ff29b13904b803ecb68424 (diff)
MIPS: lantiq: drop ltq_gpio_request() and gpio_to_irq()
As part of the conversion to OF we also implement pinctrl drivers. Previously we used ltq_gpio_request() to set pinmuxing. This is now obselete and we can hence drop the function. Additionally we remove gpio_to_irq() from the gpio driver and move it to a header file. Signed-off-by: John Crispin <blogic@openwrt.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3801/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-lantiq')
-rw-r--r--arch/mips/include/asm/mach-lantiq/gpio.h16
-rw-r--r--arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h2
2 files changed, 16 insertions, 2 deletions
diff --git a/arch/mips/include/asm/mach-lantiq/gpio.h b/arch/mips/include/asm/mach-lantiq/gpio.h
new file mode 100644
index 000000000000..f79505b43609
--- /dev/null
+++ b/arch/mips/include/asm/mach-lantiq/gpio.h
@@ -0,0 +1,16 @@
1#ifndef __ASM_MIPS_MACH_LANTIQ_GPIO_H
2#define __ASM_MIPS_MACH_LANTIQ_GPIO_H
3
4static inline int gpio_to_irq(unsigned int gpio)
5{
6 return -1;
7}
8
9#define gpio_get_value __gpio_get_value
10#define gpio_set_value __gpio_set_value
11
12#define gpio_cansleep __gpio_cansleep
13
14#include <asm-generic/gpio.h>
15
16#endif
diff --git a/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h b/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
index 15eb4dc6ec03..150c7bef5a14 100644
--- a/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
+++ b/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
@@ -153,8 +153,6 @@
153#define LTQ_MPS_CHIPID ((u32 *)(LTQ_MPS_BASE_ADDR + 0x0344)) 153#define LTQ_MPS_CHIPID ((u32 *)(LTQ_MPS_BASE_ADDR + 0x0344))
154 154
155/* request a non-gpio and set the PIO config */ 155/* request a non-gpio and set the PIO config */
156extern int ltq_gpio_request(unsigned int pin, unsigned int alt0,
157 unsigned int alt1, unsigned int dir, const char *name);
158extern void ltq_pmu_enable(unsigned int module); 156extern void ltq_pmu_enable(unsigned int module);
159extern void ltq_pmu_disable(unsigned int module); 157extern void ltq_pmu_disable(unsigned int module);
160 158