mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 14:43:03 +00:00
a0026418d3
Increase GPIOs number for S3C244X, and make S3C_GPIO_END point to BANKJ end, otherwise gpiolib refuses to register BANKJ Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> [ben-linux@fluff.org: Move pm fix to new patch] Signed-off-by: Ben Dooks <ben-linux@fluff.org>
38 lines
1002 B
C
38 lines
1002 B
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.
|
|
*/
|
|
|
|
#define gpio_get_value __gpio_get_value
|
|
#define gpio_set_value __gpio_set_value
|
|
#define gpio_cansleep __gpio_cansleep
|
|
#define gpio_to_irq __gpio_to_irq
|
|
|
|
/* 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)
|
|
#else
|
|
#define ARCH_NR_GPIOS (256 + CONFIG_S3C24XX_GPIO_EXTRA)
|
|
#endif
|
|
|
|
#include <asm-generic/gpio.h>
|
|
#include <mach/gpio-nrs.h>
|
|
#include <mach/gpio-fns.h>
|
|
|
|
#ifdef CONFIG_CPU_S3C24XX
|
|
#define S3C_GPIO_END (S3C2410_GPIO_BANKJ + 32)
|
|
#else
|
|
#define S3C_GPIO_END (S3C2410_GPIO_BANKH + 32)
|
|
#endif
|