aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2011-02-14 01:05:27 -0500
committerKukjin Kim <kgene.kim@samsung.com>2011-02-21 23:51:15 -0500
commit10606aadb046d008c88d1a99b309357ca33d590e (patch)
treed1f49c21bc6d283fb78cad44e16334721714d652
parentd11135ca4f6e626e1c8aa78de6d472a11a9e9811 (diff)
ARM: EXYNOS4: Update Kconfig and Makefile for the new ARCH_EXYNOS4
This patch changes the Kconfig and Makefile for the new ARCH_EXYNOS4. It also updates arch/arm/Kconfig, Makeifile and arch/arm/mm/Kconfig to include support for the new ARCH_EXYNOS4. Cc: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--arch/arm/Kconfig12
-rw-r--r--arch/arm/Makefile2
-rw-r--r--arch/arm/mach-exynos4/Kconfig (renamed from arch/arm/mach-s5pv310/Kconfig)105
-rw-r--r--arch/arm/mach-exynos4/Makefile43
-rw-r--r--arch/arm/mach-exynos4/Makefile.boot (renamed from arch/arm/mach-s5pv310/Makefile.boot)0
-rw-r--r--arch/arm/mach-s5pv310/Makefile43
-rw-r--r--arch/arm/mm/Kconfig2
-rw-r--r--arch/arm/plat-s5p/Kconfig8
8 files changed, 105 insertions, 110 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 166efa2a19c..ec3bf985613 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -760,8 +760,8 @@ config ARCH_S5PV210
760 help 760 help
761 Samsung S5PV210/S5PC110 series based systems 761 Samsung S5PV210/S5PC110 series based systems
762 762
763config ARCH_S5PV310 763config ARCH_EXYNOS4
764 bool "Samsung S5PV310/S5PC210" 764 bool "Samsung EXYNOS4"
765 select CPU_V7 765 select CPU_V7
766 select ARCH_SPARSEMEM_ENABLE 766 select ARCH_SPARSEMEM_ENABLE
767 select GENERIC_GPIO 767 select GENERIC_GPIO
@@ -772,7 +772,7 @@ config ARCH_S5PV310
772 select HAVE_S3C2410_I2C if I2C 772 select HAVE_S3C2410_I2C if I2C
773 select HAVE_S3C2410_WATCHDOG if WATCHDOG 773 select HAVE_S3C2410_WATCHDOG if WATCHDOG
774 help 774 help
775 Samsung S5PV310 series based systems 775 Samsung EXYNOS4 series based systems
776 776
777config ARCH_SHARK 777config ARCH_SHARK
778 bool "Shark" 778 bool "Shark"
@@ -991,7 +991,7 @@ source "arch/arm/mach-s5pc100/Kconfig"
991 991
992source "arch/arm/mach-s5pv210/Kconfig" 992source "arch/arm/mach-s5pv210/Kconfig"
993 993
994source "arch/arm/mach-s5pv310/Kconfig" 994source "arch/arm/mach-exynos4/Kconfig"
995 995
996source "arch/arm/mach-shmobile/Kconfig" 996source "arch/arm/mach-shmobile/Kconfig"
997 997
@@ -1278,7 +1278,7 @@ config SMP
1278 depends on GENERIC_CLOCKEVENTS 1278 depends on GENERIC_CLOCKEVENTS
1279 depends on REALVIEW_EB_ARM11MP || REALVIEW_EB_A9MP || \ 1279 depends on REALVIEW_EB_ARM11MP || REALVIEW_EB_A9MP || \
1280 MACH_REALVIEW_PB11MP || MACH_REALVIEW_PBX || ARCH_OMAP4 || \ 1280 MACH_REALVIEW_PB11MP || MACH_REALVIEW_PBX || ARCH_OMAP4 || \
1281 ARCH_S5PV310 || ARCH_TEGRA || ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || \ 1281 ARCH_EXYNOS4 || ARCH_TEGRA || ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || \
1282 ARCH_MSM_SCORPIONMP || ARCH_SHMOBILE 1282 ARCH_MSM_SCORPIONMP || ARCH_SHMOBILE
1283 select USE_GENERIC_SMP_HELPERS 1283 select USE_GENERIC_SMP_HELPERS
1284 select HAVE_ARM_SCU if !ARCH_MSM_SCORPIONMP 1284 select HAVE_ARM_SCU if !ARCH_MSM_SCORPIONMP
@@ -1378,7 +1378,7 @@ source kernel/Kconfig.preempt
1378config HZ 1378config HZ
1379 int 1379 int
1380 default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P64X0 || \ 1380 default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P64X0 || \
1381 ARCH_S5P6442 || ARCH_S5PV210 || ARCH_S5PV310 1381 ARCH_S5P6442 || ARCH_S5PV210 || ARCH_EXYNOS4
1382 default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER 1382 default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
1383 default AT91_TIMER_HZ if ARCH_AT91 1383 default AT91_TIMER_HZ if ARCH_AT91
1384 default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE 1384 default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 6f7b29294c8..40aa0225877 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -178,7 +178,7 @@ machine-$(CONFIG_ARCH_S5P64X0) := s5p64x0
178machine-$(CONFIG_ARCH_S5P6442) := s5p6442 178machine-$(CONFIG_ARCH_S5P6442) := s5p6442
179machine-$(CONFIG_ARCH_S5PC100) := s5pc100 179machine-$(CONFIG_ARCH_S5PC100) := s5pc100
180machine-$(CONFIG_ARCH_S5PV210) := s5pv210 180machine-$(CONFIG_ARCH_S5PV210) := s5pv210
181machine-$(CONFIG_ARCH_S5PV310) := s5pv310 181machine-$(CONFIG_ARCH_EXYNOS4) := exynos4
182machine-$(CONFIG_ARCH_SA1100) := sa1100 182machine-$(CONFIG_ARCH_SA1100) := sa1100
183machine-$(CONFIG_ARCH_SHARK) := shark 183machine-$(CONFIG_ARCH_SHARK) := shark
184machine-$(CONFIG_ARCH_SHMOBILE) := shmobile 184machine-$(CONFIG_ARCH_SHMOBILE) := shmobile
diff --git a/arch/arm/mach-s5pv310/Kconfig b/arch/arm/mach-exynos4/Kconfig
index b2a9acc5185..ad038401290 100644
--- a/arch/arm/mach-s5pv310/Kconfig
+++ b/arch/arm/mach-exynos4/Kconfig
@@ -1,83 +1,83 @@
1# arch/arm/mach-s5pv310/Kconfig 1# arch/arm/mach-exynos4/Kconfig
2# 2#
3# Copyright (c) 2010 Samsung Electronics Co., Ltd. 3# Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
4# http://www.samsung.com/ 4# http://www.samsung.com/
5# 5#
6# Licensed under GPLv2 6# Licensed under GPLv2
7 7
8# Configuration options for the S5PV310 8# Configuration options for the EXYNOS4
9 9
10if ARCH_S5PV310 10if ARCH_EXYNOS4
11 11
12config CPU_S5PV310 12config CPU_EXYNOS4210
13 bool 13 bool
14 select S3C_PL330_DMA 14 select S3C_PL330_DMA
15 help 15 help
16 Enable S5PV310 CPU support 16 Enable EXYNOS4210 CPU support
17 17
18config S5PV310_DEV_PD 18config EXYNOS4_DEV_PD
19 bool 19 bool
20 help 20 help
21 Compile in platform device definitions for Power Domain 21 Compile in platform device definitions for Power Domain
22 22
23config S5PV310_SETUP_I2C1 23config EXYNOS4_DEV_SYSMMU
24 bool
25 help
26 Common setup code for SYSTEM MMU in EXYNOS4
27
28config EXYNOS4_SETUP_I2C1
24 bool 29 bool
25 help 30 help
26 Common setup code for i2c bus 1. 31 Common setup code for i2c bus 1.
27 32
28config S5PV310_SETUP_I2C2 33config EXYNOS4_SETUP_I2C2
29 bool 34 bool
30 help 35 help
31 Common setup code for i2c bus 2. 36 Common setup code for i2c bus 2.
32 37
33config S5PV310_SETUP_I2C3 38config EXYNOS4_SETUP_I2C3
34 bool 39 bool
35 help 40 help
36 Common setup code for i2c bus 3. 41 Common setup code for i2c bus 3.
37 42
38config S5PV310_SETUP_I2C4 43config EXYNOS4_SETUP_I2C4
39 bool 44 bool
40 help 45 help
41 Common setup code for i2c bus 4. 46 Common setup code for i2c bus 4.
42 47
43config S5PV310_SETUP_I2C5 48config EXYNOS4_SETUP_I2C5
44 bool 49 bool
45 help 50 help
46 Common setup code for i2c bus 5. 51 Common setup code for i2c bus 5.
47 52
48config S5PV310_SETUP_I2C6 53config EXYNOS4_SETUP_I2C6
49 bool 54 bool
50 help 55 help
51 Common setup code for i2c bus 6. 56 Common setup code for i2c bus 6.
52 57
53config S5PV310_SETUP_I2C7 58config EXYNOS4_SETUP_I2C7
54 bool 59 bool
55 help 60 help
56 Common setup code for i2c bus 7. 61 Common setup code for i2c bus 7.
57 62
58config S5PV310_SETUP_SDHCI 63config EXYNOS4_SETUP_SDHCI
59 bool 64 bool
60 select S5PV310_SETUP_SDHCI_GPIO 65 select EXYNOS4_SETUP_SDHCI_GPIO
61 help 66 help
62 Internal helper functions for S5PV310 based SDHCI systems. 67 Internal helper functions for EXYNOS4 based SDHCI systems.
63 68
64config S5PV310_SETUP_SDHCI_GPIO 69config EXYNOS4_SETUP_SDHCI_GPIO
65 bool 70 bool
66 help 71 help
67 Common setup code for SDHCI gpio. 72 Common setup code for SDHCI gpio.
68 73
69config S5PV310_DEV_SYSMMU
70 bool
71 help
72 Common setup code for SYSTEM MMU in S5PV310
73
74# machine support 74# machine support
75 75
76menu "S5PC210 Machines" 76menu "EXYNOS4 Machines"
77 77
78config MACH_SMDKC210 78config MACH_SMDKC210
79 bool "SMDKC210" 79 bool "SMDKC210"
80 select CPU_S5PV310 80 select CPU_EXYNOS4210
81 select S3C_DEV_RTC 81 select S3C_DEV_RTC
82 select S3C_DEV_WDT 82 select S3C_DEV_WDT
83 select S3C_DEV_I2C1 83 select S3C_DEV_I2C1
@@ -85,35 +85,16 @@ config MACH_SMDKC210
85 select S3C_DEV_HSMMC1 85 select S3C_DEV_HSMMC1
86 select S3C_DEV_HSMMC2 86 select S3C_DEV_HSMMC2
87 select S3C_DEV_HSMMC3 87 select S3C_DEV_HSMMC3
88 select S5PV310_DEV_PD 88 select EXYNOS4_DEV_PD
89 select S5PV310_SETUP_I2C1 89 select EXYNOS4_DEV_SYSMMU
90 select S5PV310_SETUP_SDHCI 90 select EXYNOS4_SETUP_I2C1
91 select S5PV310_DEV_SYSMMU 91 select EXYNOS4_SETUP_SDHCI
92 help 92 help
93 Machine support for Samsung SMDKC210 93 Machine support for Samsung SMDKC210
94 S5PC210(MCP) is one of package option of S5PV310
95
96config MACH_UNIVERSAL_C210
97 bool "Mobile UNIVERSAL_C210 Board"
98 select CPU_S5PV310
99 select S5P_DEV_ONENAND
100 select S3C_DEV_HSMMC
101 select S3C_DEV_HSMMC2
102 select S3C_DEV_HSMMC3
103 select S5PV310_SETUP_SDHCI
104 select S3C_DEV_I2C1
105 select S5PV310_SETUP_I2C1
106 help
107 Machine support for Samsung Mobile Universal S5PC210 Reference
108 Board. S5PC210(MCP) is one of package option of S5PV310
109
110endmenu
111
112menu "S5PV310 Machines"
113 94
114config MACH_SMDKV310 95config MACH_SMDKV310
115 bool "SMDKV310" 96 bool "SMDKV310"
116 select CPU_S5PV310 97 select CPU_EXYNOS4210
117 select S3C_DEV_RTC 98 select S3C_DEV_RTC
118 select S3C_DEV_WDT 99 select S3C_DEV_WDT
119 select S3C_DEV_I2C1 100 select S3C_DEV_I2C1
@@ -121,26 +102,40 @@ config MACH_SMDKV310
121 select S3C_DEV_HSMMC1 102 select S3C_DEV_HSMMC1
122 select S3C_DEV_HSMMC2 103 select S3C_DEV_HSMMC2
123 select S3C_DEV_HSMMC3 104 select S3C_DEV_HSMMC3
124 select S5PV310_DEV_PD 105 select EXYNOS4_DEV_PD
125 select S5PV310_DEV_SYSMMU 106 select EXYNOS4_DEV_SYSMMU
126 select S5PV310_SETUP_I2C1 107 select EXYNOS4_SETUP_I2C1
127 select S5PV310_SETUP_SDHCI 108 select EXYNOS4_SETUP_SDHCI
128 help 109 help
129 Machine support for Samsung SMDKV310 110 Machine support for Samsung SMDKV310
130 111
112config MACH_UNIVERSAL_C210
113 bool "Mobile UNIVERSAL_C210 Board"
114 select CPU_EXYNOS4210
115 select S3C_DEV_HSMMC
116 select S3C_DEV_HSMMC2
117 select S3C_DEV_HSMMC3
118 select S3C_DEV_I2C1
119 select S5P_DEV_ONENAND
120 select EXYNOS4_SETUP_I2C1
121 select EXYNOS4_SETUP_SDHCI
122 help
123 Machine support for Samsung Mobile Universal S5PC210 Reference
124 Board.
125
131endmenu 126endmenu
132 127
133comment "Configuration for HSMMC bus width" 128comment "Configuration for HSMMC bus width"
134 129
135menu "Use 8-bit bus width" 130menu "Use 8-bit bus width"
136 131
137config S5PV310_SDHCI_CH0_8BIT 132config EXYNOS4_SDHCI_CH0_8BIT
138 bool "Channel 0 with 8-bit bus" 133 bool "Channel 0 with 8-bit bus"
139 help 134 help
140 Support HSMMC Channel 0 8-bit bus. 135 Support HSMMC Channel 0 8-bit bus.
141 If selected, Channel 1 is disabled. 136 If selected, Channel 1 is disabled.
142 137
143config S5PV310_SDHCI_CH2_8BIT 138config EXYNOS4_SDHCI_CH2_8BIT
144 bool "Channel 2 with 8-bit bus" 139 bool "Channel 2 with 8-bit bus"
145 help 140 help
146 Support HSMMC Channel 2 8-bit bus. 141 Support HSMMC Channel 2 8-bit bus.
diff --git a/arch/arm/mach-exynos4/Makefile b/arch/arm/mach-exynos4/Makefile
new file mode 100644
index 00000000000..05582353323
--- /dev/null
+++ b/arch/arm/mach-exynos4/Makefile
@@ -0,0 +1,43 @@
1# arch/arm/mach-exynos4/Makefile
2#
3# Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
4# http://www.samsung.com/
5#
6# Licensed under GPLv2
7
8obj-y :=
9obj-m :=
10obj-n :=
11obj- :=
12
13# Core support for EXYNOS4 system
14
15obj-$(CONFIG_CPU_EXYNOS4210) += cpu.o init.o clock.o irq-combiner.o
16obj-$(CONFIG_CPU_EXYNOS4210) += setup-i2c0.o time.o gpiolib.o irq-eint.o dma.o
17obj-$(CONFIG_CPU_FREQ) += cpufreq.o
18
19obj-$(CONFIG_SMP) += platsmp.o headsmp.o
20obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o
21obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
22
23# machine support
24
25obj-$(CONFIG_MACH_SMDKC210) += mach-smdkc210.o
26obj-$(CONFIG_MACH_SMDKV310) += mach-smdkv310.o
27obj-$(CONFIG_MACH_UNIVERSAL_C210) += mach-universal_c210.o
28
29# device support
30
31obj-y += dev-audio.o
32obj-$(CONFIG_EXYNOS4_DEV_PD) += dev-pd.o
33obj-$(CONFIG_EXYNOS4_DEV_SYSMMU) += dev-sysmmu.o
34
35obj-$(CONFIG_EXYNOS4_SETUP_I2C1) += setup-i2c1.o
36obj-$(CONFIG_EXYNOS4_SETUP_I2C2) += setup-i2c2.o
37obj-$(CONFIG_EXYNOS4_SETUP_I2C3) += setup-i2c3.o
38obj-$(CONFIG_EXYNOS4_SETUP_I2C4) += setup-i2c4.o
39obj-$(CONFIG_EXYNOS4_SETUP_I2C5) += setup-i2c5.o
40obj-$(CONFIG_EXYNOS4_SETUP_I2C6) += setup-i2c6.o
41obj-$(CONFIG_EXYNOS4_SETUP_I2C7) += setup-i2c7.o
42obj-$(CONFIG_EXYNOS4_SETUP_SDHCI) += setup-sdhci.o
43obj-$(CONFIG_EXYNOS4_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
diff --git a/arch/arm/mach-s5pv310/Makefile.boot b/arch/arm/mach-exynos4/Makefile.boot
index d65956ffb43..d65956ffb43 100644
--- a/arch/arm/mach-s5pv310/Makefile.boot
+++ b/arch/arm/mach-exynos4/Makefile.boot
diff --git a/arch/arm/mach-s5pv310/Makefile b/arch/arm/mach-s5pv310/Makefile
deleted file mode 100644
index 036fb383b83..00000000000
--- a/arch/arm/mach-s5pv310/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
1# arch/arm/mach-s5pv310/Makefile
2#
3# Copyright (c) 2010 Samsung Electronics Co., Ltd.
4# http://www.samsung.com/
5#
6# Licensed under GPLv2
7
8obj-y :=
9obj-m :=
10obj-n :=
11obj- :=
12
13# Core support for S5PV310 system
14
15obj-$(CONFIG_CPU_S5PV310) += cpu.o init.o clock.o irq-combiner.o
16obj-$(CONFIG_CPU_S5PV310) += setup-i2c0.o time.o gpiolib.o irq-eint.o dma.o
17obj-$(CONFIG_CPU_FREQ) += cpufreq.o
18
19obj-$(CONFIG_SMP) += platsmp.o headsmp.o
20obj-$(CONFIG_LOCAL_TIMERS) += localtimer.o
21obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
22
23# machine support
24
25obj-$(CONFIG_MACH_SMDKC210) += mach-smdkc210.o
26obj-$(CONFIG_MACH_SMDKV310) += mach-smdkv310.o
27obj-$(CONFIG_MACH_UNIVERSAL_C210) += mach-universal_c210.o
28
29# device support
30
31obj-y += dev-audio.o
32obj-$(CONFIG_S5PV310_DEV_PD) += dev-pd.o
33obj-$(CONFIG_S5PV310_DEV_SYSMMU) += dev-sysmmu.o
34
35obj-$(CONFIG_S5PV310_SETUP_I2C1) += setup-i2c1.o
36obj-$(CONFIG_S5PV310_SETUP_I2C2) += setup-i2c2.o
37obj-$(CONFIG_S5PV310_SETUP_I2C3) += setup-i2c3.o
38obj-$(CONFIG_S5PV310_SETUP_I2C4) += setup-i2c4.o
39obj-$(CONFIG_S5PV310_SETUP_I2C5) += setup-i2c5.o
40obj-$(CONFIG_S5PV310_SETUP_I2C6) += setup-i2c6.o
41obj-$(CONFIG_S5PV310_SETUP_I2C7) += setup-i2c7.o
42obj-$(CONFIG_S5PV310_SETUP_SDHCI) += setup-sdhci.o
43obj-$(CONFIG_S5PV310_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index e4509bae8fc..0f59e54e939 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -812,7 +812,7 @@ config CACHE_L2X0
812 bool "Enable the L2x0 outer cache controller" 812 bool "Enable the L2x0 outer cache controller"
813 depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ 813 depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \
814 REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || \ 814 REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || \
815 ARCH_NOMADIK || ARCH_OMAP4 || ARCH_S5PV310 || ARCH_TEGRA || \ 815 ARCH_NOMADIK || ARCH_OMAP4 || ARCH_EXYNOS4 || ARCH_TEGRA || \
816 ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE 816 ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE
817 default y 817 default y
818 select OUTER_CACHE 818 select OUTER_CACHE
diff --git a/arch/arm/plat-s5p/Kconfig b/arch/arm/plat-s5p/Kconfig
index 557f8c507f6..6390ac728b3 100644
--- a/arch/arm/plat-s5p/Kconfig
+++ b/arch/arm/plat-s5p/Kconfig
@@ -7,10 +7,10 @@
7 7
8config PLAT_S5P 8config PLAT_S5P
9 bool 9 bool
10 depends on (ARCH_S5P64X0 || ARCH_S5P6442 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_S5PV310) 10 depends on (ARCH_S5P64X0 || ARCH_S5P6442 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS4)
11 default y 11 default y
12 select ARM_VIC if !ARCH_S5PV310 12 select ARM_VIC if !ARCH_EXYNOS4
13 select ARM_GIC if ARCH_S5PV310 13 select ARM_GIC if ARCH_EXYNOS4
14 select NO_IOPORT 14 select NO_IOPORT
15 select ARCH_REQUIRE_GPIOLIB 15 select ARCH_REQUIRE_GPIOLIB
16 select S3C_GPIO_TRACK 16 select S3C_GPIO_TRACK
@@ -41,7 +41,7 @@ comment "System MMU"
41 41
42config S5P_SYSTEM_MMU 42config S5P_SYSTEM_MMU
43 bool "S5P SYSTEM MMU" 43 bool "S5P SYSTEM MMU"
44 depends on ARCH_S5PV310 44 depends on ARCH_EXYNOS4
45 help 45 help
46 Say Y here if you want to enable System MMU 46 Say Y here if you want to enable System MMU
47 47