aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-07-26 12:00:40 -0400
committerArnd Bergmann <arnd@arndb.de>2014-07-26 12:00:40 -0400
commitdffd7e35a50d1f8fd79805dd10d412a041f67cb3 (patch)
treeb25288791cf5fb95b5baca5b93f26f149f5ec6e0
parent944483d0330bb497549977aa9649be6b7d0ede37 (diff)
parent53430333c345c3531f9443d43c6fba1da693abe4 (diff)
Merge branch 'cleanup/gpio-header-removal' into next/soc
* cleanup/gpio-header-removal: ARM: delete old reference to ARM_GPIOLIB_COMPLEX ARM: kill CONFIG_NEED_MACH_GPIO_H ARM: mach-s5p: get rid of all <mach/gpio.h> headers ARM: s5p: cut the custom ARCH_NR_GPIOS definition This resolves a massive amount of conflicts between the mach/gpio.h removal and the s5p platform removal. Almost all changes are trivial, as both sides remove stuff. Conflicts: arch/arm/Kconfig arch/arm/mach-s5p64x0/common.c arch/arm/mach-s5p64x0/dev-audio.c arch/arm/mach-s5p64x0/include/mach/gpio-samsung.h arch/arm/mach-s5p64x0/mach-smdk6440.c arch/arm/mach-s5p64x0/mach-smdk6450.c arch/arm/mach-s5p64x0/setup-fb-24bpp.c arch/arm/mach-s5p64x0/setup-i2c0.c arch/arm/mach-s5p64x0/setup-i2c1.c arch/arm/mach-s5p64x0/setup-sdhci-gpio.c arch/arm/mach-s5p64x0/setup-spi.c arch/arm/mach-s5pc100/dev-audio.c arch/arm/mach-s5pc100/include/mach/gpio-samsung.h arch/arm/mach-s5pc100/mach-smdkc100.c arch/arm/mach-s5pc100/setup-fb-24bpp.c arch/arm/mach-s5pc100/setup-i2c0.c arch/arm/mach-s5pc100/setup-i2c1.c arch/arm/mach-s5pc100/setup-ide.c arch/arm/mach-s5pc100/setup-keypad.c arch/arm/mach-s5pc100/setup-sdhci-gpio.c arch/arm/mach-s5pc100/setup-spi.c arch/arm/mach-s5pv210/dev-audio.c arch/arm/mach-s5pv210/include/mach/gpio-samsung.h arch/arm/mach-s5pv210/mach-aquila.c arch/arm/mach-s5pv210/mach-goni.c arch/arm/mach-s5pv210/mach-smdkv210.c arch/arm/mach-s5pv210/setup-fb-24bpp.c arch/arm/mach-s5pv210/setup-fimc.c arch/arm/mach-s5pv210/setup-i2c0.c arch/arm/mach-s5pv210/setup-i2c1.c arch/arm/mach-s5pv210/setup-i2c2.c arch/arm/mach-s5pv210/setup-ide.c arch/arm/mach-s5pv210/setup-keypad.c arch/arm/mach-s5pv210/setup-sdhci-gpio.c arch/arm/mach-s5pv210/setup-spi.c arch/arm/plat-samsung/Kconfig arch/arm/plat-samsung/s5p-irq-eint.c Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--arch/arm/Kconfig7
-rw-r--r--arch/arm/include/asm/gpio.h7
-rw-r--r--arch/arm/plat-samsung/Kconfig16
-rw-r--r--arch/arm/plat-samsung/include/plat/gpio-core.h3
-rw-r--r--arch/arm/plat-samsung/pm-gpio.c2
-rw-r--r--drivers/gpio/gpio-samsung.c3
-rw-r--r--sound/soc/samsung/goni_wm8994.c2
7 files changed, 4 insertions, 36 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f505f9ec792d..5e54436127fc 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -240,13 +240,6 @@ config ARM_PATCH_PHYS_VIRT
240 this feature (eg, building a kernel for a single machine) and 240 this feature (eg, building a kernel for a single machine) and
241 you need to shrink the kernel to the minimal size. 241 you need to shrink the kernel to the minimal size.
242 242
243config NEED_MACH_GPIO_H
244 bool
245 help
246 Select this when mach/gpio.h is required to provide special
247 definitions for this platform. The need for mach/gpio.h should
248 be avoided when possible.
249
250config NEED_MACH_IO_H 243config NEED_MACH_IO_H
251 bool 244 bool
252 help 245 help
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index 477e0206e016..504dcddebfcc 100644
--- a/arch/arm/include/asm/gpio.h
+++ b/arch/arm/include/asm/gpio.h
@@ -5,12 +5,6 @@
5#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO 5#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
6#endif 6#endif
7 7
8/* not all ARM platforms necessarily support this API ... */
9#ifdef CONFIG_NEED_MACH_GPIO_H
10#include <mach/gpio.h>
11#endif
12
13#ifndef __ARM_GPIOLIB_COMPLEX
14/* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ 8/* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
15#include <asm-generic/gpio.h> 9#include <asm-generic/gpio.h>
16 10
@@ -18,7 +12,6 @@
18#define gpio_get_value __gpio_get_value 12#define gpio_get_value __gpio_get_value
19#define gpio_set_value __gpio_set_value 13#define gpio_set_value __gpio_set_value
20#define gpio_cansleep __gpio_cansleep 14#define gpio_cansleep __gpio_cansleep
21#endif
22 15
23/* 16/*
24 * Provide a default gpio_to_irq() which should satisfy every case. 17 * Provide a default gpio_to_irq() which should satisfy every case.
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index 1091b0a3729a..c87aefbf3a13 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -51,22 +51,6 @@ config SAMSUNG_ATAGS
51 51
52if SAMSUNG_ATAGS 52if SAMSUNG_ATAGS
53 53
54config SAMSUNG_GPIO_EXTRA
55 int "Number of additional GPIO pins"
56 default 128 if SAMSUNG_GPIO_EXTRA128
57 default 64 if SAMSUNG_GPIO_EXTRA64
58 default 0
59 help
60 Use additional GPIO space in addition to the GPIO's the SOC
61 provides. This allows expanding the GPIO space for use with
62 GPIO expanders.
63
64config SAMSUNG_GPIO_EXTRA64
65 bool
66
67config SAMSUNG_GPIO_EXTRA128
68 bool
69
70config S3C_GPIO_SPACE 54config S3C_GPIO_SPACE
71 int "Space between gpio banks" 55 int "Space between gpio banks"
72 default 0 56 default 0
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 f6084f641e6f..f9a09262f2fa 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/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c
index 27298fd212d7..3810da47043f 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