aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-s5pc100/Kconfig8
-rw-r--r--arch/arm/mach-s5pc100/Makefile2
-rw-r--r--arch/arm/mach-s5pc100/setup-i2c0.c (renamed from arch/arm/plat-s5pc1xx/setup-i2c0.c)4
-rw-r--r--arch/arm/mach-s5pc100/setup-i2c1.c (renamed from arch/arm/plat-s5pc1xx/setup-i2c1.c)4
-rw-r--r--arch/arm/plat-s5pc1xx/Kconfig14
-rw-r--r--arch/arm/plat-s5pc1xx/Makefile2
6 files changed, 12 insertions, 22 deletions
diff --git a/arch/arm/mach-s5pc100/Kconfig b/arch/arm/mach-s5pc100/Kconfig
index 7d9b68c8fef..8593337784e 100644
--- a/arch/arm/mach-s5pc100/Kconfig
+++ b/arch/arm/mach-s5pc100/Kconfig
@@ -23,6 +23,11 @@ config S5PC100_SETUP_SDHCI
23 help 23 help
24 Internal helper functions for S5PC100 based SDHCI systems 24 Internal helper functions for S5PC100 based SDHCI systems
25 25
26config S5PC100_SETUP_I2C1
27 bool
28 help
29 Common setup code for i2c bus 1.
30
26config MACH_SMDKC100 31config MACH_SMDKC100
27 bool "SMDKC100" 32 bool "SMDKC100"
28 select CPU_S5PC100 33 select CPU_S5PC100
@@ -31,9 +36,8 @@ config MACH_SMDKC100
31 select S3C_DEV_HSMMC 36 select S3C_DEV_HSMMC
32 select S3C_DEV_HSMMC1 37 select S3C_DEV_HSMMC1
33 select S3C_DEV_HSMMC2 38 select S3C_DEV_HSMMC2
34 select S5PC1XX_SETUP_I2C0
35 select S5PC1XX_SETUP_I2C1
36 select S5PC100_SETUP_FB_24BPP 39 select S5PC100_SETUP_FB_24BPP
40 select S5PC100_SETUP_I2C1
37 select S5PC100_SETUP_SDHCI 41 select S5PC100_SETUP_SDHCI
38 help 42 help
39 Machine support for the Samsung SMDKC100 43 Machine support for the Samsung SMDKC100
diff --git a/arch/arm/mach-s5pc100/Makefile b/arch/arm/mach-s5pc100/Makefile
index 1d1276c29cf..373bc546eae 100644
--- a/arch/arm/mach-s5pc100/Makefile
+++ b/arch/arm/mach-s5pc100/Makefile
@@ -12,10 +12,12 @@ obj- :=
12# Core support for S5PC100 system 12# Core support for S5PC100 system
13 13
14obj-$(CONFIG_CPU_S5PC100) += cpu.o gpiolib.o 14obj-$(CONFIG_CPU_S5PC100) += cpu.o gpiolib.o
15obj-$(CONFIG_CPU_S5PC100) += setup-i2c0.o
15 16
16# Helper and device support 17# Helper and device support
17 18
18obj-$(CONFIG_S5PC100_SETUP_FB_24BPP) += setup-fb-24bpp.o 19obj-$(CONFIG_S5PC100_SETUP_FB_24BPP) += setup-fb-24bpp.o
20obj-$(CONFIG_S5PC100_SETUP_I2C1) += setup-i2c1.o
19obj-$(CONFIG_S5PC100_SETUP_SDHCI) += setup-sdhci.o 21obj-$(CONFIG_S5PC100_SETUP_SDHCI) += setup-sdhci.o
20 22
21# machine support 23# machine support
diff --git a/arch/arm/plat-s5pc1xx/setup-i2c0.c b/arch/arm/mach-s5pc100/setup-i2c0.c
index 5e4a7c3a231..dd3174e6ecc 100644
--- a/arch/arm/plat-s5pc1xx/setup-i2c0.c
+++ b/arch/arm/mach-s5pc100/setup-i2c0.c
@@ -1,9 +1,9 @@
1/* linux/arch/arm/plat-s5pc1xx/setup-i2c0.c 1/* linux/arch/arm/mach-s5pc100/setup-i2c0.c
2 * 2 *
3 * Copyright 2009 Samsung Electronics Co. 3 * Copyright 2009 Samsung Electronics Co.
4 * Byungho Min <bhmin@samsung.com> 4 * Byungho Min <bhmin@samsung.com>
5 * 5 *
6 * Base S5PC1XX I2C bus 0 gpio configuration 6 * Base S5PC100 I2C bus 0 gpio configuration
7 * 7 *
8 * Based on plat-s3c64xx/setup-i2c0.c 8 * Based on plat-s3c64xx/setup-i2c0.c
9 * 9 *
diff --git a/arch/arm/plat-s5pc1xx/setup-i2c1.c b/arch/arm/mach-s5pc100/setup-i2c1.c
index a0a8b4ae6ad..d1fec26b69e 100644
--- a/arch/arm/plat-s5pc1xx/setup-i2c1.c
+++ b/arch/arm/mach-s5pc100/setup-i2c1.c
@@ -1,9 +1,9 @@
1/* linux/arch/arm/plat-s3c64xx/setup-i2c1.c 1/* linux/arch/arm/mach-s5pc100/setup-i2c1.c
2 * 2 *
3 * Copyright 2009 Samsung Electronics Co. 3 * Copyright 2009 Samsung Electronics Co.
4 * Byungho Min <bhmin@samsung.com> 4 * Byungho Min <bhmin@samsung.com>
5 * 5 *
6 * Base S5PC1XX I2C bus 1 gpio configuration 6 * Base S5PC100 I2C bus 1 gpio configuration
7 * 7 *
8 * Based on plat-s3c64xx/setup-i2c1.c 8 * Based on plat-s3c64xx/setup-i2c1.c
9 * 9 *
diff --git a/arch/arm/plat-s5pc1xx/Kconfig b/arch/arm/plat-s5pc1xx/Kconfig
index 708f7a0de06..c7bd2bbda23 100644
--- a/arch/arm/plat-s5pc1xx/Kconfig
+++ b/arch/arm/plat-s5pc1xx/Kconfig
@@ -39,20 +39,6 @@ config CPU_S5PC100_CLOCK
39 39
40# platform specific device setup 40# platform specific device setup
41 41
42config S5PC1XX_SETUP_I2C0
43 bool
44 default y
45 help
46 Common setup code for i2c bus 0.
47
48 Note, currently since i2c0 is always compiled, this setup helper
49 is always compiled with it.
50
51config S5PC1XX_SETUP_I2C1
52 bool
53 help
54 Common setup code for i2c bus 1.
55
56config S5PC1XX_SETUP_SDHCI_GPIO 42config S5PC1XX_SETUP_SDHCI_GPIO
57 bool 43 bool
58 help 44 help
diff --git a/arch/arm/plat-s5pc1xx/Makefile b/arch/arm/plat-s5pc1xx/Makefile
index a5b90c0cc48..9ce6409a9e0 100644
--- a/arch/arm/plat-s5pc1xx/Makefile
+++ b/arch/arm/plat-s5pc1xx/Makefile
@@ -23,6 +23,4 @@ obj-$(CONFIG_CPU_S5PC100_CLOCK) += s5pc100-clock.o
23 23
24# Device setup 24# Device setup
25 25
26obj-$(CONFIG_S5PC1XX_SETUP_I2C0) += setup-i2c0.o
27obj-$(CONFIG_S5PC1XX_SETUP_I2C1) += setup-i2c1.o
28obj-$(CONFIG_S5PC1XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o 26obj-$(CONFIG_S5PC1XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o