]> git.openpandora.org Git - pandora-kernel.git/commitdiff
[ARM] S3C: Move common GPIO code from plat-s3c24xx
authorBen Dooks <ben-linux@fluff.org>
Fri, 31 Oct 2008 16:14:31 +0000 (16:14 +0000)
committerBen Dooks <ben-linux@fluff.org>
Mon, 15 Dec 2008 23:33:20 +0000 (23:33 +0000)
Move the common parts of the GPIO code into plat-s3c
for use with both the s3c24xx and s3c64xx systems.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c6400/include/mach/gpio.h
arch/arm/plat-s3c/Makefile
arch/arm/plat-s3c/gpio.c [new file with mode: 0644]
arch/arm/plat-s3c/include/plat/gpio-core.h [new file with mode: 0644]
arch/arm/plat-s3c24xx/gpiolib.c

index 8600c818a46facd5914f94a2b687c07d82bd4822..e8e35e8fe73165f2010042d6ba1ba91b484a8b8a 100644 (file)
@@ -86,6 +86,10 @@ enum s3c_gpio_number {
 #define S3C64XX_GPP(_nr)       (S3C64XX_GPIO_P_START + (_nr))
 #define S3C64XX_GPQ(_nr)       (S3C64XX_GPIO_Q_START + (_nr))
 
+/* the end of the S3C64XX specific gpios */
+#define S3C64XX_GPIO_END       (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)
+#define S3C_GPIO_END           S3C64XX_GPIO_END
+
 /* define the number of gpios we need to the one after the GPQ() range */
 #define ARCH_NR_GPIOS  (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)
 
Simple merge
Simple merge
Simple merge