aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-10-28 00:31:00 -0400
committerOlof Johansson <olof@lixom.net>2013-10-28 00:31:00 -0400
commit6251c156a6cde0137d883babedb13bcfbb4a0941 (patch)
tree5facc570fb42e57ad233bf8ce4eba01a9304774a
parent76df26b5bbe6c7618d2b59f2750f86506b40adb5 (diff)
parentae3c5d74ea0d5e2f1c32c527e5de36c7614525af (diff)
Merge tag 'samsung-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/cleanup
From Kukjin Kim: Samsung Cleanup for v3.13 - remove unnecessary config options and header inclusions - use CONFIG_ARCH_S3C64XX instead of PLAT_S3C64XX * tag 'samsung-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: ARM: EXYNOS: remove CONFIG_MACH_EXYNOS[4, 5]_DT config options ARM: EXYNOS: remove unnecessary header inclusions from exynos4/5 dt machine file ARM: S3C64XX: Kill CONFIG_PLAT_S3C64XX ASoC: samsung: Use CONFIG_ARCH_S3C64XX to check for S3C64XX support s3c-camif: Use CONFIG_ARCH_S3C64XX to check for S3C64XX support gpio: samsung: Use CONFIG_ARCH_S3C64XX to check for S3C64XX support ARM: S3C64XX: Move if ARCH_S3C64XX statement into mach-s3c64xx Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm/Kconfig4
-rw-r--r--arch/arm/mach-exynos/Kconfig38
-rw-r--r--arch/arm/mach-exynos/Makefile4
-rw-r--r--arch/arm/mach-exynos/mach-exynos4-dt.c3
-rw-r--r--arch/arm/mach-exynos/mach-exynos5-dt.c3
-rw-r--r--arch/arm/mach-s3c64xx/Kconfig13
-rw-r--r--drivers/gpio/gpio-samsung.c8
-rw-r--r--drivers/media/platform/Kconfig2
-rw-r--r--sound/soc/samsung/s3c-i2s-v2.c6
9 files changed, 22 insertions, 59 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f55f7ac4b135..da5e1b0d322c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -731,11 +731,13 @@ config ARCH_S3C64XX
731 select NEED_MACH_GPIO_H 731 select NEED_MACH_GPIO_H
732 select NO_IOPORT 732 select NO_IOPORT
733 select PLAT_SAMSUNG 733 select PLAT_SAMSUNG
734 select PM_GENERIC_DOMAINS
734 select S3C_DEV_NAND 735 select S3C_DEV_NAND
735 select S3C_GPIO_TRACK 736 select S3C_GPIO_TRACK
736 select SAMSUNG_ATAGS 737 select SAMSUNG_ATAGS
737 select SAMSUNG_CLKSRC 738 select SAMSUNG_CLKSRC
738 select SAMSUNG_GPIOLIB_4BIT 739 select SAMSUNG_GPIOLIB_4BIT
740 select SAMSUNG_WAKEMASK
739 select SAMSUNG_WDT_RESET 741 select SAMSUNG_WDT_RESET
740 select USB_ARCH_HAS_OHCI 742 select USB_ARCH_HAS_OHCI
741 help 743 help
@@ -983,9 +985,7 @@ source "arch/arm/mach-sti/Kconfig"
983 985
984source "arch/arm/mach-s3c24xx/Kconfig" 986source "arch/arm/mach-s3c24xx/Kconfig"
985 987
986if ARCH_S3C64XX
987source "arch/arm/mach-s3c64xx/Kconfig" 988source "arch/arm/mach-s3c64xx/Kconfig"
988endif
989 989
990source "arch/arm/mach-s5p64x0/Kconfig" 990source "arch/arm/mach-s5p64x0/Kconfig"
991 991
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 56fe819ee10b..f9d67a0acb2a 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -14,19 +14,28 @@ menu "SAMSUNG EXYNOS SoCs Support"
14config ARCH_EXYNOS4 14config ARCH_EXYNOS4
15 bool "SAMSUNG EXYNOS4" 15 bool "SAMSUNG EXYNOS4"
16 default y 16 default y
17 select ARM_AMBA
18 select CLKSRC_OF
19 select CLKSRC_SAMSUNG_PWM if CPU_EXYNOS4210
20 select CPU_EXYNOS4210
17 select GIC_NON_BANKED 21 select GIC_NON_BANKED
22 select KEYBOARD_SAMSUNG if INPUT_KEYBOARD
18 select HAVE_ARM_SCU if SMP 23 select HAVE_ARM_SCU if SMP
19 select HAVE_SMP 24 select HAVE_SMP
20 select MIGHT_HAVE_CACHE_L2X0 25 select MIGHT_HAVE_CACHE_L2X0
21 select PINCTRL 26 select PINCTRL
27 select S5P_DEV_MFC
22 help 28 help
23 Samsung EXYNOS4 SoCs based systems 29 Samsung EXYNOS4 SoCs based systems
24 30
25config ARCH_EXYNOS5 31config ARCH_EXYNOS5
26 bool "SAMSUNG EXYNOS5" 32 bool "SAMSUNG EXYNOS5"
33 select ARM_AMBA
34 select CLKSRC_OF
27 select HAVE_ARM_SCU if SMP 35 select HAVE_ARM_SCU if SMP
28 select HAVE_SMP 36 select HAVE_SMP
29 select PINCTRL 37 select PINCTRL
38 select USB_ARCH_HAS_XHCI
30 help 39 help
31 Samsung EXYNOS5 (Cortex-A15) SoC based systems 40 Samsung EXYNOS5 (Cortex-A15) SoC based systems
32 41
@@ -110,35 +119,6 @@ config SOC_EXYNOS5440
110 help 119 help
111 Enable EXYNOS5440 SoC support 120 Enable EXYNOS5440 SoC support
112 121
113comment "Flattened Device Tree based board for EXYNOS SoCs"
114
115config MACH_EXYNOS4_DT
116 bool "Samsung Exynos4 Machine using device tree"
117 default y
118 depends on ARCH_EXYNOS4
119 select ARM_AMBA
120 select CLKSRC_OF
121 select CLKSRC_SAMSUNG_PWM if CPU_EXYNOS4210
122 select CPU_EXYNOS4210
123 select KEYBOARD_SAMSUNG if INPUT_KEYBOARD
124 select S5P_DEV_MFC
125 help
126 Machine support for Samsung Exynos4 machine with device tree enabled.
127 Select this if a fdt blob is available for the Exynos4 SoC based board.
128 Note: This is under development and not all peripherals can be supported
129 with this machine file.
130
131config MACH_EXYNOS5_DT
132 bool "SAMSUNG EXYNOS5 Machine using device tree"
133 default y
134 depends on ARCH_EXYNOS5
135 select ARM_AMBA
136 select CLKSRC_OF
137 select USB_ARCH_HAS_XHCI
138 help
139 Machine support for Samsung EXYNOS5 machine with device tree enabled.
140 Select this if a fdt blob is available for the EXYNOS5 SoC based board.
141
142endmenu 122endmenu
143 123
144endif 124endif
diff --git a/arch/arm/mach-exynos/Makefile b/arch/arm/mach-exynos/Makefile
index 53696154aead..8930b66b4abd 100644
--- a/arch/arm/mach-exynos/Makefile
+++ b/arch/arm/mach-exynos/Makefile
@@ -32,5 +32,5 @@ AFLAGS_exynos-smc.o :=-Wa,-march=armv7-a$(plus_sec)
32 32
33# machine support 33# machine support
34 34
35obj-$(CONFIG_MACH_EXYNOS4_DT) += mach-exynos4-dt.o 35obj-$(CONFIG_ARCH_EXYNOS4) += mach-exynos4-dt.o
36obj-$(CONFIG_MACH_EXYNOS5_DT) += mach-exynos5-dt.o 36obj-$(CONFIG_ARCH_EXYNOS5) += mach-exynos5-dt.o
diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c
index 6858d73dcf48..4b8f6e2ca163 100644
--- a/arch/arm/mach-exynos/mach-exynos4-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos4-dt.c
@@ -11,11 +11,8 @@
11 * published by the Free Software Foundation. 11 * published by the Free Software Foundation.
12*/ 12*/
13 13
14#include <linux/kernel.h>
15#include <linux/of_platform.h> 14#include <linux/of_platform.h>
16#include <linux/of_fdt.h> 15#include <linux/of_fdt.h>
17#include <linux/serial_core.h>
18#include <linux/memblock.h>
19 16
20#include <asm/mach/arch.h> 17#include <asm/mach/arch.h>
21#include <plat/mfc.h> 18#include <plat/mfc.h>
diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index bac21054cec8..7976ab333192 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -11,13 +11,10 @@
11 11
12#include <linux/of_platform.h> 12#include <linux/of_platform.h>
13#include <linux/of_fdt.h> 13#include <linux/of_fdt.h>
14#include <linux/memblock.h>
15#include <linux/io.h> 14#include <linux/io.h>
16 15
17#include <asm/mach/arch.h> 16#include <asm/mach/arch.h>
18#include <mach/regs-pmu.h> 17#include <mach/regs-pmu.h>
19
20#include <plat/cpu.h>
21#include <plat/mfc.h> 18#include <plat/mfc.h>
22 19
23#include "common.h" 20#include "common.h"
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig
index 041da5172423..a2d5bb33647d 100644
--- a/arch/arm/mach-s3c64xx/Kconfig
+++ b/arch/arm/mach-s3c64xx/Kconfig
@@ -3,16 +3,7 @@
3# 3#
4# Licensed under GPLv2 4# Licensed under GPLv2
5 5
6# temporary until we can eliminate all drivers using it. 6if ARCH_S3C64XX
7config PLAT_S3C64XX
8 bool
9 depends on ARCH_S3C64XX
10 default y
11 select PM_GENERIC_DOMAINS
12 select SAMSUNG_WAKEMASK
13 help
14 Base platform code for any Samsung S3C64XX device
15
16 7
17# Configuration options for the S3C6410 CPU 8# Configuration options for the S3C6410 CPU
18 9
@@ -306,3 +297,5 @@ config MACH_WLF_CRAGG_6410
306 select SAMSUNG_GPIO_EXTRA128 297 select SAMSUNG_GPIO_EXTRA128
307 help 298 help
308 Machine support for the Wolfson Cragganmore S3C6410 variant. 299 Machine support for the Wolfson Cragganmore S3C6410 variant.
300
301endif
diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c
index 358a21c2d811..f6f1c7d244c4 100644
--- a/drivers/gpio/gpio-samsung.c
+++ b/drivers/gpio/gpio-samsung.c
@@ -1033,7 +1033,7 @@ static int s3c24xx_gpiolib_fbank_to_irq(struct gpio_chip *chip, unsigned offset)
1033} 1033}
1034#endif 1034#endif
1035 1035
1036#ifdef CONFIG_PLAT_S3C64XX 1036#ifdef CONFIG_ARCH_S3C64XX
1037static int s3c64xx_gpiolib_mbank_to_irq(struct gpio_chip *chip, unsigned pin) 1037static int s3c64xx_gpiolib_mbank_to_irq(struct gpio_chip *chip, unsigned pin)
1038{ 1038{
1039 return pin < 5 ? IRQ_EINT(23) + pin : -ENXIO; 1039 return pin < 5 ? IRQ_EINT(23) + pin : -ENXIO;
@@ -1174,7 +1174,7 @@ struct samsung_gpio_chip s3c24xx_gpios[] = {
1174 */ 1174 */
1175 1175
1176static struct samsung_gpio_chip s3c64xx_gpios_4bit[] = { 1176static struct samsung_gpio_chip s3c64xx_gpios_4bit[] = {
1177#ifdef CONFIG_PLAT_S3C64XX 1177#ifdef CONFIG_ARCH_S3C64XX
1178 { 1178 {
1179 .chip = { 1179 .chip = {
1180 .base = S3C64XX_GPA(0), 1180 .base = S3C64XX_GPA(0),
@@ -1227,7 +1227,7 @@ static struct samsung_gpio_chip s3c64xx_gpios_4bit[] = {
1227}; 1227};
1228 1228
1229static struct samsung_gpio_chip s3c64xx_gpios_4bit2[] = { 1229static struct samsung_gpio_chip s3c64xx_gpios_4bit2[] = {
1230#ifdef CONFIG_PLAT_S3C64XX 1230#ifdef CONFIG_ARCH_S3C64XX
1231 { 1231 {
1232 .base = S3C64XX_GPH_BASE + 0x4, 1232 .base = S3C64XX_GPH_BASE + 0x4,
1233 .chip = { 1233 .chip = {
@@ -1257,7 +1257,7 @@ static struct samsung_gpio_chip s3c64xx_gpios_4bit2[] = {
1257}; 1257};
1258 1258
1259static struct samsung_gpio_chip s3c64xx_gpios_2bit[] = { 1259static struct samsung_gpio_chip s3c64xx_gpios_2bit[] = {
1260#ifdef CONFIG_PLAT_S3C64XX 1260#ifdef CONFIG_ARCH_S3C64XX
1261 { 1261 {
1262 .base = S3C64XX_GPF_BASE, 1262 .base = S3C64XX_GPF_BASE,
1263 .config = &samsung_gpio_cfgs[6], 1263 .config = &samsung_gpio_cfgs[6],
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index c7caf94621b4..eb70dda8cbf3 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -112,7 +112,7 @@ config VIDEO_OMAP3_DEBUG
112config VIDEO_S3C_CAMIF 112config VIDEO_S3C_CAMIF
113 tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver" 113 tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver"
114 depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API 114 depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
115 depends on (PLAT_S3C64XX || PLAT_S3C24XX) && PM_RUNTIME 115 depends on (ARCH_S3C64XX || PLAT_S3C24XX) && PM_RUNTIME
116 select VIDEOBUF2_DMA_CONTIG 116 select VIDEOBUF2_DMA_CONTIG
117 ---help--- 117 ---help---
118 This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera 118 This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera
diff --git a/sound/soc/samsung/s3c-i2s-v2.c b/sound/soc/samsung/s3c-i2s-v2.c
index e5e81b111001..fefc56100349 100644
--- a/sound/soc/samsung/s3c-i2s-v2.c
+++ b/sound/soc/samsung/s3c-i2s-v2.c
@@ -31,11 +31,7 @@
31#undef S3C_IIS_V2_SUPPORTED 31#undef S3C_IIS_V2_SUPPORTED
32 32
33#if defined(CONFIG_CPU_S3C2412) || defined(CONFIG_CPU_S3C2413) \ 33#if defined(CONFIG_CPU_S3C2412) || defined(CONFIG_CPU_S3C2413) \
34 || defined(CONFIG_CPU_S5PV210) 34 || defined(CONFIG_ARCH_S3C64XX) || defined(CONFIG_CPU_S5PV210)
35#define S3C_IIS_V2_SUPPORTED
36#endif
37
38#ifdef CONFIG_PLAT_S3C64XX
39#define S3C_IIS_V2_SUPPORTED 35#define S3C_IIS_V2_SUPPORTED
40#endif 36#endif
41 37