summaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm2708/include/mach/gpio.h
blob: 7965a9759b6e251372a4d24707c99343dc914e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * arch/arm/mach-bcm2708/include/mach/gpio.h
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */

#ifndef __ASM_ARCH_GPIO_H
#define __ASM_ARCH_GPIO_H

#define BCM2708_NR_GPIOS 54 // number of gpio lines

#define gpio_to_irq(x)	((x) + GPIO_IRQ_START)
#define irq_to_gpio(x)	((x) - GPIO_IRQ_START)

#endif