Eric Miao | e2bb665 | 2009-01-20 14:38:24 +0800 | [diff] [blame] | 1 | #ifndef __ASM_MACH_GPIO_H |
| 2 | #define __ASM_MACH_GPIO_H |
| 3 | |
Eric Miao | e2bb665 | 2009-01-20 14:38:24 +0800 | [diff] [blame] | 4 | #include <asm-generic/gpio.h> |
| 5 | |
Eric Miao | e2bb665 | 2009-01-20 14:38:24 +0800 | [diff] [blame] | 6 | #define gpio_to_irq(gpio) (IRQ_GPIO_START + (gpio)) |
| 7 | #define irq_to_gpio(irq) ((irq) - IRQ_GPIO_START) |
| 8 | |
Eric Miao | e2bb665 | 2009-01-20 14:38:24 +0800 | [diff] [blame] | 9 | #define __gpio_is_inverted(gpio) (0) |
| 10 | #define __gpio_is_occupied(gpio) (0) |
| 11 | |
Eric Miao | e2bb665 | 2009-01-20 14:38:24 +0800 | [diff] [blame] | 12 | #include <plat/gpio.h> |
| 13 | #endif /* __ASM_MACH_GPIO_H */ |