GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / mach-s3c2410 / include / mach / gpio.h
blobb649bf2ccd5c50582fdd02ba00044862cfe917ae
1 /* arch/arm/mach-s3c2410/include/mach/gpio.h
3 * Copyright (c) 2008 Simtec Electronics
4 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk>
7 * S3C2410 - GPIO lib support
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.
14 #define gpio_get_value __gpio_get_value
15 #define gpio_set_value __gpio_set_value
16 #define gpio_cansleep __gpio_cansleep
17 #define gpio_to_irq __gpio_to_irq
19 /* some boards require extra gpio capacity to support external
20 * devices that need GPIO.
23 #ifdef CONFIG_CPU_S3C244X
24 #define ARCH_NR_GPIOS (32 * 9 + CONFIG_S3C24XX_GPIO_EXTRA)
25 #else
26 #define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA)
27 #endif
29 #include <asm-generic/gpio.h>
30 #include <mach/gpio-nrs.h>
31 #include <mach/gpio-fns.h>
33 #ifdef CONFIG_CPU_S3C24XX
34 #define S3C_GPIO_END (S3C2410_GPIO_BANKJ + 32)
35 #else
36 #define S3C_GPIO_END (S3C2410_GPIO_BANKH + 32)
37 #endif