Blame view

arch/arm/include/asm/gpio.h 776 Bytes
4c20386c8   David Brownell   [PATCH] GPIO core
1
2
  #ifndef _ARCH_ARM_GPIO_H
  #define _ARCH_ARM_GPIO_H
44986ab05   Peter De Schrijver (NVIDIA)   ARM: 7240/1: Make...
3
  #if CONFIG_ARCH_NR_GPIO > 0
ca95023e7   Stephen Warren   ARM: 7271/1: Fix ...
4
  #define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
44986ab05   Peter De Schrijver (NVIDIA)   ARM: 7240/1: Make...
5
  #endif
4c20386c8   David Brownell   [PATCH] GPIO core
6
  /* not all ARM platforms necessarily support this API ... */
a09e64fbc   Russell King   [ARM] Move includ...
7
  #include <mach/gpio.h>
4c20386c8   David Brownell   [PATCH] GPIO core
8

8f3c4537b   Russell King   ARM: gpio: make t...
9
  #ifndef __ARM_GPIOLIB_COMPLEX
22fe67837   Russell King   ARM: gpio: consol...
10
11
12
13
14
15
16
17
  /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
  #include <asm-generic/gpio.h>
  
  /* The trivial gpiolib dispatchers */
  #define gpio_get_value  __gpio_get_value
  #define gpio_set_value  __gpio_set_value
  #define gpio_cansleep   __gpio_cansleep
  #endif
01e7dc89d   Russell King   ARM: gpio: consol...
18
19
20
21
22
23
24
25
  /*
   * Provide a default gpio_to_irq() which should satisfy every case.
   * However, some platforms want to do this differently, so allow them
   * to override it.
   */
  #ifndef gpio_to_irq
  #define gpio_to_irq	__gpio_to_irq
  #endif
4c20386c8   David Brownell   [PATCH] GPIO core
26
  #endif /* _ARCH_ARM_GPIO_H */