forked from Minki/linux
85fd6d63bf
This patch moves S3C2410 stuff into mach-s3c24xx/ directory so that we can merge the s3c24 series' directories to the just one mach-s3c24xx/ directory. And this patch is including following. - re-ordered alphabetically by option text at Kconfig and Makefile - removed unused option, MACH_N35 - fixed duplcated option name, S3C2410_DMA to S3C24XX_DMA which is in plat-s3c24xx/ Cc: Ben Dooks <ben-linux@fluff.org> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
/* arch/arm/mach-s3c2410/include/mach/gpio.h
|
|
*
|
|
* Copyright (c) 2008 Simtec Electronics
|
|
* http://armlinux.simtec.co.uk/
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
*
|
|
* S3C2410 - GPIO lib support
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
/* some boards require extra gpio capacity to support external
|
|
* devices that need GPIO.
|
|
*/
|
|
|
|
#ifdef CONFIG_CPU_S3C244X
|
|
#define ARCH_NR_GPIOS (32 * 9 + CONFIG_S3C24XX_GPIO_EXTRA)
|
|
#elif defined(CONFIG_CPU_S3C2443) || defined(CONFIG_CPU_S3C2416)
|
|
#define ARCH_NR_GPIOS (32 * 12 + CONFIG_S3C24XX_GPIO_EXTRA)
|
|
#else
|
|
#define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA)
|
|
#endif
|
|
|
|
#include <mach/gpio-nrs.h>
|
|
#include <mach/gpio-fns.h>
|
|
|
|
#ifdef CONFIG_CPU_S3C244X
|
|
#define S3C_GPIO_END (S3C2410_GPJ(0) + 32)
|
|
#elif defined(CONFIG_CPU_S3C2443) || defined(CONFIG_CPU_S3C2416)
|
|
#define S3C_GPIO_END (S3C2410_GPM(0) + 32)
|
|
#else
|
|
#define S3C_GPIO_END (S3C2410_GPH(0) + 32)
|
|
#endif
|