aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx/gpio.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-05-05 21:50:42 -0400
committerBen Dooks <ben-linux@fluff.org>2010-05-05 21:50:42 -0400
commit9933847b29bb3d3447d19236375ccc84bfbcf3df (patch)
treed8aa5a6cfc064cf668950c08f4a99418a104b950 /arch/arm/plat-s3c24xx/gpio.c
parent97a339995fa6224487dc026e466f5bd1bbcaa3b2 (diff)
ARM: S3C24XX: Remove s3c2410_gpio_getcfg(), implement s3c_gpio_getcfg()
Add s3c_gpio_getcfg() and change anything using s3c2410_gpio_getcfg() to use this instead. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx/gpio.c')
-rw-r--r--arch/arm/plat-s3c24xx/gpio.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/arm/plat-s3c24xx/gpio.c b/arch/arm/plat-s3c24xx/gpio.c
index 24c00470b86c..c7c0cd73b946 100644
--- a/arch/arm/plat-s3c24xx/gpio.c
+++ b/arch/arm/plat-s3c24xx/gpio.c
@@ -33,25 +33,6 @@
33 33
34#include <mach/regs-gpio.h> 34#include <mach/regs-gpio.h>
35 35
36unsigned int s3c2410_gpio_getcfg(unsigned int pin)
37{
38 void __iomem *base = S3C24XX_GPIO_BASE(pin);
39 unsigned long val = __raw_readl(base);
40
41 if (pin < S3C2410_GPIO_BANKB) {
42 val >>= S3C2410_GPIO_OFFSET(pin);
43 val &= 1;
44 val += 1;
45 } else {
46 val >>= S3C2410_GPIO_OFFSET(pin)*2;
47 val &= 3;
48 }
49
50 return val | S3C2410_GPIO_INPUT;
51}
52
53EXPORT_SYMBOL(s3c2410_gpio_getcfg);
54
55void s3c2410_gpio_pullup(unsigned int pin, unsigned int to) 36void s3c2410_gpio_pullup(unsigned int pin, unsigned int to)
56{ 37{
57 void __iomem *base = S3C24XX_GPIO_BASE(pin); 38 void __iomem *base = S3C24XX_GPIO_BASE(pin);