41c3548e6d
This isolates the custom S3C64xx GPIO definition table to <linux/platform_data/gpio-samsung-s3x64xx.h> as this is used in a few different places in the kernel, removing the need to depend on the implicit inclusion of <mach/gpio.h> from <linux/gpio.h> and thus getting rid of a few nasty cross-dependencies. Also delete the CONFIG_SAMSUNG_GPIO_EXTRA stuff. Instead roof the number of GPIOs for this platform: First sum up all the GPIO banks from A to Q: 187 GPIOs. Add the 16 "board GPIOs" and the roof for SAMSUNG_GPIO_EXTRA, 128, so in total maximum 187+16+128 = 331 GPIOs, so let's take the same roof as for S3C24XX: 512. This way we can do away with the GPIO calculation macros for GPIO_BOARD_START, BOARD_NR_GPIOS and the definition of ARCH_NR_GPIOS. Cc: Mark Brown <broonie@kernel.org> [on Mini6410 board] Tested-by: Tomasz Figa <t.figa@samsung.com> [for changes in mach-s3c64xx] Acked-by: Tomasz Figa <t.figa@samsung.com> Tested-by: Mark Brown <broonie@linaro.org> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
||
---|---|---|
.. | ||
include/mach | ||
common.c | ||
common.h | ||
cpuidle.c | ||
crag6410.h | ||
dev-audio.c | ||
dev-uart.c | ||
dma.c | ||
irq-pm.c | ||
Kconfig | ||
mach-anw6410.c | ||
mach-crag6410-module.c | ||
mach-crag6410.c | ||
mach-hmt.c | ||
mach-mini6410.c | ||
mach-ncp.c | ||
mach-real6410.c | ||
mach-s3c64xx-dt.c | ||
mach-smartq5.c | ||
mach-smartq7.c | ||
mach-smartq.c | ||
mach-smartq.h | ||
mach-smdk6400.c | ||
mach-smdk6410.c | ||
Makefile | ||
Makefile.boot | ||
pm.c | ||
regs-gpio-memport.h | ||
regs-modem.h | ||
regs-srom.h | ||
regs-sys.h | ||
regs-syscon-power.h | ||
s3c6400.c | ||
s3c6410.c | ||
setup-fb-24bpp.c | ||
setup-i2c0.c | ||
setup-i2c1.c | ||
setup-ide.c | ||
setup-keypad.c | ||
setup-sdhci-gpio.c | ||
setup-spi.c | ||
setup-usb-phy.c | ||
sleep.S |