aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-04-09 09:31:57 -0400
committerArnd Bergmann <arnd@arndb.de>2013-04-09 09:31:57 -0400
commit4909e13cd9d864f95f63d2d16489778fff483460 (patch)
tree2e6693a64f3955e40fcc92b674be3ec20753eb15
parent92202876a3cc6b7fb0bbb52a5059e02c2c2e2186 (diff)
parentfe72e27368265a99f6a0a189a5d593aac320a59d (diff)
Merge tag 'cleanup-samsung-for-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/cleanup
From Kukjin Kim <kgene.kim@samsung.com>: cleanup unused codes for samsung * tag 'cleanup-samsung-for-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: ARM: EXYNOS: remove "config EXYNOS_DEV_DRM" ARM: EXYNOS: change the name of USB ohci header ARM: SAMSUNG: Remove unnecessary code for dma ARM: S3C24XX: Remove unused GPIO drive strength register definitions ARM: S3C24XX: Removed unneeded dependency on CPU_S3C2412 ARM: S3C24XX: Removed unneeded dependency on CPU_S3C2410 ARM: S3C24XX: Removed unneeded dependency on ARCH_S3C24XX for boards ARM: SAMSUNG: Fix typo "CONFIG_SAMSUNG_DEV_RTC" ARM: S5P64X0: Fix typo "CONFIG_S5P64X0_SETUP_SDHCI" ARM: S3C64XX: remove obsolete Makefile line ARM: S3C24XX: remove unneeded "config SMDK2440_CPU2442" ARM: SAMSUNG: Remove useless Samsung GPIO related CONFIG ARM: SAMSUNG: remove "config S3C_BOOT_WATCHDOG" ARM: EXYNOS: change HAVE_SAMSUNG_KEYPAD to KEYBOARD_SAMSUNG ARM: EXYNOS: remove duplicated include from common.c ARM: EXYNOS: drop "select HAVE_SCHED_CLOCK" ARM: S3C24XX: drop "select MACH_NEO1973" ARM: S3C24XX: drop "select MACH_N35" Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--arch/arm/Kconfig1
-rw-r--r--arch/arm/mach-exynos/Kconfig13
-rw-r--r--arch/arm/mach-exynos/common.c1
-rw-r--r--arch/arm/mach-exynos/dev-ohci.c2
-rw-r--r--arch/arm/mach-exynos/mach-origen.c2
-rw-r--r--arch/arm/mach-exynos/mach-smdkv310.c2
-rw-r--r--arch/arm/mach-s3c24xx/Kconfig22
-rw-r--r--arch/arm/mach-s3c24xx/include/mach/dma.h1
-rw-r--r--arch/arm/mach-s3c24xx/regs-dsc.h203
-rw-r--r--arch/arm/mach-s3c64xx/Makefile1
-rw-r--r--arch/arm/mach-s3c64xx/include/mach/dma.h1
-rw-r--r--arch/arm/plat-samsung/Kconfig14
-rw-r--r--arch/arm/plat-samsung/dma-ops.c10
-rw-r--r--arch/arm/plat-samsung/include/plat/dma-ops.h1
-rw-r--r--arch/arm/plat-samsung/include/plat/dma-pl330.h1
-rw-r--r--arch/arm/plat-samsung/include/plat/rtc-core.h2
-rw-r--r--arch/arm/plat-samsung/include/plat/sdhci.h4
-rw-r--r--drivers/usb/host/ohci-exynos.c3
-rw-r--r--include/linux/platform_data/usb-ohci-exynos.h (renamed from include/linux/platform_data/usb-exynos.h)0
19 files changed, 20 insertions, 264 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 2e4386cba23c..adbbee7e97f1 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1175,7 +1175,6 @@ config PLAT_VERSATILE
1175config ARM_TIMER_SP804 1175config ARM_TIMER_SP804
1176 bool 1176 bool
1177 select CLKSRC_MMIO 1177 select CLKSRC_MMIO
1178 select HAVE_SCHED_CLOCK
1179 1178
1180source arch/arm/mm/Kconfig 1179source arch/arm/mm/Kconfig
1181 1180
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 70f94c87479d..0a6c127f834c 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -95,11 +95,6 @@ config EXYNOS4_DEV_AHCI
95 help 95 help
96 Compile in platform device definitions for AHCI 96 Compile in platform device definitions for AHCI
97 97
98config EXYNOS_DEV_DRM
99 bool
100 help
101 Compile in platform device definitions for core DRM device
102
103config EXYNOS4_SETUP_FIMD0 98config EXYNOS4_SETUP_FIMD0
104 bool 99 bool
105 help 100 help
@@ -199,7 +194,6 @@ config MACH_SMDKV310
199 select EXYNOS4_SETUP_SDHCI 194 select EXYNOS4_SETUP_SDHCI
200 select EXYNOS4_SETUP_USB_PHY 195 select EXYNOS4_SETUP_USB_PHY
201 select EXYNOS_DEV_DMA 196 select EXYNOS_DEV_DMA
202 select EXYNOS_DEV_DRM
203 select EXYNOS_DEV_SYSMMU 197 select EXYNOS_DEV_SYSMMU
204 select S3C24XX_PWM 198 select S3C24XX_PWM
205 select S3C_DEV_HSMMC 199 select S3C_DEV_HSMMC
@@ -253,9 +247,7 @@ config MACH_UNIVERSAL_C210
253 select EXYNOS4_SETUP_SDHCI 247 select EXYNOS4_SETUP_SDHCI
254 select EXYNOS4_SETUP_USB_PHY 248 select EXYNOS4_SETUP_USB_PHY
255 select EXYNOS_DEV_DMA 249 select EXYNOS_DEV_DMA
256 select EXYNOS_DEV_DRM
257 select EXYNOS_DEV_SYSMMU 250 select EXYNOS_DEV_SYSMMU
258 select HAVE_SCHED_CLOCK
259 select S3C_DEV_HSMMC 251 select S3C_DEV_HSMMC
260 select S3C_DEV_HSMMC2 252 select S3C_DEV_HSMMC2
261 select S3C_DEV_HSMMC3 253 select S3C_DEV_HSMMC3
@@ -294,7 +286,6 @@ config MACH_NURI
294 select EXYNOS4_SETUP_SDHCI 286 select EXYNOS4_SETUP_SDHCI
295 select EXYNOS4_SETUP_USB_PHY 287 select EXYNOS4_SETUP_USB_PHY
296 select EXYNOS_DEV_DMA 288 select EXYNOS_DEV_DMA
297 select EXYNOS_DEV_DRM
298 select S3C_DEV_HSMMC 289 select S3C_DEV_HSMMC
299 select S3C_DEV_HSMMC2 290 select S3C_DEV_HSMMC2
300 select S3C_DEV_HSMMC3 291 select S3C_DEV_HSMMC3
@@ -330,7 +321,6 @@ config MACH_ORIGEN
330 select EXYNOS4_SETUP_SDHCI 321 select EXYNOS4_SETUP_SDHCI
331 select EXYNOS4_SETUP_USB_PHY 322 select EXYNOS4_SETUP_USB_PHY
332 select EXYNOS_DEV_DMA 323 select EXYNOS_DEV_DMA
333 select EXYNOS_DEV_DRM
334 select EXYNOS_DEV_SYSMMU 324 select EXYNOS_DEV_SYSMMU
335 select S3C24XX_PWM 325 select S3C24XX_PWM
336 select S3C_DEV_HSMMC 326 select S3C_DEV_HSMMC
@@ -366,7 +356,6 @@ config MACH_SMDK4212
366 select EXYNOS4_SETUP_SDHCI 356 select EXYNOS4_SETUP_SDHCI
367 select EXYNOS4_SETUP_USB_PHY 357 select EXYNOS4_SETUP_USB_PHY
368 select EXYNOS_DEV_DMA 358 select EXYNOS_DEV_DMA
369 select EXYNOS_DEV_DRM
370 select EXYNOS_DEV_SYSMMU 359 select EXYNOS_DEV_SYSMMU
371 select S3C24XX_PWM 360 select S3C24XX_PWM
372 select S3C_DEV_HSMMC2 361 select S3C_DEV_HSMMC2
@@ -407,7 +396,7 @@ config MACH_EXYNOS4_DT
407 depends on ARCH_EXYNOS4 396 depends on ARCH_EXYNOS4
408 select ARM_AMBA 397 select ARM_AMBA
409 select CPU_EXYNOS4210 398 select CPU_EXYNOS4210
410 select HAVE_SAMSUNG_KEYPAD if INPUT_KEYBOARD 399 select KEYBOARD_SAMSUNG if INPUT_KEYBOARD
411 select PINCTRL 400 select PINCTRL
412 select PINCTRL_EXYNOS 401 select PINCTRL_EXYNOS
413 select USE_OF 402 select USE_OF
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index 7bc0f9aa8b33..1b0fa7afc7f8 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -23,7 +23,6 @@
23#include <linux/of_irq.h> 23#include <linux/of_irq.h>
24#include <linux/export.h> 24#include <linux/export.h>
25#include <linux/irqdomain.h> 25#include <linux/irqdomain.h>
26#include <linux/irqchip.h>
27#include <linux/of_address.h> 26#include <linux/of_address.h>
28#include <linux/irqchip/arm-gic.h> 27#include <linux/irqchip/arm-gic.h>
29#include <linux/irqchip/chained_irq.h> 28#include <linux/irqchip/chained_irq.h>
diff --git a/arch/arm/mach-exynos/dev-ohci.c b/arch/arm/mach-exynos/dev-ohci.c
index 4244d02dafbd..d5bc129e6bb7 100644
--- a/arch/arm/mach-exynos/dev-ohci.c
+++ b/arch/arm/mach-exynos/dev-ohci.c
@@ -12,7 +12,7 @@
12 12
13#include <linux/dma-mapping.h> 13#include <linux/dma-mapping.h>
14#include <linux/platform_device.h> 14#include <linux/platform_device.h>
15#include <linux/platform_data/usb-exynos.h> 15#include <linux/platform_data/usb-ohci-exynos.h>
16 16
17#include <mach/irqs.h> 17#include <mach/irqs.h>
18#include <mach/map.h> 18#include <mach/map.h>
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
index 579d2d171daa..bf946931ab32 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -26,7 +26,7 @@
26#include <linux/platform_data/i2c-s3c2410.h> 26#include <linux/platform_data/i2c-s3c2410.h>
27#include <linux/platform_data/s3c-hsotg.h> 27#include <linux/platform_data/s3c-hsotg.h>
28#include <linux/platform_data/usb-ehci-s5p.h> 28#include <linux/platform_data/usb-ehci-s5p.h>
29#include <linux/platform_data/usb-exynos.h> 29#include <linux/platform_data/usb-ohci-exynos.h>
30 30
31#include <asm/mach/arch.h> 31#include <asm/mach/arch.h>
32#include <asm/mach-types.h> 32#include <asm/mach-types.h>
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c
index d71672922b19..8270929d7b44 100644
--- a/arch/arm/mach-exynos/mach-smdkv310.c
+++ b/arch/arm/mach-exynos/mach-smdkv310.c
@@ -23,7 +23,7 @@
23#include <linux/platform_data/i2c-s3c2410.h> 23#include <linux/platform_data/i2c-s3c2410.h>
24#include <linux/platform_data/s3c-hsotg.h> 24#include <linux/platform_data/s3c-hsotg.h>
25#include <linux/platform_data/usb-ehci-s5p.h> 25#include <linux/platform_data/usb-ehci-s5p.h>
26#include <linux/platform_data/usb-exynos.h> 26#include <linux/platform_data/usb-ohci-exynos.h>
27 27
28#include <asm/mach/arch.h> 28#include <asm/mach/arch.h>
29#include <asm/mach-types.h> 29#include <asm/mach-types.h>
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig
index 37f513d1588e..8d5fa6ece014 100644
--- a/arch/arm/mach-s3c24xx/Kconfig
+++ b/arch/arm/mach-s3c24xx/Kconfig
@@ -36,7 +36,6 @@ config CPU_S3C2410
36 36
37config CPU_S3C2412 37config CPU_S3C2412
38 bool "SAMSUNG S3C2412" 38 bool "SAMSUNG S3C2412"
39 depends on ARCH_S3C24XX
40 select CPU_ARM926T 39 select CPU_ARM926T
41 select CPU_LLSERIAL_S3C2440 40 select CPU_LLSERIAL_S3C2440
42 select S3C2412_DMA if S3C24XX_DMA 41 select S3C2412_DMA if S3C24XX_DMA
@@ -46,7 +45,6 @@ config CPU_S3C2412
46 45
47config CPU_S3C2416 46config CPU_S3C2416
48 bool "SAMSUNG S3C2416/S3C2450" 47 bool "SAMSUNG S3C2416/S3C2450"
49 depends on ARCH_S3C24XX
50 select CPU_ARM926T 48 select CPU_ARM926T
51 select CPU_LLSERIAL_S3C2440 49 select CPU_LLSERIAL_S3C2440
52 select S3C2416_PM if PM 50 select S3C2416_PM if PM
@@ -81,7 +79,6 @@ config CPU_S3C244X
81 79
82config CPU_S3C2443 80config CPU_S3C2443
83 bool "SAMSUNG S3C2443" 81 bool "SAMSUNG S3C2443"
84 depends on ARCH_S3C24XX
85 select CPU_ARM920T 82 select CPU_ARM920T
86 select CPU_LLSERIAL_S3C2440 83 select CPU_LLSERIAL_S3C2440
87 select S3C2443_COMMON 84 select S3C2443_COMMON
@@ -133,7 +130,6 @@ config S3C24XX_SETUP_TS
133 130
134config S3C24XX_DMA 131config S3C24XX_DMA
135 bool "S3C2410 DMA support" 132 bool "S3C2410 DMA support"
136 depends on ARCH_S3C24XX
137 select S3C_DMA 133 select S3C_DMA
138 help 134 help
139 S3C2410 DMA support. This is needed for drivers like sound which 135 S3C2410 DMA support. This is needed for drivers like sound which
@@ -142,7 +138,7 @@ config S3C24XX_DMA
142 138
143config S3C2410_DMA_DEBUG 139config S3C2410_DMA_DEBUG
144 bool "S3C2410 DMA support debug" 140 bool "S3C2410 DMA support debug"
145 depends on ARCH_S3C24XX && S3C2410_DMA 141 depends on S3C2410_DMA
146 help 142 help
147 Enable debugging output for the DMA code. This option sends info 143 Enable debugging output for the DMA code. This option sends info
148 to the kernel log, at priority KERN_DEBUG. 144 to the kernel log, at priority KERN_DEBUG.
@@ -233,7 +229,7 @@ if CPU_S3C2410
233 229
234config S3C2410_CPUFREQ 230config S3C2410_CPUFREQ
235 bool 231 bool
236 depends on CPU_FREQ_S3C24XX && CPU_S3C2410 232 depends on CPU_FREQ_S3C24XX
237 select S3C2410_CPUFREQ_UTILS 233 select S3C2410_CPUFREQ_UTILS
238 help 234 help
239 CPU Frequency scaling support for S3C2410 235 CPU Frequency scaling support for S3C2410
@@ -320,7 +316,6 @@ config PM_H1940
320 316
321config MACH_N30 317config MACH_N30
322 bool "Acer N30 family" 318 bool "Acer N30 family"
323 select MACH_N35
324 select S3C_DEV_NAND 319 select S3C_DEV_NAND
325 select S3C_DEV_USB_HOST 320 select S3C_DEV_USB_HOST
326 help 321 help
@@ -380,14 +375,13 @@ if CPU_S3C2412
380 375
381config CPU_S3C2412_ONLY 376config CPU_S3C2412_ONLY
382 bool 377 bool
383 depends on ARCH_S3C24XX && !CPU_S3C2410 && \ 378 depends on !CPU_S3C2410 && !CPU_S3C2416 && !CPU_S3C2440 && \
384 !CPU_S3C2416 && !CPU_S3C2440 && !CPU_S3C2442 && \ 379 !CPU_S3C2442 && !CPU_S3C2443
385 !CPU_S3C2443 && CPU_S3C2412
386 default y 380 default y
387 381
388config S3C2412_CPUFREQ 382config S3C2412_CPUFREQ
389 bool 383 bool
390 depends on CPU_FREQ_S3C24XX && CPU_S3C2412 384 depends on CPU_FREQ_S3C24XX
391 default y 385 default y
392 select S3C2412_IOTIMING 386 select S3C2412_IOTIMING
393 help 387 help
@@ -642,7 +636,6 @@ comment "S3C2442 Boards"
642config MACH_NEO1973_GTA02 636config MACH_NEO1973_GTA02
643 bool "Openmoko GTA02 / Freerunner phone" 637 bool "Openmoko GTA02 / Freerunner phone"
644 select I2C 638 select I2C
645 select MACH_NEO1973
646 select MFD_PCF50633 639 select MFD_PCF50633
647 select PCF50633_GPIO 640 select PCF50633_GPIO
648 select POWER_SUPPLY 641 select POWER_SUPPLY
@@ -663,10 +656,7 @@ config MACH_RX1950
663 help 656 help
664 Say Y here if you're using HP iPAQ rx1950 657 Say Y here if you're using HP iPAQ rx1950
665 658
666config SMDK2440_CPU2442 659endif # CPU_S3C2442
667 bool "SMDM2440 with S3C2442 CPU module"
668
669endif # CPU_S3C2440
670 660
671if CPU_S3C2443 || CPU_S3C2416 661if CPU_S3C2443 || CPU_S3C2416
672 662
diff --git a/arch/arm/mach-s3c24xx/include/mach/dma.h b/arch/arm/mach-s3c24xx/include/mach/dma.h
index 6b72d5a4b377..b55da1d8cd8f 100644
--- a/arch/arm/mach-s3c24xx/include/mach/dma.h
+++ b/arch/arm/mach-s3c24xx/include/mach/dma.h
@@ -24,7 +24,6 @@
24*/ 24*/
25 25
26enum dma_ch { 26enum dma_ch {
27 DMACH_DT_PROP = -1, /* not yet supported, do not use */
28 DMACH_XD0 = 0, 27 DMACH_XD0 = 0,
29 DMACH_XD1, 28 DMACH_XD1,
30 DMACH_SDI, 29 DMACH_SDI,
diff --git a/arch/arm/mach-s3c24xx/regs-dsc.h b/arch/arm/mach-s3c24xx/regs-dsc.h
index 98fd4a05587c..61b3d1387d76 100644
--- a/arch/arm/mach-s3c24xx/regs-dsc.h
+++ b/arch/arm/mach-s3c24xx/regs-dsc.h
@@ -1,5 +1,4 @@
1/* arch/arm/mach-s3c2410/include/mach/regs-dsc.h 1/*
2 *
3 * Copyright (c) 2004 Simtec Electronics <linux@simtec.co.uk> 2 * Copyright (c) 2004 Simtec Electronics <linux@simtec.co.uk>
4 * http://www.simtec.co.uk/products/SWLINUX/ 3 * http://www.simtec.co.uk/products/SWLINUX/
5 * 4 *
@@ -12,209 +11,15 @@
12 11
13 12
14#ifndef __ASM_ARCH_REGS_DSC_H 13#ifndef __ASM_ARCH_REGS_DSC_H
15#define __ASM_ARCH_REGS_DSC_H "2440-dsc" 14#define __ASM_ARCH_REGS_DSC_H __FILE__
16 15
17#if defined(CONFIG_CPU_S3C2412) 16/* S3C2412 */
18#define S3C2412_DSC0 S3C2410_GPIOREG(0xdc) 17#define S3C2412_DSC0 S3C2410_GPIOREG(0xdc)
19#define S3C2412_DSC1 S3C2410_GPIOREG(0xe0) 18#define S3C2412_DSC1 S3C2410_GPIOREG(0xe0)
20#endif
21
22#if defined(CONFIG_CPU_S3C2416)
23#define S3C2416_DSC0 S3C2410_GPIOREG(0xc0)
24#define S3C2416_DSC1 S3C2410_GPIOREG(0xc4)
25#define S3C2416_DSC2 S3C2410_GPIOREG(0xc8)
26#define S3C2416_DSC3 S3C2410_GPIOREG(0x110)
27
28#define S3C2416_SELECT_DSC0 (0 << 30)
29#define S3C2416_SELECT_DSC1 (1 << 30)
30#define S3C2416_SELECT_DSC2 (2 << 30)
31#define S3C2416_SELECT_DSC3 (3 << 30)
32
33#define S3C2416_DSC_GETSHIFT(x) (x & 30)
34
35#define S3C2416_DSC0_CF (S3C2416_SELECT_DSC0 | 28)
36#define S3C2416_DSC0_CF_5mA (0 << 28)
37#define S3C2416_DSC0_CF_10mA (1 << 28)
38#define S3C2416_DSC0_CF_15mA (2 << 28)
39#define S3C2416_DSC0_CF_21mA (3 << 28)
40#define S3C2416_DSC0_CF_MASK (3 << 28)
41
42#define S3C2416_DSC0_nRBE (S3C2416_SELECT_DSC0 | 26)
43#define S3C2416_DSC0_nRBE_5mA (0 << 26)
44#define S3C2416_DSC0_nRBE_10mA (1 << 26)
45#define S3C2416_DSC0_nRBE_15mA (2 << 26)
46#define S3C2416_DSC0_nRBE_21mA (3 << 26)
47#define S3C2416_DSC0_nRBE_MASK (3 << 26)
48
49#define S3C2416_DSC0_nROE (S3C2416_SELECT_DSC0 | 24)
50#define S3C2416_DSC0_nROE_5mA (0 << 24)
51#define S3C2416_DSC0_nROE_10mA (1 << 24)
52#define S3C2416_DSC0_nROE_15mA (2 << 24)
53#define S3C2416_DSC0_nROE_21mA (3 << 24)
54#define S3C2416_DSC0_nROE_MASK (3 << 24)
55
56#endif
57
58#if defined(CONFIG_CPU_S3C244X)
59 19
20/* S3C2440 */
60#define S3C2440_DSC0 S3C2410_GPIOREG(0xc4) 21#define S3C2440_DSC0 S3C2410_GPIOREG(0xc4)
61#define S3C2440_DSC1 S3C2410_GPIOREG(0xc8) 22#define S3C2440_DSC1 S3C2410_GPIOREG(0xc8)
62 23
63#define S3C2440_SELECT_DSC0 (0)
64#define S3C2440_SELECT_DSC1 (1<<31)
65
66#define S3C2440_DSC_GETSHIFT(x) ((x) & 31)
67
68#define S3C2440_DSC0_DISABLE (1<<31)
69
70#define S3C2440_DSC0_ADDR (S3C2440_SELECT_DSC0 | 8)
71#define S3C2440_DSC0_ADDR_12mA (0<<8)
72#define S3C2440_DSC0_ADDR_10mA (1<<8)
73#define S3C2440_DSC0_ADDR_8mA (2<<8)
74#define S3C2440_DSC0_ADDR_6mA (3<<8)
75#define S3C2440_DSC0_ADDR_MASK (3<<8)
76
77/* D24..D31 */
78#define S3C2440_DSC0_DATA3 (S3C2440_SELECT_DSC0 | 6)
79#define S3C2440_DSC0_DATA3_12mA (0<<6)
80#define S3C2440_DSC0_DATA3_10mA (1<<6)
81#define S3C2440_DSC0_DATA3_8mA (2<<6)
82#define S3C2440_DSC0_DATA3_6mA (3<<6)
83#define S3C2440_DSC0_DATA3_MASK (3<<6)
84
85/* D16..D23 */
86#define S3C2440_DSC0_DATA2 (S3C2440_SELECT_DSC0 | 4)
87#define S3C2440_DSC0_DATA2_12mA (0<<4)
88#define S3C2440_DSC0_DATA2_10mA (1<<4)
89#define S3C2440_DSC0_DATA2_8mA (2<<4)
90#define S3C2440_DSC0_DATA2_6mA (3<<4)
91#define S3C2440_DSC0_DATA2_MASK (3<<4)
92
93/* D8..D15 */
94#define S3C2440_DSC0_DATA1 (S3C2440_SELECT_DSC0 | 2)
95#define S3C2440_DSC0_DATA1_12mA (0<<2)
96#define S3C2440_DSC0_DATA1_10mA (1<<2)
97#define S3C2440_DSC0_DATA1_8mA (2<<2)
98#define S3C2440_DSC0_DATA1_6mA (3<<2)
99#define S3C2440_DSC0_DATA1_MASK (3<<2)
100
101/* D0..D7 */
102#define S3C2440_DSC0_DATA0 (S3C2440_SELECT_DSC0 | 0)
103#define S3C2440_DSC0_DATA0_12mA (0<<0)
104#define S3C2440_DSC0_DATA0_10mA (1<<0)
105#define S3C2440_DSC0_DATA0_8mA (2<<0)
106#define S3C2440_DSC0_DATA0_6mA (3<<0)
107#define S3C2440_DSC0_DATA0_MASK (3<<0)
108
109#define S3C2440_DSC1_SCK1 (S3C2440_SELECT_DSC1 | 28)
110#define S3C2440_DSC1_SCK1_12mA (0<<28)
111#define S3C2440_DSC1_SCK1_10mA (1<<28)
112#define S3C2440_DSC1_SCK1_8mA (2<<28)
113#define S3C2440_DSC1_SCK1_6mA (3<<28)
114#define S3C2440_DSC1_SCK1_MASK (3<<28)
115
116#define S3C2440_DSC1_SCK0 (S3C2440_SELECT_DSC1 | 26)
117#define S3C2440_DSC1_SCK0_12mA (0<<26)
118#define S3C2440_DSC1_SCK0_10mA (1<<26)
119#define S3C2440_DSC1_SCK0_8mA (2<<26)
120#define S3C2440_DSC1_SCK0_6mA (3<<26)
121#define S3C2440_DSC1_SCK0_MASK (3<<26)
122
123#define S3C2440_DSC1_SCKE (S3C2440_SELECT_DSC1 | 24)
124#define S3C2440_DSC1_SCKE_10mA (0<<24)
125#define S3C2440_DSC1_SCKE_8mA (1<<24)
126#define S3C2440_DSC1_SCKE_6mA (2<<24)
127#define S3C2440_DSC1_SCKE_4mA (3<<24)
128#define S3C2440_DSC1_SCKE_MASK (3<<24)
129
130/* SDRAM nRAS/nCAS */
131#define S3C2440_DSC1_SDR (S3C2440_SELECT_DSC1 | 22)
132#define S3C2440_DSC1_SDR_10mA (0<<22)
133#define S3C2440_DSC1_SDR_8mA (1<<22)
134#define S3C2440_DSC1_SDR_6mA (2<<22)
135#define S3C2440_DSC1_SDR_4mA (3<<22)
136#define S3C2440_DSC1_SDR_MASK (3<<22)
137
138/* NAND Flash Controller */
139#define S3C2440_DSC1_NFC (S3C2440_SELECT_DSC1 | 20)
140#define S3C2440_DSC1_NFC_10mA (0<<20)
141#define S3C2440_DSC1_NFC_8mA (1<<20)
142#define S3C2440_DSC1_NFC_6mA (2<<20)
143#define S3C2440_DSC1_NFC_4mA (3<<20)
144#define S3C2440_DSC1_NFC_MASK (3<<20)
145
146/* nBE[0..3] */
147#define S3C2440_DSC1_nBE (S3C2440_SELECT_DSC1 | 18)
148#define S3C2440_DSC1_nBE_10mA (0<<18)
149#define S3C2440_DSC1_nBE_8mA (1<<18)
150#define S3C2440_DSC1_nBE_6mA (2<<18)
151#define S3C2440_DSC1_nBE_4mA (3<<18)
152#define S3C2440_DSC1_nBE_MASK (3<<18)
153
154#define S3C2440_DSC1_WOE (S3C2440_SELECT_DSC1 | 16)
155#define S3C2440_DSC1_WOE_10mA (0<<16)
156#define S3C2440_DSC1_WOE_8mA (1<<16)
157#define S3C2440_DSC1_WOE_6mA (2<<16)
158#define S3C2440_DSC1_WOE_4mA (3<<16)
159#define S3C2440_DSC1_WOE_MASK (3<<16)
160
161#define S3C2440_DSC1_CS7 (S3C2440_SELECT_DSC1 | 14)
162#define S3C2440_DSC1_CS7_10mA (0<<14)
163#define S3C2440_DSC1_CS7_8mA (1<<14)
164#define S3C2440_DSC1_CS7_6mA (2<<14)
165#define S3C2440_DSC1_CS7_4mA (3<<14)
166#define S3C2440_DSC1_CS7_MASK (3<<14)
167
168#define S3C2440_DSC1_CS6 (S3C2440_SELECT_DSC1 | 12)
169#define S3C2440_DSC1_CS6_10mA (0<<12)
170#define S3C2440_DSC1_CS6_8mA (1<<12)
171#define S3C2440_DSC1_CS6_6mA (2<<12)
172#define S3C2440_DSC1_CS6_4mA (3<<12)
173#define S3C2440_DSC1_CS6_MASK (3<<12)
174
175#define S3C2440_DSC1_CS5 (S3C2440_SELECT_DSC1 | 10)
176#define S3C2440_DSC1_CS5_10mA (0<<10)
177#define S3C2440_DSC1_CS5_8mA (1<<10)
178#define S3C2440_DSC1_CS5_6mA (2<<10)
179#define S3C2440_DSC1_CS5_4mA (3<<10)
180#define S3C2440_DSC1_CS5_MASK (3<<10)
181
182#define S3C2440_DSC1_CS4 (S3C2440_SELECT_DSC1 | 8)
183#define S3C2440_DSC1_CS4_10mA (0<<8)
184#define S3C2440_DSC1_CS4_8mA (1<<8)
185#define S3C2440_DSC1_CS4_6mA (2<<8)
186#define S3C2440_DSC1_CS4_4mA (3<<8)
187#define S3C2440_DSC1_CS4_MASK (3<<8)
188
189#define S3C2440_DSC1_CS3 (S3C2440_SELECT_DSC1 | 6)
190#define S3C2440_DSC1_CS3_10mA (0<<6)
191#define S3C2440_DSC1_CS3_8mA (1<<6)
192#define S3C2440_DSC1_CS3_6mA (2<<6)
193#define S3C2440_DSC1_CS3_4mA (3<<6)
194#define S3C2440_DSC1_CS3_MASK (3<<6)
195
196#define S3C2440_DSC1_CS2 (S3C2440_SELECT_DSC1 | 4)
197#define S3C2440_DSC1_CS2_10mA (0<<4)
198#define S3C2440_DSC1_CS2_8mA (1<<4)
199#define S3C2440_DSC1_CS2_6mA (2<<4)
200#define S3C2440_DSC1_CS2_4mA (3<<4)
201#define S3C2440_DSC1_CS2_MASK (3<<4)
202
203#define S3C2440_DSC1_CS1 (S3C2440_SELECT_DSC1 | 2)
204#define S3C2440_DSC1_CS1_10mA (0<<2)
205#define S3C2440_DSC1_CS1_8mA (1<<2)
206#define S3C2440_DSC1_CS1_6mA (2<<2)
207#define S3C2440_DSC1_CS1_4mA (3<<2)
208#define S3C2440_DSC1_CS1_MASK (3<<2)
209
210#define S3C2440_DSC1_CS0 (S3C2440_SELECT_DSC1 | 0)
211#define S3C2440_DSC1_CS0_10mA (0<<0)
212#define S3C2440_DSC1_CS0_8mA (1<<0)
213#define S3C2440_DSC1_CS0_6mA (2<<0)
214#define S3C2440_DSC1_CS0_4mA (3<<0)
215#define S3C2440_DSC1_CS0_MASK (3<<0)
216
217#endif /* CONFIG_CPU_S3C2440 */
218
219#endif /* __ASM_ARCH_REGS_DSC_H */ 24#endif /* __ASM_ARCH_REGS_DSC_H */
220 25
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile
index f9ce1dc28ce4..31d0c9101272 100644
--- a/arch/arm/mach-s3c64xx/Makefile
+++ b/arch/arm/mach-s3c64xx/Makefile
@@ -32,7 +32,6 @@ obj-$(CONFIG_S3C64XX_DMA) += dma.o
32 32
33obj-y += dev-uart.o 33obj-y += dev-uart.o
34obj-y += dev-audio.o 34obj-y += dev-audio.o
35obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o
36 35
37# Device setup 36# Device setup
38 37
diff --git a/arch/arm/mach-s3c64xx/include/mach/dma.h b/arch/arm/mach-s3c64xx/include/mach/dma.h
index 57b1ff4b2d7c..fe1a98cf0e4c 100644
--- a/arch/arm/mach-s3c64xx/include/mach/dma.h
+++ b/arch/arm/mach-s3c64xx/include/mach/dma.h
@@ -21,7 +21,6 @@
21 */ 21 */
22enum dma_ch { 22enum dma_ch {
23 /* DMA0/SDMA0 */ 23 /* DMA0/SDMA0 */
24 DMACH_DT_PROP = -1, /* not yet supported, do not use */
25 DMACH_UART0 = 0, 24 DMACH_UART0 = 0,
26 DMACH_UART0_SRC2, 25 DMACH_UART0_SRC2,
27 DMACH_UART1, 26 DMACH_UART1,
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index a9d52167e16e..91c2d72e689b 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -37,14 +37,6 @@ if PLAT_SAMSUNG
37 37
38comment "Boot options" 38comment "Boot options"
39 39
40config S3C_BOOT_WATCHDOG
41 bool "S3C Initialisation watchdog"
42 depends on S3C2410_WATCHDOG
43 help
44 Say y to enable the watchdog during the kernel decompression
45 stage. If the kernel fails to uncompress, then the watchdog
46 will trigger a reset and the system should restart.
47
48config S3C_BOOT_ERROR_RESET 40config S3C_BOOT_ERROR_RESET
49 bool "S3C Reboot on decompression error" 41 bool "S3C Reboot on decompression error"
50 help 42 help
@@ -125,12 +117,6 @@ config SAMSUNG_GPIOLIB_4BIT
125 configuration. GPIOlib shall be compiled only for S3C64XX and S5P 117 configuration. GPIOlib shall be compiled only for S3C64XX and S5P
126 series of processors. 118 series of processors.
127 119
128config S3C_GPIO_CFG_S3C64XX
129 bool
130 help
131 Internal configuration to enable S3C64XX style GPIO configuration
132 functions.
133
134config S5P_GPIO_DRVSTR 120config S5P_GPIO_DRVSTR
135 bool 121 bool
136 help 122 help
diff --git a/arch/arm/plat-samsung/dma-ops.c b/arch/arm/plat-samsung/dma-ops.c
index 71d58ddea9c1..ec0d731b0e7b 100644
--- a/arch/arm/plat-samsung/dma-ops.c
+++ b/arch/arm/plat-samsung/dma-ops.c
@@ -23,23 +23,15 @@ static unsigned samsung_dmadev_request(enum dma_ch dma_ch,
23 struct device *dev, char *ch_name) 23 struct device *dev, char *ch_name)
24{ 24{
25 dma_cap_mask_t mask; 25 dma_cap_mask_t mask;
26 void *filter_param;
27 26
28 dma_cap_zero(mask); 27 dma_cap_zero(mask);
29 dma_cap_set(param->cap, mask); 28 dma_cap_set(param->cap, mask);
30 29
31 /*
32 * If a dma channel property of a device node from device tree is
33 * specified, use that as the fliter parameter.
34 */
35 filter_param = (dma_ch == DMACH_DT_PROP) ?
36 (void *)param->dt_dmach_prop : (void *)dma_ch;
37
38 if (dev->of_node) 30 if (dev->of_node)
39 return (unsigned)dma_request_slave_channel(dev, ch_name); 31 return (unsigned)dma_request_slave_channel(dev, ch_name);
40 else 32 else
41 return (unsigned)dma_request_channel(mask, pl330_filter, 33 return (unsigned)dma_request_channel(mask, pl330_filter,
42 filter_param); 34 (void *)dma_ch);
43} 35}
44 36
45static int samsung_dmadev_release(unsigned ch, void *param) 37static int samsung_dmadev_release(unsigned ch, void *param)
diff --git a/arch/arm/plat-samsung/include/plat/dma-ops.h b/arch/arm/plat-samsung/include/plat/dma-ops.h
index 114178268b75..ce6d7634b6cb 100644
--- a/arch/arm/plat-samsung/include/plat/dma-ops.h
+++ b/arch/arm/plat-samsung/include/plat/dma-ops.h
@@ -18,7 +18,6 @@
18 18
19struct samsung_dma_req { 19struct samsung_dma_req {
20 enum dma_transaction_type cap; 20 enum dma_transaction_type cap;
21 struct property *dt_dmach_prop;
22 struct s3c2410_dma_client *client; 21 struct s3c2410_dma_client *client;
23}; 22};
24 23
diff --git a/arch/arm/plat-samsung/include/plat/dma-pl330.h b/arch/arm/plat-samsung/include/plat/dma-pl330.h
index d384a8016b47..abe07fae71db 100644
--- a/arch/arm/plat-samsung/include/plat/dma-pl330.h
+++ b/arch/arm/plat-samsung/include/plat/dma-pl330.h
@@ -21,7 +21,6 @@
21 * use these just as IDs. 21 * use these just as IDs.
22 */ 22 */
23enum dma_ch { 23enum dma_ch {
24 DMACH_DT_PROP = -1,
25 DMACH_UART0_RX = 0, 24 DMACH_UART0_RX = 0,
26 DMACH_UART0_TX, 25 DMACH_UART0_TX,
27 DMACH_UART1_RX, 26 DMACH_UART1_RX,
diff --git a/arch/arm/plat-samsung/include/plat/rtc-core.h b/arch/arm/plat-samsung/include/plat/rtc-core.h
index 21d8594d37ca..7b542f7b7938 100644
--- a/arch/arm/plat-samsung/include/plat/rtc-core.h
+++ b/arch/arm/plat-samsung/include/plat/rtc-core.h
@@ -19,7 +19,7 @@
19/* re-define device name depending on support. */ 19/* re-define device name depending on support. */
20static inline void s3c_rtc_setname(char *name) 20static inline void s3c_rtc_setname(char *name)
21{ 21{
22#if defined(CONFIG_SAMSUNG_DEV_RTC) || defined(CONFIG_PLAT_S3C24XX) 22#if defined(CONFIG_S3C_DEV_RTC) || defined(CONFIG_PLAT_S3C24XX)
23 s3c_device_rtc.name = name; 23 s3c_device_rtc.name = name;
24#endif 24#endif
25} 25}
diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h
index 9b87f38fc4f4..5560586abec0 100644
--- a/arch/arm/plat-samsung/include/plat/sdhci.h
+++ b/arch/arm/plat-samsung/include/plat/sdhci.h
@@ -206,7 +206,7 @@ static inline void s3c6400_default_sdhci2(void) { }
206 206
207/* S5P64X0 SDHCI setup */ 207/* S5P64X0 SDHCI setup */
208 208
209#ifdef CONFIG_S5P64X0_SETUP_SDHCI 209#ifdef CONFIG_S5P64X0_SETUP_SDHCI_GPIO
210static inline void s5p64x0_default_sdhci0(void) 210static inline void s5p64x0_default_sdhci0(void)
211{ 211{
212#ifdef CONFIG_S3C_DEV_HSMMC 212#ifdef CONFIG_S3C_DEV_HSMMC
@@ -241,7 +241,7 @@ static inline void s5p64x0_default_sdhci1(void) { }
241static inline void s5p6440_default_sdhci2(void) { } 241static inline void s5p6440_default_sdhci2(void) { }
242static inline void s5p6450_default_sdhci2(void) { } 242static inline void s5p6450_default_sdhci2(void) { }
243 243
244#endif /* CONFIG_S5P64X0_SETUP_SDHCI */ 244#endif /* CONFIG_S5P64X0_SETUP_SDHCI_GPIO */
245 245
246/* S5PC100 SDHCI setup */ 246/* S5PC100 SDHCI setup */
247 247
diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c
index e3b7e85120e4..0bd6f47dfdc4 100644
--- a/drivers/usb/host/ohci-exynos.c
+++ b/drivers/usb/host/ohci-exynos.c
@@ -14,9 +14,10 @@
14#include <linux/clk.h> 14#include <linux/clk.h>
15#include <linux/of.h> 15#include <linux/of.h>
16#include <linux/platform_device.h> 16#include <linux/platform_device.h>
17#include <linux/platform_data/usb-exynos.h> 17#include <linux/platform_data/usb-ohci-exynos.h>
18#include <linux/usb/phy.h> 18#include <linux/usb/phy.h>
19#include <linux/usb/samsung_usb_phy.h> 19#include <linux/usb/samsung_usb_phy.h>
20
20#include <plat/usb-phy.h> 21#include <plat/usb-phy.h>
21 22
22struct exynos_ohci_hcd { 23struct exynos_ohci_hcd {
diff --git a/include/linux/platform_data/usb-exynos.h b/include/linux/platform_data/usb-ohci-exynos.h
index c256c595be5e..c256c595be5e 100644
--- a/include/linux/platform_data/usb-exynos.h
+++ b/include/linux/platform_data/usb-ohci-exynos.h