forked from Minki/linux
f55be1bf52
The <mach/gpio.h> file is included from upper directories and deal with generic GPIO and gpiolib stuff. Break out the platform and driver specific defines and functions into its own header file. Cc: Eric Miao <eric.y.miao@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
14 lines
316 B
C
14 lines
316 B
C
#ifndef __ASM_MACH_GPIO_H
|
|
#define __ASM_MACH_GPIO_H
|
|
|
|
#include <asm-generic/gpio.h>
|
|
|
|
#define gpio_to_irq(gpio) (IRQ_GPIO_START + (gpio))
|
|
#define irq_to_gpio(irq) ((irq) - IRQ_GPIO_START)
|
|
|
|
#define __gpio_is_inverted(gpio) (0)
|
|
#define __gpio_is_occupied(gpio) (0)
|
|
|
|
#include <plat/gpio.h>
|
|
#endif /* __ASM_MACH_GPIO_H */
|