2008-08-05 23:14:15 +08:00
|
|
|
/* arch/arm/mach-s3c2410/include/mach/gpio.h
|
2007-02-12 16:53:15 +08:00
|
|
|
*
|
2008-07-03 18:24:25 +08:00
|
|
|
* Copyright (c) 2008 Simtec Electronics
|
|
|
|
* http://armlinux.simtec.co.uk/
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
2007-02-12 16:53:15 +08:00
|
|
|
*
|
2008-07-03 18:24:25 +08:00
|
|
|
* S3C2410 - GPIO lib support
|
2007-02-12 16:53:15 +08:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
2008-07-03 18:24:25 +08:00
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
2007-02-12 16:53:15 +08:00
|
|
|
|
2008-07-03 18:24:25 +08:00
|
|
|
#define gpio_get_value __gpio_get_value
|
|
|
|
#define gpio_set_value __gpio_set_value
|
|
|
|
#define gpio_cansleep __gpio_cansleep
|
2009-01-08 20:33:11 +08:00
|
|
|
#define gpio_to_irq __gpio_to_irq
|
2007-02-12 16:53:15 +08:00
|
|
|
|
2008-11-10 18:59:32 +08:00
|
|
|
/* some boards require extra gpio capacity to support external
|
|
|
|
* devices that need GPIO.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA)
|
|
|
|
|
2008-07-03 18:24:25 +08:00
|
|
|
#include <asm-generic/gpio.h>
|
2008-12-12 08:24:29 +08:00
|
|
|
#include <mach/gpio-nrs.h>
|
2009-05-14 05:52:24 +08:00
|
|
|
#include <mach/gpio-fns.h>
|
2008-12-12 08:24:29 +08:00
|
|
|
|
|
|
|
#define S3C_GPIO_END (S3C2410_GPIO_BANKH + 32)
|