diff options
author | Heiko Stuebner <heiko@sntech.de> | 2012-03-07 04:47:05 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-07 04:47:05 -0500 |
commit | 9072dc983fb1743b711791a63ddfe5a7a52ef361 (patch) | |
tree | dce363e52d13340e6aca634b7860eb0e2d51427e /arch/arm | |
parent | 28c569f6957859d7d53681e00758980750da0250 (diff) |
ARM: S3C24XX: move simtec-specific code to mach directory
This includes a rename of the pm-simtec.c to keep the simtec
extensions together a bit and also better naming of the Kconfig
options.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c24xx/Kconfig | 23 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/simtec-audio.c (renamed from arch/arm/plat-s3c24xx/simtec-audio.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/simtec-pm.c (renamed from arch/arm/plat-s3c24xx/pm-simtec.c) | 0 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/Kconfig | 13 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/Makefile | 5 |
6 files changed, 20 insertions, 23 deletions
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig index 7dede0742daa..115cc50daa84 100644 --- a/arch/arm/mach-s3c24xx/Kconfig +++ b/arch/arm/mach-s3c24xx/Kconfig | |||
@@ -88,6 +88,19 @@ config S3C24XX_SMDK | |||
88 | help | 88 | help |
89 | Common machine code for SMDK2410 and SMDK2440 | 89 | Common machine code for SMDK2410 and SMDK2440 |
90 | 90 | ||
91 | config S3C24XX_SIMTEC_AUDIO | ||
92 | bool | ||
93 | depends on (ARCH_BAST || MACH_VR1000 || MACH_OSIRIS || MACH_ANUBIS) | ||
94 | default y | ||
95 | help | ||
96 | Add audio devices for common Simtec S3C24XX boards | ||
97 | |||
98 | config S3C24XX_SIMTEC_PM | ||
99 | bool | ||
100 | help | ||
101 | Common power management code for systems that are | ||
102 | compatible with the Simtec style of power management | ||
103 | |||
91 | # cpu-specific sections | 104 | # cpu-specific sections |
92 | 105 | ||
93 | if CPU_S3C2410 | 106 | if CPU_S3C2410 |
@@ -125,7 +138,7 @@ comment "S3C2410 Boards" | |||
125 | 138 | ||
126 | config MACH_AML_M5900 | 139 | config MACH_AML_M5900 |
127 | bool "AML M5900 Series" | 140 | bool "AML M5900 Series" |
128 | select PM_SIMTEC if PM | 141 | select S3C24XX_SIMTEC_PM if PM |
129 | select S3C_DEV_USB_HOST | 142 | select S3C_DEV_USB_HOST |
130 | help | 143 | help |
131 | Say Y here if you are using the American Microsystems M5900 Series | 144 | Say Y here if you are using the American Microsystems M5900 Series |
@@ -134,7 +147,7 @@ config MACH_AML_M5900 | |||
134 | config ARCH_BAST | 147 | config ARCH_BAST |
135 | bool "Simtec Electronics BAST (EB2410ITX)" | 148 | bool "Simtec Electronics BAST (EB2410ITX)" |
136 | select S3C2410_IOTIMING if S3C2410_CPUFREQ | 149 | select S3C2410_IOTIMING if S3C2410_CPUFREQ |
137 | select PM_SIMTEC if PM | 150 | select S3C24XX_SIMTEC_PM if PM |
138 | select SIMTEC_NOR | 151 | select SIMTEC_NOR |
139 | select MACH_BAST_IDE | 152 | select MACH_BAST_IDE |
140 | select S3C24XX_DCLK | 153 | select S3C24XX_DCLK |
@@ -215,7 +228,7 @@ config MACH_TCT_HAMMER | |||
215 | 228 | ||
216 | config MACH_VR1000 | 229 | config MACH_VR1000 |
217 | bool "Thorcom VR1000" | 230 | bool "Thorcom VR1000" |
218 | select PM_SIMTEC if PM | 231 | select S3C24XX_SIMTEC_PM if PM |
219 | select S3C24XX_DCLK | 232 | select S3C24XX_DCLK |
220 | select SIMTEC_NOR | 233 | select SIMTEC_NOR |
221 | select MACH_BAST_IDE | 234 | select MACH_BAST_IDE |
@@ -355,7 +368,7 @@ comment "S3C2440 Boards" | |||
355 | config MACH_ANUBIS | 368 | config MACH_ANUBIS |
356 | bool "Simtec Electronics ANUBIS" | 369 | bool "Simtec Electronics ANUBIS" |
357 | select S3C24XX_DCLK | 370 | select S3C24XX_DCLK |
358 | select PM_SIMTEC if PM | 371 | select S3C24XX_SIMTEC_PM if PM |
359 | select HAVE_PATA_PLATFORM | 372 | select HAVE_PATA_PLATFORM |
360 | select S3C24XX_GPIO_EXTRA64 | 373 | select S3C24XX_GPIO_EXTRA64 |
361 | select S3C2440_XTAL_12000000 | 374 | select S3C2440_XTAL_12000000 |
@@ -395,7 +408,7 @@ config MACH_NEXCODER_2440 | |||
395 | config MACH_OSIRIS | 408 | config MACH_OSIRIS |
396 | bool "Simtec IM2440D20 (OSIRIS) module" | 409 | bool "Simtec IM2440D20 (OSIRIS) module" |
397 | select S3C24XX_DCLK | 410 | select S3C24XX_DCLK |
398 | select PM_SIMTEC if PM | 411 | select S3C24XX_SIMTEC_PM if PM |
399 | select S3C24XX_GPIO_EXTRA128 | 412 | select S3C24XX_GPIO_EXTRA128 |
400 | select S3C2440_XTAL_12000000 | 413 | select S3C2440_XTAL_12000000 |
401 | select S3C2410_IOTIMING if S3C2440_CPUFREQ | 414 | select S3C2410_IOTIMING if S3C2440_CPUFREQ |
diff --git a/arch/arm/mach-s3c24xx/Makefile b/arch/arm/mach-s3c24xx/Makefile index b1c3c6f7c2eb..fedbdb8f473e 100644 --- a/arch/arm/mach-s3c24xx/Makefile +++ b/arch/arm/mach-s3c24xx/Makefile | |||
@@ -79,6 +79,8 @@ obj-$(CONFIG_MACH_SMDK2443) += mach-smdk2443.o | |||
79 | 79 | ||
80 | obj-$(CONFIG_S3C24XX_SMDK) += common-smdk.o | 80 | obj-$(CONFIG_S3C24XX_SMDK) += common-smdk.o |
81 | obj-$(CONFIG_SIMTEC_NOR) += nor-simtec.o | 81 | obj-$(CONFIG_SIMTEC_NOR) += nor-simtec.o |
82 | obj-$(CONFIG_S3C24XX_SIMTEC_AUDIO) += simtec-audio.o | ||
83 | obj-$(CONFIG_S3C24XX_SIMTEC_PM) += simtec-pm.o | ||
82 | 84 | ||
83 | # machine additions | 85 | # machine additions |
84 | 86 | ||
diff --git a/arch/arm/plat-s3c24xx/simtec-audio.c b/arch/arm/mach-s3c24xx/simtec-audio.c index 6bc832e0d8ea..6bc832e0d8ea 100644 --- a/arch/arm/plat-s3c24xx/simtec-audio.c +++ b/arch/arm/mach-s3c24xx/simtec-audio.c | |||
diff --git a/arch/arm/plat-s3c24xx/pm-simtec.c b/arch/arm/mach-s3c24xx/simtec-pm.c index 68296b1fe7e5..68296b1fe7e5 100644 --- a/arch/arm/plat-s3c24xx/pm-simtec.c +++ b/arch/arm/mach-s3c24xx/simtec-pm.c | |||
diff --git a/arch/arm/plat-s3c24xx/Kconfig b/arch/arm/plat-s3c24xx/Kconfig index 73ebc40e0eb9..0338d207475d 100644 --- a/arch/arm/plat-s3c24xx/Kconfig +++ b/arch/arm/plat-s3c24xx/Kconfig | |||
@@ -70,12 +70,6 @@ config S3C24XX_GPIO_EXTRA128 | |||
70 | Add an extra 128 gpio numbers to the available GPIO pool. This is | 70 | Add an extra 128 gpio numbers to the available GPIO pool. This is |
71 | available for boards that need extra gpios for external devices. | 71 | available for boards that need extra gpios for external devices. |
72 | 72 | ||
73 | config PM_SIMTEC | ||
74 | bool | ||
75 | help | ||
76 | Common power management code for systems that are | ||
77 | compatible with the Simtec style of power management | ||
78 | |||
79 | config S3C24XX_DMA | 73 | config S3C24XX_DMA |
80 | bool "S3C2410 DMA support" | 74 | bool "S3C2410 DMA support" |
81 | depends on ARCH_S3C24XX | 75 | depends on ARCH_S3C24XX |
@@ -119,13 +113,6 @@ config S3C2412_IOTIMING | |||
119 | Intel node to select io timing code that is common to the s3c2412 | 113 | Intel node to select io timing code that is common to the s3c2412 |
120 | and the s3c2443. | 114 | and the s3c2443. |
121 | 115 | ||
122 | config S3C24XX_SIMTEC_AUDIO | ||
123 | bool | ||
124 | depends on (ARCH_BAST || MACH_VR1000 || MACH_OSIRIS || MACH_ANUBIS) | ||
125 | default y | ||
126 | help | ||
127 | Add audio devices for common Simtec S3C24XX boards | ||
128 | |||
129 | config S3C2410_SETUP_TS | 116 | config S3C2410_SETUP_TS |
130 | bool | 117 | bool |
131 | help | 118 | help |
diff --git a/arch/arm/plat-s3c24xx/Makefile b/arch/arm/plat-s3c24xx/Makefile index 8dca10a919dd..27dd9c5fc147 100644 --- a/arch/arm/plat-s3c24xx/Makefile +++ b/arch/arm/plat-s3c24xx/Makefile | |||
@@ -23,7 +23,6 @@ obj-$(CONFIG_CPU_FREQ_S3C24XX_DEBUGFS) += cpu-freq-debugfs.o | |||
23 | 23 | ||
24 | # Architecture dependent builds | 24 | # Architecture dependent builds |
25 | 25 | ||
26 | obj-$(CONFIG_PM_SIMTEC) += pm-simtec.o | ||
27 | obj-$(CONFIG_PM) += pm.o | 26 | obj-$(CONFIG_PM) += pm.o |
28 | obj-$(CONFIG_PM) += irq-pm.o | 27 | obj-$(CONFIG_PM) += irq-pm.o |
29 | obj-$(CONFIG_PM) += sleep.o | 28 | obj-$(CONFIG_PM) += sleep.o |
@@ -36,7 +35,3 @@ obj-$(CONFIG_S3C2410_CPUFREQ_UTILS) += s3c2410-cpufreq-utils.o | |||
36 | # device specific setup and/or initialisation | 35 | # device specific setup and/or initialisation |
37 | obj-$(CONFIG_ARCH_S3C24XX) += setup-i2c.o | 36 | obj-$(CONFIG_ARCH_S3C24XX) += setup-i2c.o |
38 | obj-$(CONFIG_S3C2410_SETUP_TS) += setup-ts.o | 37 | obj-$(CONFIG_S3C2410_SETUP_TS) += setup-ts.o |
39 | |||
40 | # machine common support | ||
41 | |||
42 | obj-$(CONFIG_S3C24XX_SIMTEC_AUDIO) += simtec-audio.o | ||