diff options
40 files changed, 41 insertions, 41 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 245058b3b0ef..f5d9ef9c11b7 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -769,7 +769,6 @@ config ARCH_S5P64X0 | |||
769 | select HAVE_S3C2410_I2C if I2C | 769 | select HAVE_S3C2410_I2C if I2C |
770 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 770 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
771 | select HAVE_S3C_RTC if RTC_CLASS | 771 | select HAVE_S3C_RTC if RTC_CLASS |
772 | select NEED_MACH_GPIO_H | ||
773 | select SAMSUNG_ATAGS | 772 | select SAMSUNG_ATAGS |
774 | select SAMSUNG_WDT_RESET | 773 | select SAMSUNG_WDT_RESET |
775 | help | 774 | help |
@@ -788,7 +787,6 @@ config ARCH_S5PC100 | |||
788 | select HAVE_S3C2410_I2C if I2C | 787 | select HAVE_S3C2410_I2C if I2C |
789 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 788 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
790 | select HAVE_S3C_RTC if RTC_CLASS | 789 | select HAVE_S3C_RTC if RTC_CLASS |
791 | select NEED_MACH_GPIO_H | ||
792 | select SAMSUNG_ATAGS | 790 | select SAMSUNG_ATAGS |
793 | select SAMSUNG_WDT_RESET | 791 | select SAMSUNG_WDT_RESET |
794 | help | 792 | help |
@@ -807,7 +805,6 @@ config ARCH_S5PV210 | |||
807 | select HAVE_S3C2410_I2C if I2C | 805 | select HAVE_S3C2410_I2C if I2C |
808 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 806 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
809 | select HAVE_S3C_RTC if RTC_CLASS | 807 | select HAVE_S3C_RTC if RTC_CLASS |
810 | select NEED_MACH_GPIO_H | ||
811 | select NEED_MACH_MEMORY_H | 808 | select NEED_MACH_MEMORY_H |
812 | select SAMSUNG_ATAGS | 809 | select SAMSUNG_ATAGS |
813 | help | 810 | help |
diff --git a/arch/arm/mach-s5p64x0/common.c b/arch/arm/mach-s5p64x0/common.c index 9a43be002d78..b56ffbd7cefe 100644 --- a/arch/arm/mach-s5p64x0/common.c +++ b/arch/arm/mach-s5p64x0/common.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
25 | #include <linux/sched.h> | 25 | #include <linux/sched.h> |
26 | #include <linux/dma-mapping.h> | 26 | #include <linux/dma-mapping.h> |
27 | #include <linux/gpio.h> | ||
28 | #include <linux/irq.h> | 27 | #include <linux/irq.h> |
29 | #include <linux/reboot.h> | 28 | #include <linux/reboot.h> |
30 | 29 | ||
@@ -39,6 +38,7 @@ | |||
39 | #include <mach/hardware.h> | 38 | #include <mach/hardware.h> |
40 | #include <mach/regs-clock.h> | 39 | #include <mach/regs-clock.h> |
41 | #include <mach/regs-gpio.h> | 40 | #include <mach/regs-gpio.h> |
41 | #include <mach/gpio-samsung.h> | ||
42 | 42 | ||
43 | #include <plat/cpu.h> | 43 | #include <plat/cpu.h> |
44 | #include <plat/clock.h> | 44 | #include <plat/clock.h> |
diff --git a/arch/arm/mach-s5p64x0/dev-audio.c b/arch/arm/mach-s5p64x0/dev-audio.c index 723d4773c323..ea4a22822595 100644 --- a/arch/arm/mach-s5p64x0/dev-audio.c +++ b/arch/arm/mach-s5p64x0/dev-audio.c | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | #include <linux/platform_device.h> | 11 | #include <linux/platform_device.h> |
12 | #include <linux/dma-mapping.h> | 12 | #include <linux/dma-mapping.h> |
13 | #include <linux/gpio.h> | ||
14 | 13 | ||
15 | #include <plat/gpio-cfg.h> | 14 | #include <plat/gpio-cfg.h> |
16 | #include <linux/platform_data/asoc-s3c.h> | 15 | #include <linux/platform_data/asoc-s3c.h> |
@@ -18,6 +17,8 @@ | |||
18 | #include <mach/map.h> | 17 | #include <mach/map.h> |
19 | #include <mach/dma.h> | 18 | #include <mach/dma.h> |
20 | #include <mach/irqs.h> | 19 | #include <mach/irqs.h> |
20 | #include <mach/gpio-samsung.h> | ||
21 | |||
21 | 22 | ||
22 | static int s5p6440_cfg_i2s(struct platform_device *pdev) | 23 | static int s5p6440_cfg_i2s(struct platform_device *pdev) |
23 | { | 24 | { |
diff --git a/arch/arm/mach-s5p64x0/include/mach/gpio.h b/arch/arm/mach-s5p64x0/include/mach/gpio-samsung.h index cbd325e14477..fec01a4e6463 100644 --- a/arch/arm/mach-s5p64x0/include/mach/gpio.h +++ b/arch/arm/mach-s5p64x0/include/mach/gpio-samsung.h | |||
@@ -1,5 +1,4 @@ | |||
1 | /* linux/arch/arm/mach-s5p64x0/include/mach/gpio.h | 1 | /* |
2 | * | ||
3 | * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. | 2 | * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. |
4 | * http://www.samsung.com | 3 | * http://www.samsung.com |
5 | * | 4 | * |
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6440.c b/arch/arm/mach-s5p64x0/mach-smdk6440.c index 6840e197cb2d..037318867459 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6440.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6440.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <mach/map.h> | 39 | #include <mach/map.h> |
40 | #include <mach/regs-clock.h> | 40 | #include <mach/regs-clock.h> |
41 | #include <mach/regs-gpio.h> | 41 | #include <mach/regs-gpio.h> |
42 | #include <mach/gpio-samsung.h> | ||
42 | 43 | ||
43 | #include <plat/gpio-cfg.h> | 44 | #include <plat/gpio-cfg.h> |
44 | #include <plat/clock.h> | 45 | #include <plat/clock.h> |
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6450.c b/arch/arm/mach-s5p64x0/mach-smdk6450.c index fa1341c074ca..e191d9019beb 100644 --- a/arch/arm/mach-s5p64x0/mach-smdk6450.c +++ b/arch/arm/mach-s5p64x0/mach-smdk6450.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <mach/map.h> | 39 | #include <mach/map.h> |
40 | #include <mach/regs-clock.h> | 40 | #include <mach/regs-clock.h> |
41 | #include <mach/regs-gpio.h> | 41 | #include <mach/regs-gpio.h> |
42 | #include <mach/gpio-samsung.h> | ||
42 | 43 | ||
43 | #include <plat/gpio-cfg.h> | 44 | #include <plat/gpio-cfg.h> |
44 | #include <plat/clock.h> | 45 | #include <plat/clock.h> |
diff --git a/arch/arm/mach-s5p64x0/setup-fb-24bpp.c b/arch/arm/mach-s5p64x0/setup-fb-24bpp.c index f346ee4af54d..37252bece7d4 100644 --- a/arch/arm/mach-s5p64x0/setup-fb-24bpp.c +++ b/arch/arm/mach-s5p64x0/setup-fb-24bpp.c | |||
@@ -11,11 +11,11 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/fb.h> | 13 | #include <linux/fb.h> |
14 | #include <linux/gpio.h> | ||
15 | 14 | ||
16 | #include <plat/cpu.h> | 15 | #include <plat/cpu.h> |
17 | #include <plat/fb.h> | 16 | #include <plat/fb.h> |
18 | #include <plat/gpio-cfg.h> | 17 | #include <plat/gpio-cfg.h> |
18 | #include <mach/gpio-samsung.h> | ||
19 | 19 | ||
20 | void s5p64x0_fb_gpio_setup_24bpp(void) | 20 | void s5p64x0_fb_gpio_setup_24bpp(void) |
21 | { | 21 | { |
diff --git a/arch/arm/mach-s5p64x0/setup-i2c0.c b/arch/arm/mach-s5p64x0/setup-i2c0.c index 569b76ac98cb..7589eb33624e 100644 --- a/arch/arm/mach-s5p64x0/setup-i2c0.c +++ b/arch/arm/mach-s5p64x0/setup-i2c0.c | |||
@@ -14,11 +14,11 @@ | |||
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/gpio.h> | ||
18 | 17 | ||
19 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
20 | 19 | ||
21 | #include <plat/gpio-cfg.h> | 20 | #include <plat/gpio-cfg.h> |
21 | #include <mach/gpio-samsung.h> | ||
22 | #include <linux/platform_data/i2c-s3c2410.h> | 22 | #include <linux/platform_data/i2c-s3c2410.h> |
23 | 23 | ||
24 | #include "i2c.h" | 24 | #include "i2c.h" |
diff --git a/arch/arm/mach-s5p64x0/setup-i2c1.c b/arch/arm/mach-s5p64x0/setup-i2c1.c index 867374e6d0bc..f7a949b3bc55 100644 --- a/arch/arm/mach-s5p64x0/setup-i2c1.c +++ b/arch/arm/mach-s5p64x0/setup-i2c1.c | |||
@@ -14,11 +14,11 @@ | |||
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/gpio.h> | ||
18 | 17 | ||
19 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
20 | 19 | ||
21 | #include <plat/gpio-cfg.h> | 20 | #include <plat/gpio-cfg.h> |
21 | #include <mach/gpio-samsung.h> | ||
22 | #include <linux/platform_data/i2c-s3c2410.h> | 22 | #include <linux/platform_data/i2c-s3c2410.h> |
23 | 23 | ||
24 | #include "i2c.h" | 24 | #include "i2c.h" |
diff --git a/arch/arm/mach-s5p64x0/setup-sdhci-gpio.c b/arch/arm/mach-s5p64x0/setup-sdhci-gpio.c index 8410af0d12bf..c09c5834e2fd 100644 --- a/arch/arm/mach-s5p64x0/setup-sdhci-gpio.c +++ b/arch/arm/mach-s5p64x0/setup-sdhci-gpio.c | |||
@@ -12,10 +12,10 @@ | |||
12 | 12 | ||
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/gpio.h> | ||
16 | 15 | ||
17 | #include <mach/regs-gpio.h> | 16 | #include <mach/regs-gpio.h> |
18 | #include <mach/regs-clock.h> | 17 | #include <mach/regs-clock.h> |
18 | #include <mach/gpio-samsung.h> | ||
19 | 19 | ||
20 | #include <plat/gpio-cfg.h> | 20 | #include <plat/gpio-cfg.h> |
21 | #include <plat/sdhci.h> | 21 | #include <plat/sdhci.h> |
diff --git a/arch/arm/mach-s5p64x0/setup-spi.c b/arch/arm/mach-s5p64x0/setup-spi.c index 7664356720ca..d19d1102e28c 100644 --- a/arch/arm/mach-s5p64x0/setup-spi.c +++ b/arch/arm/mach-s5p64x0/setup-spi.c | |||
@@ -8,8 +8,8 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/gpio.h> | ||
12 | #include <plat/gpio-cfg.h> | 11 | #include <plat/gpio-cfg.h> |
12 | #include <mach/gpio-samsung.h> | ||
13 | 13 | ||
14 | #ifdef CONFIG_S3C64XX_DEV_SPI0 | 14 | #ifdef CONFIG_S3C64XX_DEV_SPI0 |
15 | int s3c64xx_spi0_cfg_gpio(void) | 15 | int s3c64xx_spi0_cfg_gpio(void) |
diff --git a/arch/arm/mach-s5pc100/dev-audio.c b/arch/arm/mach-s5pc100/dev-audio.c index 46f488b09391..d24f653cc0cf 100644 --- a/arch/arm/mach-s5pc100/dev-audio.c +++ b/arch/arm/mach-s5pc100/dev-audio.c | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | #include <linux/platform_device.h> | 11 | #include <linux/platform_device.h> |
12 | #include <linux/dma-mapping.h> | 12 | #include <linux/dma-mapping.h> |
13 | #include <linux/gpio.h> | ||
14 | 13 | ||
15 | #include <plat/gpio-cfg.h> | 14 | #include <plat/gpio-cfg.h> |
16 | #include <linux/platform_data/asoc-s3c.h> | 15 | #include <linux/platform_data/asoc-s3c.h> |
@@ -18,6 +17,7 @@ | |||
18 | #include <mach/map.h> | 17 | #include <mach/map.h> |
19 | #include <mach/dma.h> | 18 | #include <mach/dma.h> |
20 | #include <mach/irqs.h> | 19 | #include <mach/irqs.h> |
20 | #include <mach/gpio-samsung.h> | ||
21 | 21 | ||
22 | static int s5pc100_cfg_i2s(struct platform_device *pdev) | 22 | static int s5pc100_cfg_i2s(struct platform_device *pdev) |
23 | { | 23 | { |
diff --git a/arch/arm/mach-s5pc100/include/mach/gpio.h b/arch/arm/mach-s5pc100/include/mach/gpio-samsung.h index 291c57504bab..fa239e9378f1 100644 --- a/arch/arm/mach-s5pc100/include/mach/gpio.h +++ b/arch/arm/mach-s5pc100/include/mach/gpio-samsung.h | |||
@@ -1,5 +1,4 @@ | |||
1 | /* arch/arm/mach-s5pc100/include/mach/gpio.h | 1 | /* |
2 | * | ||
3 | * Copyright 2009 Samsung Electronics Co. | 2 | * Copyright 2009 Samsung Electronics Co. |
4 | * Byungho Min <bhmin@samsung.com> | 3 | * Byungho Min <bhmin@samsung.com> |
5 | * | 4 | * |
diff --git a/arch/arm/mach-s5pc100/mach-smdkc100.c b/arch/arm/mach-s5pc100/mach-smdkc100.c index 668af3ac31f3..0710139b52eb 100644 --- a/arch/arm/mach-s5pc100/mach-smdkc100.c +++ b/arch/arm/mach-s5pc100/mach-smdkc100.c | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #include <mach/map.h> | 32 | #include <mach/map.h> |
33 | #include <mach/regs-gpio.h> | 33 | #include <mach/regs-gpio.h> |
34 | #include <mach/gpio-samsung.h> | ||
34 | 35 | ||
35 | #include <video/platform_lcd.h> | 36 | #include <video/platform_lcd.h> |
36 | #include <video/samsung_fimd.h> | 37 | #include <video/samsung_fimd.h> |
diff --git a/arch/arm/mach-s5pc100/setup-fb-24bpp.c b/arch/arm/mach-s5pc100/setup-fb-24bpp.c index 8978e4cf9ed5..64362e354eba 100644 --- a/arch/arm/mach-s5pc100/setup-fb-24bpp.c +++ b/arch/arm/mach-s5pc100/setup-fb-24bpp.c | |||
@@ -13,9 +13,9 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/types.h> | 14 | #include <linux/types.h> |
15 | #include <linux/fb.h> | 15 | #include <linux/fb.h> |
16 | #include <linux/gpio.h> | ||
17 | 16 | ||
18 | #include <mach/map.h> | 17 | #include <mach/map.h> |
18 | #include <mach/gpio-samsung.h> | ||
19 | #include <plat/fb.h> | 19 | #include <plat/fb.h> |
20 | #include <plat/gpio-cfg.h> | 20 | #include <plat/gpio-cfg.h> |
21 | 21 | ||
diff --git a/arch/arm/mach-s5pc100/setup-i2c0.c b/arch/arm/mach-s5pc100/setup-i2c0.c index 89a6a769d622..4911bcba3932 100644 --- a/arch/arm/mach-s5pc100/setup-i2c0.c +++ b/arch/arm/mach-s5pc100/setup-i2c0.c | |||
@@ -17,9 +17,9 @@ | |||
17 | 17 | ||
18 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
19 | 19 | ||
20 | #include <linux/gpio.h> | ||
21 | #include <linux/platform_data/i2c-s3c2410.h> | 20 | #include <linux/platform_data/i2c-s3c2410.h> |
22 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
22 | #include <mach/gpio-samsung.h> | ||
23 | 23 | ||
24 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) | 24 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-s5pc100/setup-i2c1.c b/arch/arm/mach-s5pc100/setup-i2c1.c index faa667ef02cb..421e50a88117 100644 --- a/arch/arm/mach-s5pc100/setup-i2c1.c +++ b/arch/arm/mach-s5pc100/setup-i2c1.c | |||
@@ -17,9 +17,9 @@ | |||
17 | 17 | ||
18 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
19 | 19 | ||
20 | #include <linux/gpio.h> | ||
21 | #include <linux/platform_data/i2c-s3c2410.h> | 20 | #include <linux/platform_data/i2c-s3c2410.h> |
22 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
22 | #include <mach/gpio-samsung.h> | ||
23 | 23 | ||
24 | void s3c_i2c1_cfg_gpio(struct platform_device *dev) | 24 | void s3c_i2c1_cfg_gpio(struct platform_device *dev) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-s5pc100/setup-ide.c b/arch/arm/mach-s5pc100/setup-ide.c index 223aae044466..22470793b33b 100644 --- a/arch/arm/mach-s5pc100/setup-ide.c +++ b/arch/arm/mach-s5pc100/setup-ide.c | |||
@@ -11,11 +11,11 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/gpio.h> | ||
15 | #include <linux/io.h> | 14 | #include <linux/io.h> |
16 | 15 | ||
17 | #include <mach/regs-clock.h> | 16 | #include <mach/regs-clock.h> |
18 | #include <plat/gpio-cfg.h> | 17 | #include <plat/gpio-cfg.h> |
18 | #include <mach/gpio-samsung.h> | ||
19 | 19 | ||
20 | static void s5pc100_ide_cfg_gpios(unsigned int base, unsigned int nr) | 20 | static void s5pc100_ide_cfg_gpios(unsigned int base, unsigned int nr) |
21 | { | 21 | { |
diff --git a/arch/arm/mach-s5pc100/setup-keypad.c b/arch/arm/mach-s5pc100/setup-keypad.c index ada377f0c206..57dc9d3219dc 100644 --- a/arch/arm/mach-s5pc100/setup-keypad.c +++ b/arch/arm/mach-s5pc100/setup-keypad.c | |||
@@ -10,8 +10,8 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/gpio.h> | ||
14 | #include <plat/gpio-cfg.h> | 13 | #include <plat/gpio-cfg.h> |
14 | #include <mach/gpio-samsung.h> | ||
15 | 15 | ||
16 | void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols) | 16 | void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols) |
17 | { | 17 | { |
diff --git a/arch/arm/mach-s5pc100/setup-sdhci-gpio.c b/arch/arm/mach-s5pc100/setup-sdhci-gpio.c index 6010c0310cb5..c5b4ca0e5217 100644 --- a/arch/arm/mach-s5pc100/setup-sdhci-gpio.c +++ b/arch/arm/mach-s5pc100/setup-sdhci-gpio.c | |||
@@ -14,12 +14,12 @@ | |||
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <linux/gpio.h> | ||
18 | #include <linux/mmc/host.h> | 17 | #include <linux/mmc/host.h> |
19 | #include <linux/mmc/card.h> | 18 | #include <linux/mmc/card.h> |
20 | 19 | ||
21 | #include <plat/gpio-cfg.h> | 20 | #include <plat/gpio-cfg.h> |
22 | #include <plat/sdhci.h> | 21 | #include <plat/sdhci.h> |
22 | #include <mach/gpio-samsung.h> | ||
23 | 23 | ||
24 | void s5pc100_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) | 24 | void s5pc100_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-s5pc100/setup-spi.c b/arch/arm/mach-s5pc100/setup-spi.c index 183567961de1..1bb26657b513 100644 --- a/arch/arm/mach-s5pc100/setup-spi.c +++ b/arch/arm/mach-s5pc100/setup-spi.c | |||
@@ -8,8 +8,8 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/gpio.h> | ||
12 | #include <plat/gpio-cfg.h> | 11 | #include <plat/gpio-cfg.h> |
12 | #include <mach/gpio-samsung.h> | ||
13 | 13 | ||
14 | #ifdef CONFIG_S3C64XX_DEV_SPI0 | 14 | #ifdef CONFIG_S3C64XX_DEV_SPI0 |
15 | int s3c64xx_spi0_cfg_gpio(void) | 15 | int s3c64xx_spi0_cfg_gpio(void) |
diff --git a/arch/arm/mach-s5pv210/dev-audio.c b/arch/arm/mach-s5pv210/dev-audio.c index 2d67361ef431..90356ad10c54 100644 --- a/arch/arm/mach-s5pv210/dev-audio.c +++ b/arch/arm/mach-s5pv210/dev-audio.c | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | #include <linux/platform_device.h> | 11 | #include <linux/platform_device.h> |
12 | #include <linux/dma-mapping.h> | 12 | #include <linux/dma-mapping.h> |
13 | #include <linux/gpio.h> | ||
14 | 13 | ||
15 | #include <plat/gpio-cfg.h> | 14 | #include <plat/gpio-cfg.h> |
16 | #include <linux/platform_data/asoc-s3c.h> | 15 | #include <linux/platform_data/asoc-s3c.h> |
@@ -18,6 +17,7 @@ | |||
18 | #include <mach/map.h> | 17 | #include <mach/map.h> |
19 | #include <mach/dma.h> | 18 | #include <mach/dma.h> |
20 | #include <mach/irqs.h> | 19 | #include <mach/irqs.h> |
20 | #include <mach/gpio-samsung.h> | ||
21 | 21 | ||
22 | #define S5PV210_AUDSS_INT_MEM (0xC0000000) | 22 | #define S5PV210_AUDSS_INT_MEM (0xC0000000) |
23 | 23 | ||
diff --git a/arch/arm/mach-s5pv210/include/mach/gpio.h b/arch/arm/mach-s5pv210/include/mach/gpio-samsung.h index e6f80d57c38e..e193b891e7b2 100644 --- a/arch/arm/mach-s5pv210/include/mach/gpio.h +++ b/arch/arm/mach-s5pv210/include/mach/gpio-samsung.h | |||
@@ -1,5 +1,4 @@ | |||
1 | /* linux/arch/arm/mach-s5pv210/include/mach/gpio.h | 1 | /* |
2 | * | ||
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | 2 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. |
4 | * http://www.samsung.com/ | 3 | * http://www.samsung.com/ |
5 | * | 4 | * |
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index cc37edacda26..4262d8ff1988 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <video/samsung_fimd.h> | 31 | #include <video/samsung_fimd.h> |
32 | #include <mach/map.h> | 32 | #include <mach/map.h> |
33 | #include <mach/regs-clock.h> | 33 | #include <mach/regs-clock.h> |
34 | #include <mach/gpio-samsung.h> | ||
34 | 35 | ||
35 | #include <plat/gpio-cfg.h> | 36 | #include <plat/gpio-cfg.h> |
36 | #include <plat/devs.h> | 37 | #include <plat/devs.h> |
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index c1ce921c4088..096a8173a1d9 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <video/samsung_fimd.h> | 38 | #include <video/samsung_fimd.h> |
39 | #include <mach/map.h> | 39 | #include <mach/map.h> |
40 | #include <mach/regs-clock.h> | 40 | #include <mach/regs-clock.h> |
41 | #include <mach/gpio-samsung.h> | ||
41 | 42 | ||
42 | #include <plat/gpio-cfg.h> | 43 | #include <plat/gpio-cfg.h> |
43 | #include <plat/devs.h> | 44 | #include <plat/devs.h> |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 2a6655fb63e7..a146089c9ee6 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include <mach/map.h> | 33 | #include <mach/map.h> |
34 | #include <mach/regs-clock.h> | 34 | #include <mach/regs-clock.h> |
35 | #include <mach/gpio-samsung.h> | ||
35 | 36 | ||
36 | #include <plat/regs-srom.h> | 37 | #include <plat/regs-srom.h> |
37 | #include <plat/gpio-cfg.h> | 38 | #include <plat/gpio-cfg.h> |
diff --git a/arch/arm/mach-s5pv210/setup-fb-24bpp.c b/arch/arm/mach-s5pv210/setup-fb-24bpp.c index 55103c8220b3..815e329f70c4 100644 --- a/arch/arm/mach-s5pv210/setup-fb-24bpp.c +++ b/arch/arm/mach-s5pv210/setup-fb-24bpp.c | |||
@@ -13,12 +13,12 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/types.h> | 14 | #include <linux/types.h> |
15 | #include <linux/fb.h> | 15 | #include <linux/fb.h> |
16 | #include <linux/gpio.h> | ||
17 | 16 | ||
18 | #include <mach/map.h> | 17 | #include <mach/map.h> |
19 | #include <plat/fb.h> | 18 | #include <plat/fb.h> |
20 | #include <mach/regs-clock.h> | 19 | #include <mach/regs-clock.h> |
21 | #include <plat/gpio-cfg.h> | 20 | #include <plat/gpio-cfg.h> |
21 | #include <mach/gpio-samsung.h> | ||
22 | 22 | ||
23 | static void s5pv210_fb_cfg_gpios(unsigned int base, unsigned int nr) | 23 | static void s5pv210_fb_cfg_gpios(unsigned int base, unsigned int nr) |
24 | { | 24 | { |
diff --git a/arch/arm/mach-s5pv210/setup-fimc.c b/arch/arm/mach-s5pv210/setup-fimc.c index 54cc5b11be0b..36945ec437f8 100644 --- a/arch/arm/mach-s5pv210/setup-fimc.c +++ b/arch/arm/mach-s5pv210/setup-fimc.c | |||
@@ -8,9 +8,10 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/gpio.h> | 11 | #include <linux/kernel.h> |
12 | #include <plat/gpio-cfg.h> | 12 | #include <plat/gpio-cfg.h> |
13 | #include <plat/camport.h> | 13 | #include <plat/camport.h> |
14 | #include <mach/gpio-samsung.h> | ||
14 | 15 | ||
15 | int s5pv210_fimc_setup_gpio(enum s5p_camport_id id) | 16 | int s5pv210_fimc_setup_gpio(enum s5p_camport_id id) |
16 | { | 17 | { |
diff --git a/arch/arm/mach-s5pv210/setup-i2c0.c b/arch/arm/mach-s5pv210/setup-i2c0.c index 4a15849766c0..b0f2b69ac743 100644 --- a/arch/arm/mach-s5pv210/setup-i2c0.c +++ b/arch/arm/mach-s5pv210/setup-i2c0.c | |||
@@ -14,12 +14,12 @@ | |||
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/gpio.h> | ||
18 | 17 | ||
19 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
20 | 19 | ||
21 | #include <linux/platform_data/i2c-s3c2410.h> | 20 | #include <linux/platform_data/i2c-s3c2410.h> |
22 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
22 | #include <mach/gpio-samsung.h> | ||
23 | 23 | ||
24 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) | 24 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-s5pv210/setup-i2c1.c b/arch/arm/mach-s5pv210/setup-i2c1.c index 4777f6b97a92..aac1da7b9071 100644 --- a/arch/arm/mach-s5pv210/setup-i2c1.c +++ b/arch/arm/mach-s5pv210/setup-i2c1.c | |||
@@ -14,12 +14,12 @@ | |||
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/gpio.h> | ||
18 | 17 | ||
19 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
20 | 19 | ||
21 | #include <linux/platform_data/i2c-s3c2410.h> | 20 | #include <linux/platform_data/i2c-s3c2410.h> |
22 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
22 | #include <mach/gpio-samsung.h> | ||
23 | 23 | ||
24 | void s3c_i2c1_cfg_gpio(struct platform_device *dev) | 24 | void s3c_i2c1_cfg_gpio(struct platform_device *dev) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-s5pv210/setup-i2c2.c b/arch/arm/mach-s5pv210/setup-i2c2.c index bbce6c74b915..eff4503b903f 100644 --- a/arch/arm/mach-s5pv210/setup-i2c2.c +++ b/arch/arm/mach-s5pv210/setup-i2c2.c | |||
@@ -14,12 +14,12 @@ | |||
14 | 14 | ||
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | #include <linux/gpio.h> | ||
18 | 17 | ||
19 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
20 | 19 | ||
21 | #include <linux/platform_data/i2c-s3c2410.h> | 20 | #include <linux/platform_data/i2c-s3c2410.h> |
22 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
22 | #include <mach/gpio-samsung.h> | ||
23 | 23 | ||
24 | void s3c_i2c2_cfg_gpio(struct platform_device *dev) | 24 | void s3c_i2c2_cfg_gpio(struct platform_device *dev) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-s5pv210/setup-ide.c b/arch/arm/mach-s5pv210/setup-ide.c index ea123d546bd2..5b6042d97892 100644 --- a/arch/arm/mach-s5pv210/setup-ide.c +++ b/arch/arm/mach-s5pv210/setup-ide.c | |||
@@ -11,9 +11,9 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/gpio.h> | ||
15 | 14 | ||
16 | #include <plat/gpio-cfg.h> | 15 | #include <plat/gpio-cfg.h> |
16 | #include <mach/gpio-samsung.h> | ||
17 | 17 | ||
18 | static void s5pv210_ide_cfg_gpios(unsigned int base, unsigned int nr) | 18 | static void s5pv210_ide_cfg_gpios(unsigned int base, unsigned int nr) |
19 | { | 19 | { |
diff --git a/arch/arm/mach-s5pv210/setup-keypad.c b/arch/arm/mach-s5pv210/setup-keypad.c index c56420a52f48..faf6178f3a1b 100644 --- a/arch/arm/mach-s5pv210/setup-keypad.c +++ b/arch/arm/mach-s5pv210/setup-keypad.c | |||
@@ -11,8 +11,8 @@ | |||
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/gpio.h> | ||
15 | #include <plat/gpio-cfg.h> | 14 | #include <plat/gpio-cfg.h> |
15 | #include <mach/gpio-samsung.h> | ||
16 | 16 | ||
17 | void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols) | 17 | void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols) |
18 | { | 18 | { |
diff --git a/arch/arm/mach-s5pv210/setup-sdhci-gpio.c b/arch/arm/mach-s5pv210/setup-sdhci-gpio.c index 0512ada00522..0dd055b47579 100644 --- a/arch/arm/mach-s5pv210/setup-sdhci-gpio.c +++ b/arch/arm/mach-s5pv210/setup-sdhci-gpio.c | |||
@@ -15,12 +15,12 @@ | |||
15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/gpio.h> | ||
19 | #include <linux/mmc/host.h> | 18 | #include <linux/mmc/host.h> |
20 | #include <linux/mmc/card.h> | 19 | #include <linux/mmc/card.h> |
21 | 20 | ||
22 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
23 | #include <plat/sdhci.h> | 22 | #include <plat/sdhci.h> |
23 | #include <mach/gpio-samsung.h> | ||
24 | 24 | ||
25 | void s5pv210_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) | 25 | void s5pv210_setup_sdhci0_cfg_gpio(struct platform_device *dev, int width) |
26 | { | 26 | { |
diff --git a/arch/arm/mach-s5pv210/setup-spi.c b/arch/arm/mach-s5pv210/setup-spi.c index 81aecc162f82..e1faf8ea4502 100644 --- a/arch/arm/mach-s5pv210/setup-spi.c +++ b/arch/arm/mach-s5pv210/setup-spi.c | |||
@@ -8,8 +8,8 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/gpio.h> | ||
12 | #include <plat/gpio-cfg.h> | 11 | #include <plat/gpio-cfg.h> |
12 | #include <mach/gpio-samsung.h> | ||
13 | 13 | ||
14 | #ifdef CONFIG_S3C64XX_DEV_SPI0 | 14 | #ifdef CONFIG_S3C64XX_DEV_SPI0 |
15 | int s3c64xx_spi0_cfg_gpio(void) | 15 | int s3c64xx_spi0_cfg_gpio(void) |
diff --git a/arch/arm/plat-samsung/include/plat/gpio-core.h b/arch/arm/plat-samsung/include/plat/gpio-core.h index cf5aae5b0975..6ce11bfdc37e 100644 --- a/arch/arm/plat-samsung/include/plat/gpio-core.h +++ b/arch/arm/plat-samsung/include/plat/gpio-core.h | |||
@@ -14,6 +14,9 @@ | |||
14 | #ifndef __PLAT_SAMSUNG_GPIO_CORE_H | 14 | #ifndef __PLAT_SAMSUNG_GPIO_CORE_H |
15 | #define __PLAT_SAMSUNG_GPIO_CORE_H | 15 | #define __PLAT_SAMSUNG_GPIO_CORE_H |
16 | 16 | ||
17 | /* Bring in machine-local definitions, especially S3C_GPIO_END */ | ||
18 | #include <mach/gpio-samsung.h> | ||
19 | |||
17 | #define GPIOCON_OFF (0x00) | 20 | #define GPIOCON_OFF (0x00) |
18 | #define GPIODAT_OFF (0x04) | 21 | #define GPIODAT_OFF (0x04) |
19 | 22 | ||
diff --git a/arch/arm/plat-samsung/pm-gpio.c b/arch/arm/plat-samsung/pm-gpio.c index da268813901b..adc91662f72b 100644 --- a/arch/arm/plat-samsung/pm-gpio.c +++ b/arch/arm/plat-samsung/pm-gpio.c | |||
@@ -19,9 +19,7 @@ | |||
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/gpio.h> | 20 | #include <linux/gpio.h> |
21 | 21 | ||
22 | #if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX) | ||
23 | #include <mach/gpio-samsung.h> | 22 | #include <mach/gpio-samsung.h> |
24 | #endif | ||
25 | 23 | ||
26 | #include <plat/gpio-core.h> | 24 | #include <plat/gpio-core.h> |
27 | #include <plat/pm.h> | 25 | #include <plat/pm.h> |
diff --git a/arch/arm/plat-samsung/s5p-irq-eint.c b/arch/arm/plat-samsung/s5p-irq-eint.c index ebee4dc11a94..dcd8c2cbf5bb 100644 --- a/arch/arm/plat-samsung/s5p-irq-eint.c +++ b/arch/arm/plat-samsung/s5p-irq-eint.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <linux/device.h> | 16 | #include <linux/device.h> |
17 | #include <linux/gpio.h> | ||
18 | #include <linux/irqchip/arm-vic.h> | 17 | #include <linux/irqchip/arm-vic.h> |
19 | #include <linux/of.h> | 18 | #include <linux/of.h> |
20 | 19 | ||
@@ -26,6 +25,7 @@ | |||
26 | 25 | ||
27 | #include <plat/gpio-cfg.h> | 26 | #include <plat/gpio-cfg.h> |
28 | #include <mach/regs-gpio.h> | 27 | #include <mach/regs-gpio.h> |
28 | #include <mach/gpio-samsung.h> | ||
29 | 29 | ||
30 | static inline void s5p_irq_eint_mask(struct irq_data *data) | 30 | static inline void s5p_irq_eint_mask(struct irq_data *data) |
31 | { | 31 | { |
diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c index 07105ee5c9ae..90d4b807519a 100644 --- a/drivers/gpio/gpio-samsung.c +++ b/drivers/gpio/gpio-samsung.c | |||
@@ -32,10 +32,7 @@ | |||
32 | 32 | ||
33 | #include <mach/map.h> | 33 | #include <mach/map.h> |
34 | #include <mach/regs-gpio.h> | 34 | #include <mach/regs-gpio.h> |
35 | |||
36 | #if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX) | ||
37 | #include <mach/gpio-samsung.h> | 35 | #include <mach/gpio-samsung.h> |
38 | #endif | ||
39 | 36 | ||
40 | #include <plat/cpu.h> | 37 | #include <plat/cpu.h> |
41 | #include <plat/gpio-core.h> | 38 | #include <plat/gpio-core.h> |
diff --git a/sound/soc/samsung/goni_wm8994.c b/sound/soc/samsung/goni_wm8994.c index 9506d7617223..3b527dcfc0aa 100644 --- a/sound/soc/samsung/goni_wm8994.c +++ b/sound/soc/samsung/goni_wm8994.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <sound/jack.h> | 16 | #include <sound/jack.h> |
17 | 17 | ||
18 | #include <asm/mach-types.h> | 18 | #include <asm/mach-types.h> |
19 | #include <mach/gpio.h> | 19 | #include <mach/gpio-samsung.h> |
20 | 20 | ||
21 | #include "../codecs/wm8994.h" | 21 | #include "../codecs/wm8994.h" |
22 | 22 | ||