gpio.h 716 字节
Newer Older
1
/* arch/arm/mach-s3c2410/include/mach/gpio.h
P
Philipp Zabel 已提交
2
 *
B
Ben Dooks 已提交
3 4 5
 * Copyright (c) 2008 Simtec Electronics
 *	http://armlinux.simtec.co.uk/
 *	Ben Dooks <ben@simtec.co.uk>
P
Philipp Zabel 已提交
6
 *
B
Ben Dooks 已提交
7
 * S3C2410 - GPIO lib support
P
Philipp Zabel 已提交
8 9
 *
 * This program is free software; you can redistribute it and/or modify
B
Ben Dooks 已提交
10 11 12
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/
P
Philipp Zabel 已提交
13

B
Ben Dooks 已提交
14 15 16
#define gpio_get_value	__gpio_get_value
#define gpio_set_value	__gpio_set_value
#define gpio_cansleep	__gpio_cansleep
17
#define gpio_to_irq	__gpio_to_irq
P
Philipp Zabel 已提交
18

19 20 21 22 23 24
/* some boards require extra gpio capacity to support external
 * devices that need GPIO.
 */

#define ARCH_NR_GPIOS	(256 + CONFIG_S3C24XX_GPIO_EXTRA)

B
Ben Dooks 已提交
25
#include <asm-generic/gpio.h>