aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/mach-au1x00/gpio-au1000.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-au1x00/gpio-au1000.h b/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
index 62d2f136d941..8f8c1c55593a 100644
--- a/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
+++ b/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
@@ -24,6 +24,7 @@
24 24
25#define MAKE_IRQ(intc, off) (AU1000_INTC##intc##_INT_BASE + (off)) 25#define MAKE_IRQ(intc, off) (AU1000_INTC##intc##_INT_BASE + (off))
26 26
27struct gpio;
27 28
28static inline int au1000_gpio1_to_irq(int gpio) 29static inline int au1000_gpio1_to_irq(int gpio)
29{ 30{
@@ -556,6 +557,16 @@ static inline void gpio_set_value(int gpio, int v)
556 alchemy_gpio_set_value(gpio, v); 557 alchemy_gpio_set_value(gpio, v);
557} 558}
558 559
560static inline int gpio_get_value_cansleep(unsigned gpio)
561{
562 return gpio_get_value(gpio);
563}
564
565static inline void gpio_set_value_cansleep(unsigned gpio, int value)
566{
567 gpio_set_value(gpio, value);
568}
569
559static inline int gpio_is_valid(int gpio) 570static inline int gpio_is_valid(int gpio)
560{ 571{
561 return alchemy_gpio_is_valid(gpio); 572 return alchemy_gpio_is_valid(gpio);
@@ -581,10 +592,50 @@ static inline int gpio_request(unsigned gpio, const char *label)
581 return 0; 592 return 0;
582} 593}
583 594
595static inline int gpio_request_one(unsigned gpio,
596 unsigned long flags, const char *label)
597{
598 return 0;
599}
600
601static inline int gpio_request_array(struct gpio *array, size_t num)
602{
603 return 0;
604}
605
584static inline void gpio_free(unsigned gpio) 606static inline void gpio_free(unsigned gpio)
585{ 607{
586} 608}
587 609
610static inline void gpio_free_array(struct gpio *array, size_t num)
611{
612}
613
614static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
615{
616 return -ENOSYS;
617}
618
619static inline int gpio_export(unsigned gpio, bool direction_may_change)
620{
621 return -ENOSYS;
622}
623
624static inline int gpio_export_link(struct device *dev, const char *name,
625 unsigned gpio)
626{
627 return -ENOSYS;
628}
629
630static inline int gpio_sysfs_set_active_low(unsigned gpio, int value)
631{
632 return -ENOSYS;
633}
634
635static inline void gpio_unexport(unsigned gpio)
636{
637}
638
588#endif /* !CONFIG_ALCHEMY_GPIO_INDIRECT */ 639#endif /* !CONFIG_ALCHEMY_GPIO_INDIRECT */
589 640
590 641