OpenCloudOS-Kernel/arch/arm/plat-s3c24xx/include/plat
Vasily Khoruzhick 812c4e40c2 ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks
Currently the {set,get}_pull callbacks of the s3c24xx_gpiocfg_default structure
are initalized via s3c_gpio_{get,set}pull_1up. This results in a linker
error when only CONFIG_CPU_S3C2442 is selected:

arch/arm/plat-s3c24xx/built-in.o:(.data+0x13f4): undefined reference to
`s3c_gpio_getpull_1up'
arch/arm/plat-s3c24xx/built-in.o:(.data+0x13f8): undefined reference to
`s3c_gpio_setpull_1up'

The s3c2442 has pulldowns instead of pullups compared to the s3c2440.
The method of controlling them is the same though.
So this patch modifies the existing s3c_gpio_{get,set}pull_1up helper functions
to take an additional parameter deciding whether the pin has a pullup or pulldown.
The s3c_gpio_{get,set}pull_1{down,up} functions then wrap that functions passing
either S3C_GPIO_PULL_UP or S3C_GPIO_PULL_DOWN.

Furthermore this patch sets up the s3c24xx_gpiocfg_default.{get,set}_pull fields
in the s3c244{0,2}_map_io function to the new pulldown helper functions.

Based on patch from "Lars-Peter Clausen" <lars@metafoo.de>

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2010-12-08 01:04:56 +00:00
..
audio-simtec.h ARM: S3C24XX: Move audio-simtec.h to plat-s3c24xx 2010-02-24 01:52:11 +00:00
common-smdk.h [ARM] S3C24XX: Additional include moves 2008-10-07 23:09:51 +01:00
cpu-freq-core.h tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
fiq.h ARM: S3C24XX: Add FIQ IRQ routing support 2009-08-14 01:13:28 +01:00
irq.h [ARM] S3C: Make IRQ_EINT sleep control common 2009-03-08 12:35:36 +00:00
map.h tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
mci.h ARM: S3C24XX: Add mci platform data set call s3c24xx_mci_set_platdata(). 2010-01-19 17:21:38 +09:00
pll.h ARM: S3C2416: Add basic clock support 2010-05-10 11:44:43 +09:00
regs-dma.h ARM: S3C: Update Simtec copyright statements from , to - [2] 2009-12-01 01:33:51 +00:00
regs-iis.h S3C24XX: Move and update IIS headers 2009-03-05 12:00:59 +00:00
regs-spi.h [ARM] S3C: Move plat/regs-spi.h to arch/arm/plat-s3c/include/plat. 2008-10-30 10:17:15 +00:00
regs-udc.h [ARM] S3C24XX: Movev udc headers to arch/arm/plat-s3c24xx/include/plat 2008-10-30 10:17:15 +00:00
s3c244x.h ARM: S3C24XX: Fix mess with gpio {set,get}_pull callbacks 2010-12-08 01:04:56 +00:00
s3c2400.h [ARM] S3C24XX: Move initialisation code to arch/arm/plat-s3c 2008-12-15 21:45:57 +00:00
s3c2410.h ARM: S3C24XX: Define a macro to avoid compilation error 2009-10-28 18:25:56 +00:00
s3c2412.h [ARM] S3C24XX: Move initialisation code to arch/arm/plat-s3c 2008-12-15 21:45:57 +00:00
s3c2416.h ARM: S3C2416: Add arch support 2010-05-10 11:44:39 +09:00
s3c2443.h ARM: S3C2443: Move parts of the clock code to common clock file 2010-05-10 11:44:42 +09:00
udc.h [ARM] S3C24XX: Movev udc headers to arch/arm/plat-s3c24xx/include/plat 2008-10-30 10:17:15 +00:00