diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-07 20:13:50 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-07 20:13:50 -0500 |
| commit | 2cedcc4f122934c3ad38dfb2a400b98a62703e6d (patch) | |
| tree | dffa5daaf84cc7cd1a7e966ce4c6885e4dd974b9 | |
| parent | 6142e05f30b101adeafb0d12e35983f44f68233e (diff) | |
| parent | 812c4e40c27b6ea103ecfbf91d43654356629b81 (diff) | |
Merge branch 'fixes/2637-rc5/s3c24xx' of git://git.fluff.org/bjdooks/linux
* 'fixes/2637-rc5/s3c24xx' of git://git.fluff.org/bjdooks/linux:
ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks
ARM: mini2440: Fix Kconfig to allow kernel to build
ARM: S3C2412: Fix typo in CONFIG_CPU_S3C2412_ONLY definition
ARM: S3C2443: Select properly ARM core type
ARM: SMDK2416: Select MACH_SMDK, S3C_DEV_NAND, S3C_DEV_USB_HOST
| -rw-r--r-- | arch/arm/mach-s3c2412/Kconfig | 2 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2416/Kconfig | 3 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/Kconfig | 4 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/s3c2440.c | 11 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2440/s3c2442.c | 14 | ||||
| -rw-r--r-- | arch/arm/mach-s3c2443/Kconfig | 1 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/cpu.c | 8 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/gpiolib.c | 2 | ||||
| -rw-r--r-- | arch/arm/plat-s3c24xx/include/plat/s3c244x.h | 7 | ||||
| -rw-r--r-- | arch/arm/plat-samsung/gpio-config.c | 47 | ||||
| -rw-r--r-- | arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h | 11 |
11 files changed, 89 insertions, 21 deletions
diff --git a/arch/arm/mach-s3c2412/Kconfig b/arch/arm/mach-s3c2412/Kconfig index cef6a65637bd..fa2e5bffbb8e 100644 --- a/arch/arm/mach-s3c2412/Kconfig +++ b/arch/arm/mach-s3c2412/Kconfig | |||
| @@ -16,7 +16,7 @@ config CPU_S3C2412 | |||
| 16 | config CPU_S3C2412_ONLY | 16 | config CPU_S3C2412_ONLY |
| 17 | bool | 17 | bool |
| 18 | depends on ARCH_S3C2410 && !CPU_S3C2400 && !CPU_S3C2410 && \ | 18 | depends on ARCH_S3C2410 && !CPU_S3C2400 && !CPU_S3C2410 && \ |
| 19 | !CPU_2416 && !CPU_S3C2440 && !CPU_S3C2442 && \ | 19 | !CPU_S3C2416 && !CPU_S3C2440 && !CPU_S3C2442 && \ |
| 20 | !CPU_S3C2443 && CPU_S3C2412 | 20 | !CPU_S3C2443 && CPU_S3C2412 |
| 21 | default y if CPU_S3C2412 | 21 | default y if CPU_S3C2412 |
| 22 | 22 | ||
diff --git a/arch/arm/mach-s3c2416/Kconfig b/arch/arm/mach-s3c2416/Kconfig index 87b9c9f003bd..27b3e7c9d613 100644 --- a/arch/arm/mach-s3c2416/Kconfig +++ b/arch/arm/mach-s3c2416/Kconfig | |||
| @@ -35,9 +35,12 @@ menu "S3C2416 Machines" | |||
| 35 | config MACH_SMDK2416 | 35 | config MACH_SMDK2416 |
| 36 | bool "SMDK2416" | 36 | bool "SMDK2416" |
| 37 | select CPU_S3C2416 | 37 | select CPU_S3C2416 |
| 38 | select MACH_SMDK | ||
| 38 | select S3C_DEV_FB | 39 | select S3C_DEV_FB |
| 39 | select S3C_DEV_HSMMC | 40 | select S3C_DEV_HSMMC |
| 40 | select S3C_DEV_HSMMC1 | 41 | select S3C_DEV_HSMMC1 |
| 42 | select S3C_DEV_NAND | ||
| 43 | select S3C_DEV_USB_HOST | ||
| 41 | select S3C2416_PM if PM | 44 | select S3C2416_PM if PM |
| 42 | help | 45 | help |
| 43 | Say Y here if you are using an SMDK2416 | 46 | Say Y here if you are using an SMDK2416 |
diff --git a/arch/arm/mach-s3c2440/Kconfig b/arch/arm/mach-s3c2440/Kconfig index ff024a6c0f85..a0cb2581894f 100644 --- a/arch/arm/mach-s3c2440/Kconfig +++ b/arch/arm/mach-s3c2440/Kconfig | |||
| @@ -18,6 +18,7 @@ config CPU_S3C2440 | |||
| 18 | config CPU_S3C2442 | 18 | config CPU_S3C2442 |
| 19 | bool | 19 | bool |
| 20 | select CPU_ARM920T | 20 | select CPU_ARM920T |
| 21 | select S3C_GPIO_PULL_DOWN | ||
| 21 | select S3C2410_CLOCK | 22 | select S3C2410_CLOCK |
| 22 | select S3C2410_GPIO | 23 | select S3C2410_GPIO |
| 23 | select S3C2410_PM if PM | 24 | select S3C2410_PM if PM |
| @@ -178,6 +179,9 @@ config MACH_MINI2440 | |||
| 178 | bool "MINI2440 development board" | 179 | bool "MINI2440 development board" |
| 179 | select CPU_S3C2440 | 180 | select CPU_S3C2440 |
| 180 | select EEPROM_AT24 | 181 | select EEPROM_AT24 |
| 182 | select NEW_LEDS | ||
| 183 | select LEDS_CLASS | ||
| 184 | select LEDS_TRIGGER | ||
| 181 | select LEDS_TRIGGER_BACKLIGHT | 185 | select LEDS_TRIGGER_BACKLIGHT |
| 182 | select S3C_DEV_NAND | 186 | select S3C_DEV_NAND |
| 183 | select S3C_DEV_USB_HOST | 187 | select S3C_DEV_USB_HOST |
diff --git a/arch/arm/mach-s3c2440/s3c2440.c b/arch/arm/mach-s3c2440/s3c2440.c index d50f3ae6173d..f7663f731ea0 100644 --- a/arch/arm/mach-s3c2440/s3c2440.c +++ b/arch/arm/mach-s3c2440/s3c2440.c | |||
| @@ -46,9 +46,6 @@ int __init s3c2440_init(void) | |||
| 46 | { | 46 | { |
| 47 | printk("S3C2440: Initialising architecture\n"); | 47 | printk("S3C2440: Initialising architecture\n"); |
| 48 | 48 | ||
| 49 | s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1up; | ||
| 50 | s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1up; | ||
| 51 | |||
| 52 | /* change irq for watchdog */ | 49 | /* change irq for watchdog */ |
| 53 | 50 | ||
| 54 | s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT; | 51 | s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT; |
| @@ -58,3 +55,11 @@ int __init s3c2440_init(void) | |||
| 58 | 55 | ||
| 59 | return sysdev_register(&s3c2440_sysdev); | 56 | return sysdev_register(&s3c2440_sysdev); |
| 60 | } | 57 | } |
| 58 | |||
| 59 | void __init s3c2440_map_io(void) | ||
| 60 | { | ||
| 61 | s3c244x_map_io(); | ||
| 62 | |||
| 63 | s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1up; | ||
| 64 | s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1up; | ||
| 65 | } | ||
diff --git a/arch/arm/mach-s3c2440/s3c2442.c b/arch/arm/mach-s3c2440/s3c2442.c index 188ad1e57dc0..ecf813546554 100644 --- a/arch/arm/mach-s3c2440/s3c2442.c +++ b/arch/arm/mach-s3c2440/s3c2442.c | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | #include <linux/interrupt.h> | 32 | #include <linux/interrupt.h> |
| 33 | #include <linux/ioport.h> | 33 | #include <linux/ioport.h> |
| 34 | #include <linux/mutex.h> | 34 | #include <linux/mutex.h> |
| 35 | #include <linux/gpio.h> | ||
| 35 | #include <linux/clk.h> | 36 | #include <linux/clk.h> |
| 36 | #include <linux/io.h> | 37 | #include <linux/io.h> |
| 37 | 38 | ||
| @@ -43,6 +44,11 @@ | |||
| 43 | 44 | ||
| 44 | #include <plat/clock.h> | 45 | #include <plat/clock.h> |
| 45 | #include <plat/cpu.h> | 46 | #include <plat/cpu.h> |
| 47 | #include <plat/s3c244x.h> | ||
| 48 | |||
| 49 | #include <plat/gpio-core.h> | ||
| 50 | #include <plat/gpio-cfg.h> | ||
| 51 | #include <plat/gpio-cfg-helpers.h> | ||
| 46 | 52 | ||
| 47 | /* S3C2442 extended clock support */ | 53 | /* S3C2442 extended clock support */ |
| 48 | 54 | ||
| @@ -163,3 +169,11 @@ int __init s3c2442_init(void) | |||
| 163 | 169 | ||
| 164 | return sysdev_register(&s3c2442_sysdev); | 170 | return sysdev_register(&s3c2442_sysdev); |
| 165 | } | 171 | } |
| 172 | |||
| 173 | void __init s3c2442_map_io(void) | ||
| 174 | { | ||
| 175 | s3c244x_map_io(); | ||
| 176 | |||
| 177 | s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1down; | ||
| 178 | s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1down; | ||
| 179 | } | ||
diff --git a/arch/arm/mach-s3c2443/Kconfig b/arch/arm/mach-s3c2443/Kconfig index 4fef723126fa..31babec90cec 100644 --- a/arch/arm/mach-s3c2443/Kconfig +++ b/arch/arm/mach-s3c2443/Kconfig | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | config CPU_S3C2443 | 5 | config CPU_S3C2443 |
| 6 | bool | 6 | bool |
| 7 | depends on ARCH_S3C2410 | 7 | depends on ARCH_S3C2410 |
| 8 | select CPU_ARM920T | ||
| 8 | select S3C2443_DMA if S3C2410_DMA | 9 | select S3C2443_DMA if S3C2410_DMA |
| 9 | select CPU_LLSERIAL_S3C2440 | 10 | select CPU_LLSERIAL_S3C2440 |
| 10 | select SAMSUNG_CLKSRC | 11 | select SAMSUNG_CLKSRC |
diff --git a/arch/arm/plat-s3c24xx/cpu.c b/arch/arm/plat-s3c24xx/cpu.c index 76d0858c3cbb..4a10c0f684b2 100644 --- a/arch/arm/plat-s3c24xx/cpu.c +++ b/arch/arm/plat-s3c24xx/cpu.c | |||
| @@ -88,7 +88,7 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
| 88 | { | 88 | { |
| 89 | .idcode = 0x32440000, | 89 | .idcode = 0x32440000, |
| 90 | .idmask = 0xffffffff, | 90 | .idmask = 0xffffffff, |
| 91 | .map_io = s3c244x_map_io, | 91 | .map_io = s3c2440_map_io, |
| 92 | .init_clocks = s3c244x_init_clocks, | 92 | .init_clocks = s3c244x_init_clocks, |
| 93 | .init_uarts = s3c244x_init_uarts, | 93 | .init_uarts = s3c244x_init_uarts, |
| 94 | .init = s3c2440_init, | 94 | .init = s3c2440_init, |
| @@ -97,7 +97,7 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
| 97 | { | 97 | { |
| 98 | .idcode = 0x32440001, | 98 | .idcode = 0x32440001, |
| 99 | .idmask = 0xffffffff, | 99 | .idmask = 0xffffffff, |
| 100 | .map_io = s3c244x_map_io, | 100 | .map_io = s3c2440_map_io, |
| 101 | .init_clocks = s3c244x_init_clocks, | 101 | .init_clocks = s3c244x_init_clocks, |
| 102 | .init_uarts = s3c244x_init_uarts, | 102 | .init_uarts = s3c244x_init_uarts, |
| 103 | .init = s3c2440_init, | 103 | .init = s3c2440_init, |
| @@ -106,7 +106,7 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
| 106 | { | 106 | { |
| 107 | .idcode = 0x32440aaa, | 107 | .idcode = 0x32440aaa, |
| 108 | .idmask = 0xffffffff, | 108 | .idmask = 0xffffffff, |
| 109 | .map_io = s3c244x_map_io, | 109 | .map_io = s3c2442_map_io, |
| 110 | .init_clocks = s3c244x_init_clocks, | 110 | .init_clocks = s3c244x_init_clocks, |
| 111 | .init_uarts = s3c244x_init_uarts, | 111 | .init_uarts = s3c244x_init_uarts, |
| 112 | .init = s3c2442_init, | 112 | .init = s3c2442_init, |
| @@ -115,7 +115,7 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
| 115 | { | 115 | { |
| 116 | .idcode = 0x32440aab, | 116 | .idcode = 0x32440aab, |
| 117 | .idmask = 0xffffffff, | 117 | .idmask = 0xffffffff, |
| 118 | .map_io = s3c244x_map_io, | 118 | .map_io = s3c2442_map_io, |
| 119 | .init_clocks = s3c244x_init_clocks, | 119 | .init_clocks = s3c244x_init_clocks, |
| 120 | .init_uarts = s3c244x_init_uarts, | 120 | .init_uarts = s3c244x_init_uarts, |
| 121 | .init = s3c2442_init, | 121 | .init = s3c2442_init, |
diff --git a/arch/arm/plat-s3c24xx/gpiolib.c b/arch/arm/plat-s3c24xx/gpiolib.c index 24c6f5a30596..243b6411050d 100644 --- a/arch/arm/plat-s3c24xx/gpiolib.c +++ b/arch/arm/plat-s3c24xx/gpiolib.c | |||
| @@ -82,8 +82,6 @@ static struct s3c_gpio_cfg s3c24xx_gpiocfg_banka = { | |||
| 82 | struct s3c_gpio_cfg s3c24xx_gpiocfg_default = { | 82 | struct s3c_gpio_cfg s3c24xx_gpiocfg_default = { |
| 83 | .set_config = s3c_gpio_setcfg_s3c24xx, | 83 | .set_config = s3c_gpio_setcfg_s3c24xx, |
| 84 | .get_config = s3c_gpio_getcfg_s3c24xx, | 84 | .get_config = s3c_gpio_getcfg_s3c24xx, |
| 85 | .set_pull = s3c_gpio_setpull_1up, | ||
| 86 | .get_pull = s3c_gpio_getpull_1up, | ||
| 87 | }; | 85 | }; |
| 88 | 86 | ||
| 89 | struct s3c_gpio_chip s3c24xx_gpios[] = { | 87 | struct s3c_gpio_chip s3c24xx_gpios[] = { |
diff --git a/arch/arm/plat-s3c24xx/include/plat/s3c244x.h b/arch/arm/plat-s3c24xx/include/plat/s3c244x.h index 307248d1ccbb..89e8d0a25f87 100644 --- a/arch/arm/plat-s3c24xx/include/plat/s3c244x.h +++ b/arch/arm/plat-s3c24xx/include/plat/s3c244x.h | |||
| @@ -21,17 +21,22 @@ extern void s3c244x_init_clocks(int xtal); | |||
| 21 | #else | 21 | #else |
| 22 | #define s3c244x_init_clocks NULL | 22 | #define s3c244x_init_clocks NULL |
| 23 | #define s3c244x_init_uarts NULL | 23 | #define s3c244x_init_uarts NULL |
| 24 | #define s3c244x_map_io NULL | ||
| 25 | #endif | 24 | #endif |
| 26 | 25 | ||
| 27 | #ifdef CONFIG_CPU_S3C2440 | 26 | #ifdef CONFIG_CPU_S3C2440 |
| 28 | extern int s3c2440_init(void); | 27 | extern int s3c2440_init(void); |
| 28 | |||
| 29 | extern void s3c2440_map_io(void); | ||
| 29 | #else | 30 | #else |
| 30 | #define s3c2440_init NULL | 31 | #define s3c2440_init NULL |
| 32 | #define s3c2440_map_io NULL | ||
| 31 | #endif | 33 | #endif |
| 32 | 34 | ||
| 33 | #ifdef CONFIG_CPU_S3C2442 | 35 | #ifdef CONFIG_CPU_S3C2442 |
| 34 | extern int s3c2442_init(void); | 36 | extern int s3c2442_init(void); |
| 37 | |||
| 38 | extern void s3c2442_map_io(void); | ||
| 35 | #else | 39 | #else |
| 36 | #define s3c2442_init NULL | 40 | #define s3c2442_init NULL |
| 41 | #define s3c2442_map_io NULL | ||
| 37 | #endif | 42 | #endif |
diff --git a/arch/arm/plat-samsung/gpio-config.c b/arch/arm/plat-samsung/gpio-config.c index b732b773b9af..0aa32f242ee4 100644 --- a/arch/arm/plat-samsung/gpio-config.c +++ b/arch/arm/plat-samsung/gpio-config.c | |||
| @@ -280,18 +280,17 @@ s3c_gpio_pull_t s3c_gpio_getpull_updown(struct s3c_gpio_chip *chip, | |||
| 280 | } | 280 | } |
| 281 | #endif | 281 | #endif |
| 282 | 282 | ||
| 283 | #ifdef CONFIG_S3C_GPIO_PULL_UP | 283 | #if defined(CONFIG_S3C_GPIO_PULL_UP) || defined(CONFIG_S3C_GPIO_PULL_DOWN) |
| 284 | int s3c_gpio_setpull_1up(struct s3c_gpio_chip *chip, | 284 | static int s3c_gpio_setpull_1(struct s3c_gpio_chip *chip, |
| 285 | unsigned int off, s3c_gpio_pull_t pull) | 285 | unsigned int off, s3c_gpio_pull_t pull, |
| 286 | s3c_gpio_pull_t updown) | ||
| 286 | { | 287 | { |
| 287 | void __iomem *reg = chip->base + 0x08; | 288 | void __iomem *reg = chip->base + 0x08; |
| 288 | u32 pup = __raw_readl(reg); | 289 | u32 pup = __raw_readl(reg); |
| 289 | 290 | ||
| 290 | pup = __raw_readl(reg); | 291 | if (pull == updown) |
| 291 | |||
| 292 | if (pup == S3C_GPIO_PULL_UP) | ||
| 293 | pup &= ~(1 << off); | 292 | pup &= ~(1 << off); |
| 294 | else if (pup == S3C_GPIO_PULL_NONE) | 293 | else if (pull == S3C_GPIO_PULL_NONE) |
| 295 | pup |= (1 << off); | 294 | pup |= (1 << off); |
| 296 | else | 295 | else |
| 297 | return -EINVAL; | 296 | return -EINVAL; |
| @@ -300,17 +299,45 @@ int s3c_gpio_setpull_1up(struct s3c_gpio_chip *chip, | |||
| 300 | return 0; | 299 | return 0; |
| 301 | } | 300 | } |
| 302 | 301 | ||
| 303 | s3c_gpio_pull_t s3c_gpio_getpull_1up(struct s3c_gpio_chip *chip, | 302 | static s3c_gpio_pull_t s3c_gpio_getpull_1(struct s3c_gpio_chip *chip, |
| 304 | unsigned int off) | 303 | unsigned int off, s3c_gpio_pull_t updown) |
| 305 | { | 304 | { |
| 306 | void __iomem *reg = chip->base + 0x08; | 305 | void __iomem *reg = chip->base + 0x08; |
| 307 | u32 pup = __raw_readl(reg); | 306 | u32 pup = __raw_readl(reg); |
| 308 | 307 | ||
| 309 | pup &= (1 << off); | 308 | pup &= (1 << off); |
| 310 | return pup ? S3C_GPIO_PULL_NONE : S3C_GPIO_PULL_UP; | 309 | return pup ? S3C_GPIO_PULL_NONE : updown; |
| 310 | } | ||
| 311 | #endif /* CONFIG_S3C_GPIO_PULL_UP || CONFIG_S3C_GPIO_PULL_DOWN */ | ||
| 312 | |||
| 313 | #ifdef CONFIG_S3C_GPIO_PULL_UP | ||
| 314 | s3c_gpio_pull_t s3c_gpio_getpull_1up(struct s3c_gpio_chip *chip, | ||
| 315 | unsigned int off) | ||
| 316 | { | ||
| 317 | return s3c_gpio_getpull_1(chip, off, S3C_GPIO_PULL_UP); | ||
| 318 | } | ||
| 319 | |||
| 320 | int s3c_gpio_setpull_1up(struct s3c_gpio_chip *chip, | ||
| 321 | unsigned int off, s3c_gpio_pull_t pull) | ||
| 322 | { | ||
| 323 | return s3c_gpio_setpull_1(chip, off, pull, S3C_GPIO_PULL_UP); | ||
| 311 | } | 324 | } |
| 312 | #endif /* CONFIG_S3C_GPIO_PULL_UP */ | 325 | #endif /* CONFIG_S3C_GPIO_PULL_UP */ |
| 313 | 326 | ||
| 327 | #ifdef CONFIG_S3C_GPIO_PULL_DOWN | ||
| 328 | s3c_gpio_pull_t s3c_gpio_getpull_1down(struct s3c_gpio_chip *chip, | ||
| 329 | unsigned int off) | ||
| 330 | { | ||
| 331 | return s3c_gpio_getpull_1(chip, off, S3C_GPIO_PULL_DOWN); | ||
| 332 | } | ||
| 333 | |||
| 334 | int s3c_gpio_setpull_1down(struct s3c_gpio_chip *chip, | ||
| 335 | unsigned int off, s3c_gpio_pull_t pull) | ||
| 336 | { | ||
| 337 | return s3c_gpio_setpull_1(chip, off, pull, S3C_GPIO_PULL_DOWN); | ||
| 338 | } | ||
| 339 | #endif /* CONFIG_S3C_GPIO_PULL_DOWN */ | ||
| 340 | |||
| 314 | #ifdef CONFIG_S5P_GPIO_DRVSTR | 341 | #ifdef CONFIG_S5P_GPIO_DRVSTR |
| 315 | s5p_gpio_drvstr_t s5p_gpio_get_drvstr(unsigned int pin) | 342 | s5p_gpio_drvstr_t s5p_gpio_get_drvstr(unsigned int pin) |
| 316 | { | 343 | { |
diff --git a/arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h b/arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h index 8fd65d8b5863..0d2c5703f1ee 100644 --- a/arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h +++ b/arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h | |||
| @@ -210,6 +210,17 @@ extern s3c_gpio_pull_t s3c_gpio_getpull_1up(struct s3c_gpio_chip *chip, | |||
| 210 | unsigned int off); | 210 | unsigned int off); |
| 211 | 211 | ||
| 212 | /** | 212 | /** |
| 213 | * s3c_gpio_getpull_1down() - Get configuration for choice of down or none | ||
| 214 | * @chip: The gpio chip that the GPIO pin belongs to | ||
| 215 | * @off: The offset to the pin to get the configuration of. | ||
| 216 | * | ||
| 217 | * This helper function reads the state of the pull-down resistor for the | ||
| 218 | * given GPIO in the same case as s3c_gpio_setpull_1down. | ||
| 219 | */ | ||
| 220 | extern s3c_gpio_pull_t s3c_gpio_getpull_1down(struct s3c_gpio_chip *chip, | ||
| 221 | unsigned int off); | ||
| 222 | |||
| 223 | /** | ||
| 213 | * s3c_gpio_setpull_s3c2443() - Pull configuration for s3c2443. | 224 | * s3c_gpio_setpull_s3c2443() - Pull configuration for s3c2443. |
| 214 | * @chip: The gpio chip that is being configured. | 225 | * @chip: The gpio chip that is being configured. |
| 215 | * @off: The offset for the GPIO being configured. | 226 | * @off: The offset for the GPIO being configured. |
