linux/arch/arm/mach-s3c24xx
Linus Walleij c67d0f2926 ARM: s3c24xx: get rid of custom <mach/gpio.h>
This isolates the custom S3C24xx GPIO definition table to
<linux/platform_data/gpio-samsung-s3x24xx.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.

We also delete the nifty CONFIG_S3C24XX_GPIO_EXTRA stuff.
The biggest this can ever be for the S3C24XX is
CONFIG_S3C24XX_GPIO_EXTRA = 128, and then for CPU_S3C2443 or
CPU_S3C2416 32*12 GPIOs are added, so 32*12+128 = 512
is the absolute roof value on this platform. So we set
the size of ARCH_NR_GPIO to this and the GPIOs array will
fit any S3C24XX platform, as per pattern from other archs.

ChangeLog v2->v3:
- Move the movement of the S3C64XX gpio.h file out of
  this patch and into the follow-up patch where it belongs.
ChangeLog v1->v2:
- Added an #ifdef ARCH_S3C24XX around the header inclusion
  in drivers/gpio/gpio-samsung.c as we would otherwise
  have colliding definitions when compiling S3C64XX.
- Rename inclusion guard in the header file.

Cc: Tomasz Figa <tomasz.figa@gmail.com>
Cc: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: linux-samsung-soc@vger.kernel.org
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-12-20 18:19:26 +01:00
..
include/mach ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
anubis.h ARM: S3C24XX: make anubis-cpld, anubis-irq and anubis-map local 2013-01-10 10:45:34 -08:00
bast-ide.c ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
bast-irq.c ARM: S3C24XX: remove plat/irq.h in plat-samsung 2013-03-05 10:42:47 +09:00
bast.h ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
clock-dclk.c ARM: S3C24XX: Remove plat-s3c24xx directory in arch/arm/ 2013-02-03 16:17:10 -08:00
clock-s3c244x.c
clock-s3c2410.c ARM: SAMSUNG: Remove pwm-clock infrastructure 2013-08-12 21:53:24 +02:00
clock-s3c2412.c ARM: S3C24XX: number the dma clocks 2013-10-08 06:42:10 +09:00
clock-s3c2416.c ARM: SAMSUNG: Remove pwm-clock infrastructure 2013-08-12 21:53:24 +02:00
clock-s3c2440.c ARM: S3C24XX: Add missing clkdev entries for s3c2440 UART 2013-07-24 13:23:51 +09:00
clock-s3c2443.c ARM: SAMSUNG: Remove pwm-clock infrastructure 2013-08-12 21:53:24 +02:00
common-s3c2443.c ARM: S3C24XX: number the dma clocks 2013-10-08 06:42:10 +09:00
common-smdk.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
common-smdk.h ARM: S3C24XX: plat/common-smdk.h local 2013-03-05 10:42:47 +09:00
common.c ARM: S3C24XX: add dma pdata for s3c2410, s3c2440 and s3c2442 2013-10-21 05:32:48 +09:00
common.h ARM: S3C24XX: add dma pdata for s3c2410, s3c2440 and s3c2442 2013-10-21 05:32:48 +09:00
cpufreq-utils.c cpufreq: rename index as driver_data in cpufreq_frequency_table 2013-06-04 14:25:59 +02:00
dma-s3c2410.c sound updates for v3.10-rc1 2013-05-03 09:10:23 -07:00
dma-s3c2412.c ARM: S3C24XX: remove obsolete s3c2412 specific dma settings 2013-05-21 01:01:41 +09:00
dma-s3c2440.c sound updates for v3.10-rc1 2013-05-03 09:10:23 -07:00
dma-s3c2443.c ARM: S3C24XX: dma-s3c2443 - do not write into arbitary bits 2013-05-21 01:01:37 +09:00
dma.c ARM: S3C24XX: remove obsolete s3c2412 specific dma settings 2013-05-21 01:01:41 +09:00
gta02.h ARM: S3C24XX: make gta02.h local 2013-01-10 10:45:35 -08:00
h1940-bluetooth.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
h1940.h ARM: S3C24XX: make h1940.h and h1940-latch.h local 2013-01-10 10:45:35 -08:00
iotiming-s3c2410.c ARM: S3C24XX: header mach/regs-mem.h local 2013-02-04 10:31:43 -08:00
iotiming-s3c2412.c cpufreq: s3c24xx: move cpufreq driver to drivers/cpufreq 2013-05-20 23:04:28 +09:00
irq-pm.c ARM: S3C24XX: remove plat/irq.h in plat-samsung 2013-03-05 10:42:47 +09:00
Kconfig ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-amlm5900.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-anubis.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-at2440evb.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-bast.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-gta02.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-h1940.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-jive.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-mini2440.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-n30.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-nexcoder.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-osiris-dvs.c ARM: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
mach-osiris.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-otom.c ARM: S3C24XX: move s3c24xx_init_irq to s3c2410_init_irq 2013-03-07 12:38:19 +09:00
mach-qt2410.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-rx1950.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-rx3715.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-s3c2416-dt.c ARM: S3C24XX: update uart addresses in s3c2416-dt auxdata 2013-06-19 02:40:18 +09:00
mach-smdk2410.c ARM: S3C24XX: move s3c24xx_init_irq to s3c2410_init_irq 2013-03-07 12:38:19 +09:00
mach-smdk2413.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-smdk2416.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-smdk2440.c ARM: S3C24XX: create dedicated irq init functions for s3c2440 and s3c2442 2013-03-05 20:20:33 +09:00
mach-smdk2443.c ARM: S3C24XX: add platform-devices for new dma driver for s3c2412 and s3c2443 2013-10-08 06:42:10 +09:00
mach-tct_hammer.c ARM: S3C24XX: move s3c24xx_init_irq to s3c2410_init_irq 2013-03-07 12:38:19 +09:00
mach-vr1000.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
mach-vstms.c ARM: S3C24XX: add platform-devices for new dma driver for s3c2412 and s3c2443 2013-10-08 06:42:10 +09:00
Makefile Merge branches 'samsung/exynos-dt2' and 'samsung/s3c24xx-dt2' into next/drivers 2013-06-20 22:27:21 +02:00
Makefile.boot
osiris.h ARM: S3C24XX: make osiris-cpld.h and osiris-map.h local 2013-01-10 10:45:36 -08:00
otom.h ARM: S3C24XX: make otom-map.h local 2013-01-10 10:45:36 -08:00
pll-s3c2410.c cpufreq: rename index as driver_data in cpufreq_frequency_table 2013-06-04 14:25:59 +02:00
pll-s3c2440-12000000.c cpufreq: rename index as driver_data in cpufreq_frequency_table 2013-06-04 14:25:59 +02:00
pll-s3c2440-16934400.c cpufreq: rename index as driver_data in cpufreq_frequency_table 2013-06-04 14:25:59 +02:00
pm-h1940.S ARM: samsung: fix assembly syntax for new gas 2013-02-14 15:04:34 +01:00
pm-s3c2410.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
pm-s3c2412.c ARM: S3C24XX: use samsung_sync_wakemask in s3c2412 pm 2013-03-05 20:20:59 +09:00
pm-s3c2416.c arm-soc: cleanups 2013-02-21 14:58:40 -08:00
pm.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
regs-dsc.h ARM: S3C24XX: Remove unused GPIO drive strength register definitions 2013-04-08 21:37:07 +09:00
regs-mem.h ARM: S3C24XX: header mach/regs-mem.h local 2013-02-04 10:31:43 -08:00
s3c244x.c reboot: arm: change reboot_mode to use enum reboot_mode 2013-07-09 10:33:29 -07:00
s3c2410.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
s3c2412-power.h ARM: S3C24XX: header mach/regs-power.h local 2013-02-04 10:31:39 -08:00
s3c2412.c reboot: arm: change reboot_mode to use enum reboot_mode 2013-07-09 10:33:29 -07:00
s3c2416.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
s3c2440.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
s3c2442.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
s3c2443.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
setup-i2c.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
setup-sdhci-gpio.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
setup-spi.c ARM: SAMSUNG: Remove pdev pointer parameter from spi gpio setup functions 2012-07-13 15:23:46 +09:00
setup-ts.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
simtec-audio.c ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
simtec-nor.c ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local 2013-01-10 10:45:35 -08:00
simtec-pm.c ARM: S3C24XX: header mach/regs-mem.h local 2013-02-04 10:31:43 -08:00
simtec-usb.c ARM: s3c24xx: get rid of custom <mach/gpio.h> 2013-12-20 18:19:26 +01:00
simtec.h
sleep-s3c2410.S arm-soc: cleanups 2013-02-21 14:58:40 -08:00
sleep-s3c2412.S ARM: samsung: fix assembly syntax for new gas 2013-02-14 15:04:34 +01:00
sleep.S ARM: S3C24XX: header mach/regs-mem.h local 2013-02-04 10:31:43 -08:00
vr1000.h ARM: S3C24XX: make vr1000-cpld.h, vr1000-irq.h and vr1000-map.h local 2013-01-10 10:45:37 -08:00