diff options
Diffstat (limited to 'arch/arm/mach-s3c24xx/include/mach/gpio.h')
-rw-r--r-- | arch/arm/mach-s3c24xx/include/mach/gpio.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c24xx/include/mach/gpio.h b/arch/arm/mach-s3c24xx/include/mach/gpio.h new file mode 100644 index 000000000000..6fac70f3484e --- /dev/null +++ b/arch/arm/mach-s3c24xx/include/mach/gpio.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* 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 | /* some boards require extra gpio capacity to support external | ||
15 | * devices that need GPIO. | ||
16 | */ | ||
17 | |||
18 | #ifdef CONFIG_CPU_S3C244X | ||
19 | #define ARCH_NR_GPIOS (32 * 9 + CONFIG_S3C24XX_GPIO_EXTRA) | ||
20 | #elif defined(CONFIG_CPU_S3C2443) || defined(CONFIG_CPU_S3C2416) | ||
21 | #define ARCH_NR_GPIOS (32 * 12 + CONFIG_S3C24XX_GPIO_EXTRA) | ||
22 | #else | ||
23 | #define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA) | ||
24 | #endif | ||
25 | |||
26 | #include <mach/gpio-nrs.h> | ||
27 | #include <mach/gpio-fns.h> | ||
28 | |||
29 | #ifdef CONFIG_CPU_S3C244X | ||
30 | #define S3C_GPIO_END (S3C2410_GPJ(0) + 32) | ||
31 | #elif defined(CONFIG_CPU_S3C2443) || defined(CONFIG_CPU_S3C2416) | ||
32 | #define S3C_GPIO_END (S3C2410_GPM(0) + 32) | ||
33 | #else | ||
34 | #define S3C_GPIO_END (S3C2410_GPH(0) + 32) | ||
35 | #endif | ||