blob: 00476a573bbe8c43aabce34e3f4ae3860da40ec1 [file] [log] [blame]
Russell Kinga09e64f2008-08-05 16:14:15 +01001/* arch/arm/mach-s3c2410/include/mach/gpio.h
2 *
3 * Copyright (c) 2008 Simtec Electronics
4 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk>
6 *
7 * S3C2410 - GPIO lib support
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12*/
13
14#define gpio_get_value __gpio_get_value
15#define gpio_set_value __gpio_set_value
16#define gpio_cansleep __gpio_cansleep
Ben Dooks4d316fc2009-01-08 12:33:11 +000017#define gpio_to_irq __gpio_to_irq
Russell Kinga09e64f2008-08-05 16:14:15 +010018
Ben Dookse2178d42008-11-10 10:59:32 +000019/* some boards require extra gpio capacity to support external
20 * devices that need GPIO.
21 */
22
23#define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA)
24
Russell Kinga09e64f2008-08-05 16:14:15 +010025#include <asm-generic/gpio.h>