aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-05-03 04:19:49 -0400
committerBen Dooks <ben-linux@fluff.org>2010-05-05 20:32:13 -0400
commit7ced5eab39809539e8fc7f3fb561bd3001d535e7 (patch)
tree67e1a351198da8f33f20e34228becc231af3ae44 /arch/arm/plat-s3c24xx
parent1ec7269fd8b05044f2cb4059b679e053d57460f5 (diff)
ARM: S3C24XX: Add extended GPIO used on S3C2443 and beyond
Add the GPIO banks that are used on the S3C2443 and above to the list of available GPIOS. Currently we do not have any limit on the SoC GPIO, so these are being registered whether the SoC has them or not. It is currently up to the user not to try and use them. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r--arch/arm/plat-s3c24xx/gpiolib.c41
1 files changed, 40 insertions, 1 deletions
diff --git a/arch/arm/plat-s3c24xx/gpiolib.c b/arch/arm/plat-s3c24xx/gpiolib.c
index 376b061804c2..e8c0e8a247ba 100644
--- a/arch/arm/plat-s3c24xx/gpiolib.c
+++ b/arch/arm/plat-s3c24xx/gpiolib.c
@@ -1,6 +1,6 @@
1/* linux/arch/arm/plat-s3c24xx/gpiolib.c 1/* linux/arch/arm/plat-s3c24xx/gpiolib.c
2 * 2 *
3 * Copyright (c) 2008 Simtec Electronics 3 * Copyright (c) 2008-2010 Simtec Electronics
4 * http://armlinux.simtec.co.uk/ 4 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk> 5 * Ben Dooks <ben@simtec.co.uk>
6 * 6 *
@@ -172,8 +172,47 @@ struct s3c_gpio_chip s3c24xx_gpios[] = {
172 .ngpio = 11, 172 .ngpio = 11,
173 }, 173 },
174 }, 174 },
175 /* GPIOS for the S3C2443 and later devices. */
176 {
177 .base = S3C2440_GPJCON,
178 .pm = __gpio_pm(&s3c_gpio_pm_2bit),
179 .chip = {
180 .base = S3C2410_GPJ(0),
181 .owner = THIS_MODULE,
182 .label = "GPIOJ",
183 .ngpio = 16,
184 },
185 }, {
186 .base = S3C2443_GPKCON,
187 .pm = __gpio_pm(&s3c_gpio_pm_2bit),
188 .chip = {
189 .base = S3C2410_GPK(0),
190 .owner = THIS_MODULE,
191 .label = "GPIOK",
192 .ngpio = 16,
193 },
194 }, {
195 .base = S3C2443_GPLCON,
196 .pm = __gpio_pm(&s3c_gpio_pm_2bit),
197 .chip = {
198 .base = S3C2410_GPL(0),
199 .owner = THIS_MODULE,
200 .label = "GPIOL",
201 .ngpio = 15,
202 },
203 }, {
204 .base = S3C2443_GPMCON,
205 .pm = __gpio_pm(&s3c_gpio_pm_2bit),
206 .chip = {
207 .base = S3C2410_GPM(0),
208 .owner = THIS_MODULE,
209 .label = "GPIOM",
210 .ngpio = 2,
211 },
212 },
175}; 213};
176 214
215
177static __init int s3c24xx_gpiolib_init(void) 216static __init int s3c24xx_gpiolib_init(void)
178{ 217{
179 struct s3c_gpio_chip *chip = s3c24xx_gpios; 218 struct s3c_gpio_chip *chip = s3c24xx_gpios;