aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-01-25 21:19:18 -0500
committerBen Dooks <ben-linux@fluff.org>2010-02-20 17:32:01 -0500
commit88fc68a280709f3fb9488986ab39eac330d17b6d (patch)
treeb9f9a91f3bd6e735cf611f3cec7438f86fd3e4f7
parented618aff8a952f712caf1d475e0947a32a8b6606 (diff)
ARM: S3C64XX: Move device and device setup into mach-s3c64xx
Move the S3C64XX specific device and setup files into mach-s3c64xx as they are unlikely to be used outside of this code. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
-rw-r--r--arch/arm/mach-s3c64xx/Kconfig26
-rw-r--r--arch/arm/mach-s3c64xx/Makefile13
-rw-r--r--arch/arm/mach-s3c64xx/dev-adc.c (renamed from arch/arm/plat-s3c64xx/dev-adc.c)0
-rw-r--r--arch/arm/mach-s3c64xx/dev-audio.c (renamed from arch/arm/plat-s3c64xx/dev-audio.c)0
-rw-r--r--arch/arm/mach-s3c64xx/dev-rtc.c (renamed from arch/arm/plat-s3c64xx/dev-rtc.c)0
-rw-r--r--arch/arm/mach-s3c64xx/dev-spi.c (renamed from arch/arm/plat-s3c64xx/dev-spi.c)2
-rw-r--r--arch/arm/mach-s3c64xx/dev-uart.c (renamed from arch/arm/plat-s3c64xx/dev-uart.c)0
-rw-r--r--arch/arm/mach-s3c64xx/include/mach/spi-clocks.h (renamed from arch/arm/plat-s3c64xx/include/plat/spi-clocks.h)2
-rw-r--r--arch/arm/mach-s3c64xx/setup-fb-24bpp.c (renamed from arch/arm/plat-s3c64xx/setup-fb-24bpp.c)0
-rw-r--r--arch/arm/mach-s3c64xx/setup-i2c0.c (renamed from arch/arm/plat-s3c64xx/setup-i2c0.c)0
-rw-r--r--arch/arm/mach-s3c64xx/setup-i2c1.c (renamed from arch/arm/plat-s3c64xx/setup-i2c1.c)0
-rw-r--r--arch/arm/mach-s3c64xx/setup-sdhci-gpio.c (renamed from arch/arm/plat-s3c64xx/setup-sdhci-gpio.c)0
-rw-r--r--arch/arm/plat-s3c64xx/Kconfig26
-rw-r--r--arch/arm/plat-s3c64xx/Makefile15
14 files changed, 40 insertions, 44 deletions
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig
index ce32e4997d76..15e065ef19a5 100644
--- a/arch/arm/mach-s3c64xx/Kconfig
+++ b/arch/arm/mach-s3c64xx/Kconfig
@@ -26,6 +26,32 @@ config S3C64XX_SETUP_SDHCI
26 Internal configuration for default SDHCI setup for S3C6400 and 26 Internal configuration for default SDHCI setup for S3C6400 and
27 S3C6410 SoCs. 27 S3C6410 SoCs.
28 28
29# platform specific device setup
30
31config S3C64XX_SETUP_I2C0
32 bool
33 default y
34 help
35 Common setup code for i2c bus 0.
36
37 Note, currently since i2c0 is always compiled, this setup helper
38 is always compiled with it.
39
40config S3C64XX_SETUP_I2C1
41 bool
42 help
43 Common setup code for i2c bus 1.
44
45config S3C64XX_SETUP_FB_24BPP
46 bool
47 help
48 Common setup code for S3C64XX with an 24bpp RGB display helper.
49
50config S3C64XX_SETUP_SDHCI_GPIO
51 bool
52 help
53 Common setup code for S3C64XX SDHCI GPIO configurations
54
29# S36400 Macchine support 55# S36400 Macchine support
30 56
31config MACH_SMDK6400 57config MACH_SMDK6400
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile
index 103bed48b46e..49b71d5f2e59 100644
--- a/arch/arm/mach-s3c64xx/Makefile
+++ b/arch/arm/mach-s3c64xx/Makefile
@@ -18,9 +18,13 @@ obj-$(CONFIG_CPU_S3C6410) += s3c6410.o
18obj-y += irq.o 18obj-y += irq.o
19obj-y += irq-eint.o 19obj-y += irq-eint.o
20 20
21# setup support 21# Device setup
22 22
23obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
24obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o
23obj-$(CONFIG_S3C64XX_SETUP_SDHCI) += setup-sdhci.o 25obj-$(CONFIG_S3C64XX_SETUP_SDHCI) += setup-sdhci.o
26obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o
27obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
24 28
25# PM 29# PM
26 30
@@ -33,3 +37,10 @@ obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o
33obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o 37obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o
34obj-$(CONFIG_MACH_NCP) += mach-ncp.o 38obj-$(CONFIG_MACH_NCP) += mach-ncp.o
35obj-$(CONFIG_MACH_HMT) += mach-hmt.o 39obj-$(CONFIG_MACH_HMT) += mach-hmt.o
40
41# device support
42
43obj-y += dev-uart.o
44obj-y += dev-rtc.o
45obj-$(CONFIG_S3C_ADC) += dev-adc.o
46obj-$(CONFIG_SND_S3C24XX_SOC) += dev-audio.o
diff --git a/arch/arm/plat-s3c64xx/dev-adc.c b/arch/arm/mach-s3c64xx/dev-adc.c
index fafef9b6bcfa..fafef9b6bcfa 100644
--- a/arch/arm/plat-s3c64xx/dev-adc.c
+++ b/arch/arm/mach-s3c64xx/dev-adc.c
diff --git a/arch/arm/plat-s3c64xx/dev-audio.c b/arch/arm/mach-s3c64xx/dev-audio.c
index aaffb8066707..aaffb8066707 100644
--- a/arch/arm/plat-s3c64xx/dev-audio.c
+++ b/arch/arm/mach-s3c64xx/dev-audio.c
diff --git a/arch/arm/plat-s3c64xx/dev-rtc.c b/arch/arm/mach-s3c64xx/dev-rtc.c
index b9e7a05f0129..b9e7a05f0129 100644
--- a/arch/arm/plat-s3c64xx/dev-rtc.c
+++ b/arch/arm/mach-s3c64xx/dev-rtc.c
diff --git a/arch/arm/plat-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c
index 0c20d27d9b65..29c32d088515 100644
--- a/arch/arm/plat-s3c64xx/dev-spi.c
+++ b/arch/arm/mach-s3c64xx/dev-spi.c
@@ -17,8 +17,8 @@
17#include <mach/map.h> 17#include <mach/map.h>
18#include <mach/gpio.h> 18#include <mach/gpio.h>
19#include <mach/gpio-bank-c.h> 19#include <mach/gpio-bank-c.h>
20#include <mach/spi-clocks.h>
20 21
21#include <plat/spi-clocks.h>
22#include <plat/s3c64xx-spi.h> 22#include <plat/s3c64xx-spi.h>
23#include <plat/gpio-cfg.h> 23#include <plat/gpio-cfg.h>
24#include <plat/irqs.h> 24#include <plat/irqs.h>
diff --git a/arch/arm/plat-s3c64xx/dev-uart.c b/arch/arm/mach-s3c64xx/dev-uart.c
index f797f748b999..f797f748b999 100644
--- a/arch/arm/plat-s3c64xx/dev-uart.c
+++ b/arch/arm/mach-s3c64xx/dev-uart.c
diff --git a/arch/arm/plat-s3c64xx/include/plat/spi-clocks.h b/arch/arm/mach-s3c64xx/include/mach/spi-clocks.h
index 524bdae3f625..9d0c43b4b687 100644
--- a/arch/arm/plat-s3c64xx/include/plat/spi-clocks.h
+++ b/arch/arm/mach-s3c64xx/include/mach/spi-clocks.h
@@ -1,4 +1,4 @@
1/* linux/arch/arm/plat-s3c64xx/include/plat/spi-clocks.h 1/* linux/arch/arm/mach-s3c64xx/include/mach/spi-clocks.h
2 * 2 *
3 * Copyright (C) 2009 Samsung Electronics Ltd. 3 * Copyright (C) 2009 Samsung Electronics Ltd.
4 * Jaswinder Singh <jassi.brar@samsung.com> 4 * Jaswinder Singh <jassi.brar@samsung.com>
diff --git a/arch/arm/plat-s3c64xx/setup-fb-24bpp.c b/arch/arm/mach-s3c64xx/setup-fb-24bpp.c
index 8e28e448dd20..8e28e448dd20 100644
--- a/arch/arm/plat-s3c64xx/setup-fb-24bpp.c
+++ b/arch/arm/mach-s3c64xx/setup-fb-24bpp.c
diff --git a/arch/arm/plat-s3c64xx/setup-i2c0.c b/arch/arm/mach-s3c64xx/setup-i2c0.c
index d1b11e6e77e8..d1b11e6e77e8 100644
--- a/arch/arm/plat-s3c64xx/setup-i2c0.c
+++ b/arch/arm/mach-s3c64xx/setup-i2c0.c
diff --git a/arch/arm/plat-s3c64xx/setup-i2c1.c b/arch/arm/mach-s3c64xx/setup-i2c1.c
index 2dce57d8c6f8..2dce57d8c6f8 100644
--- a/arch/arm/plat-s3c64xx/setup-i2c1.c
+++ b/arch/arm/mach-s3c64xx/setup-i2c1.c
diff --git a/arch/arm/plat-s3c64xx/setup-sdhci-gpio.c b/arch/arm/mach-s3c64xx/setup-sdhci-gpio.c
index a58c0cc7ba5e..a58c0cc7ba5e 100644
--- a/arch/arm/plat-s3c64xx/setup-sdhci-gpio.c
+++ b/arch/arm/mach-s3c64xx/setup-sdhci-gpio.c
diff --git a/arch/arm/plat-s3c64xx/Kconfig b/arch/arm/plat-s3c64xx/Kconfig
index 37b4519fb832..4edb580a02b7 100644
--- a/arch/arm/plat-s3c64xx/Kconfig
+++ b/arch/arm/plat-s3c64xx/Kconfig
@@ -46,30 +46,4 @@ config S3C64XX_DMA
46 bool "S3C64XX DMA" 46 bool "S3C64XX DMA"
47 select S3C_DMA 47 select S3C_DMA
48 48
49# platform specific device setup
50
51config S3C64XX_SETUP_I2C0
52 bool
53 default y
54 help
55 Common setup code for i2c bus 0.
56
57 Note, currently since i2c0 is always compiled, this setup helper
58 is always compiled with it.
59
60config S3C64XX_SETUP_I2C1
61 bool
62 help
63 Common setup code for i2c bus 1.
64
65config S3C64XX_SETUP_FB_24BPP
66 bool
67 help
68 Common setup code for S3C64XX with an 24bpp RGB display helper.
69
70config S3C64XX_SETUP_SDHCI_GPIO
71 bool
72 help
73 Common setup code for S3C64XX SDHCI GPIO configurations
74
75endif 49endif
diff --git a/arch/arm/plat-s3c64xx/Makefile b/arch/arm/plat-s3c64xx/Makefile
index 3e52dcdb3648..187b779a2bdc 100644
--- a/arch/arm/plat-s3c64xx/Makefile
+++ b/arch/arm/plat-s3c64xx/Makefile
@@ -11,9 +11,6 @@ obj-n := dummy.o
11obj- := 11obj- :=
12 12
13# Core files 13# Core files
14
15obj-y += dev-uart.o
16obj-y += dev-rtc.o
17obj-y += cpu.o 14obj-y += cpu.o
18obj-y += clock.o 15obj-y += clock.o
19obj-y += gpiolib.o 16obj-y += gpiolib.o
@@ -33,15 +30,3 @@ obj-$(CONFIG_PM) += sleep.o
33 30
34obj-$(CONFIG_S3C64XX_DMA) += dma.o 31obj-$(CONFIG_S3C64XX_DMA) += dma.o
35 32
36# ADC support
37
38obj-$(CONFIG_S3C_ADC) += dev-adc.o
39
40# Device setup
41
42obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
43obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o
44obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o
45obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
46obj-$(CONFIG_SND_S3C24XX_SOC) += dev-audio.o
47obj-$(CONFIG_SPI_S3C64XX) += dev-spi.o