]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: S3C64XX: Move core support to mach-s3c64xx
authorBen Dooks <ben-linux@fluff.org>
Tue, 26 Jan 2010 04:41:30 +0000 (13:41 +0900)
committerBen Dooks <ben-linux@fluff.org>
Sat, 20 Feb 2010 22:33:54 +0000 (22:33 +0000)
Move the core S3C64XX support to mach-s3c64xx as it is unlikely to be used
outside of this directory. Also move the SoC header files in with it.

This includes the clock, cpu, cpufreq, dma, gpiolib and pll support.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
22 files changed:
arch/arm/mach-s3c64xx/Kconfig
arch/arm/mach-s3c64xx/Makefile
arch/arm/mach-s3c64xx/clock.c [moved from arch/arm/plat-s3c64xx/clock.c with 99% similarity]
arch/arm/mach-s3c64xx/cpu.c [moved from arch/arm/plat-s3c64xx/cpu.c with 98% similarity]
arch/arm/mach-s3c64xx/cpufreq.c [moved from arch/arm/plat-s3c64xx/cpufreq.c with 100% similarity]
arch/arm/mach-s3c64xx/dma.c [moved from arch/arm/plat-s3c64xx/dma.c with 100% similarity]
arch/arm/mach-s3c64xx/gpiolib.c [moved from arch/arm/plat-s3c64xx/gpiolib.c with 100% similarity]
arch/arm/mach-s3c64xx/include/mach/pll.h [moved from arch/arm/plat-s3c64xx/include/plat/pll.h with 100% similarity]
arch/arm/mach-s3c64xx/include/mach/s3c6400.h [moved from arch/arm/plat-s3c64xx/include/plat/s3c6400.h with 95% similarity]
arch/arm/mach-s3c64xx/include/mach/s3c6410.h [moved from arch/arm/plat-s3c64xx/include/plat/s3c6410.h with 93% similarity]
arch/arm/mach-s3c64xx/mach-anw6410.c
arch/arm/mach-s3c64xx/mach-hmt.c
arch/arm/mach-s3c64xx/mach-ncp.c
arch/arm/mach-s3c64xx/mach-smdk6400.c
arch/arm/mach-s3c64xx/mach-smdk6410.c
arch/arm/mach-s3c64xx/pm.c [moved from arch/arm/plat-s3c64xx/pm.c with 100% similarity]
arch/arm/mach-s3c64xx/s3c6400.c
arch/arm/mach-s3c64xx/s3c6410.c
arch/arm/mach-s3c64xx/sleep.S [moved from arch/arm/plat-s3c64xx/sleep.S with 100% similarity]
arch/arm/plat-s3c64xx/Kconfig
arch/arm/plat-s3c64xx/Makefile
arch/arm/plat-s3c64xx/s3c6400-init.c

index 15e065ef19a5020308336484e80adaf9dccdb7ab..7c9cd9a9901a9df333b043976847ccfb3264916c 100644 (file)
@@ -19,6 +19,10 @@ config CPU_S3C6410
        help
          Enable S3C6410 CPU support
 
+config S3C64XX_DMA
+       bool "S3C64XX DMA"
+       select S3C_DMA
+
 config S3C64XX_SETUP_SDHCI
        select S3C64XX_SETUP_SDHCI_GPIO
        bool
index 49b71d5f2e5989bd4d36495f4d9fdd3eb4d8fba8..4417f1ad99b6dc543a2307b20ae563ac9e5b1db8 100644 (file)
@@ -10,6 +10,11 @@ obj-m                                :=
 obj-n                          :=
 obj-                           :=
 
+# Core files
+obj-y                          += cpu.o
+obj-y                          += clock.o
+obj-y                          += gpiolib.o
+
 # Core support for S3C6400 system
 
 obj-$(CONFIG_CPU_S3C6400)      += s3c6400.o
@@ -18,6 +23,14 @@ obj-$(CONFIG_CPU_S3C6410)    += s3c6410.o
 obj-y                          += irq.o
 obj-y                          += irq-eint.o
 
+# CPU frequency scaling
+
+obj-$(CONFIG_CPU_FREQ_S3C64XX)  += cpufreq.o
+
+# DMA support
+
+obj-$(CONFIG_S3C64XX_DMA)      += dma.o
+
 # Device setup
 
 obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o
@@ -28,6 +41,8 @@ obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
 
 # PM
 
+obj-$(CONFIG_PM)               += pm.o
+obj-$(CONFIG_PM)               += sleep.o
 obj-$(CONFIG_PM)               += irq-pm.o
 
 # Machine support
similarity index 99%
rename from arch/arm/plat-s3c64xx/clock.c
rename to arch/arm/mach-s3c64xx/clock.c
index 64439de206cb71076489266e0104084d9648a767..229bb3bcc54fd24ccf1b3594a16b518bdae2a094 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <mach/regs-sys.h>
 #include <mach/regs-clock.h>
+#include <mach/pll.h>
+
 #include <plat/cpu.h>
 #include <plat/devs.h>
 #include <plat/clock.h>
similarity index 98%
rename from arch/arm/plat-s3c64xx/cpu.c
rename to arch/arm/mach-s3c64xx/cpu.c
index bc7ca1812e32dcc2fdea73a2ae32a0998c82e27d..410d688a691072e01790de4e68c3c78605abb49c 100644 (file)
@@ -33,8 +33,8 @@
 #include <plat/devs.h>
 #include <plat/clock.h>
 
-#include <plat/s3c6400.h>
-#include <plat/s3c6410.h>
+#include <mach/s3c6400.h>
+#include <mach/s3c6410.h>
 
 /* table of supported CPUs */
 
similarity index 95%
rename from arch/arm/plat-s3c64xx/include/plat/s3c6400.h
rename to arch/arm/mach-s3c64xx/include/mach/s3c6400.h
index 11f2e1e119b0946803c59dcedaa6216a80027ee6..2bc7c07a928f9d3d8169e9d199039a397ab4b617 100644 (file)
@@ -1,4 +1,4 @@
-/* arch/arm/plat-s3c64xx/include/plat/s3c6400.h
+/* arch/arm/mach-s3c64xx/include/macht/s3c6400.h
  *
  * Copyright 2008 Openmoko, Inc.
  * Copyright 2008 Simtec Electronics
@@ -33,4 +33,3 @@ extern void s3c6400_init_clocks(int xtal);
 #define s3c6400_map_io NULL
 #define s3c6400_init NULL
 #endif
-
similarity index 93%
rename from arch/arm/plat-s3c64xx/include/plat/s3c6410.h
rename to arch/arm/mach-s3c64xx/include/mach/s3c6410.h
index 50dcdd6f680060ce888c4260e0af72dbbf340da2..24f1141ffcb7ce8c3787d24c68488ac0556a1c10 100644 (file)
@@ -1,4 +1,4 @@
-/* arch/arm/plat-s3c64xx/include/plat/s3c6410.h
+/* arch/arm/mach-s3c64xx/include/mach/s3c6410.h
  *
  * Copyright 2008 Openmoko,  Inc.
  * Copyright 2008 Simtec Electronics
index 06d8fe579e1028b67a930dd596ff921e71a2bfd5..4a0bb243d14ab7ecd59c9a3be96fdab42624315e 100644 (file)
@@ -45,7 +45,7 @@
 #include <plat/iic.h>
 #include <plat/fb.h>
 
-#include <plat/s3c6410.h>
+#include <mach/s3c6410.h>
 #include <plat/clock.h>
 #include <plat/devs.h>
 #include <plat/cpu.h>
index 284886c26a28514e3f100bb6520089ba8917709d..a6d91c39f22e21e3d26382c48bb05587c30c9646 100644 (file)
@@ -38,7 +38,7 @@
 #include <plat/fb.h>
 #include <plat/nand.h>
 
-#include <plat/s3c6410.h>
+#include <mach/s3c6410.h>
 #include <plat/clock.h>
 #include <plat/devs.h>
 #include <plat/cpu.h>
index 9be92ddd2176799300b2c9de2b6d5c3fbc9c5456..bf65747ea68ec2e5700464f007870d611139999b 100644 (file)
@@ -40,7 +40,7 @@
 #include <plat/iic.h>
 #include <plat/fb.h>
 
-#include <plat/s3c6410.h>
+#include <mach/s3c6410.h>
 #include <plat/clock.h>
 #include <plat/devs.h>
 #include <plat/cpu.h>
index ba8a052a61421e8b56c03112968353ca02d12e31..f7b18983950c58f33ccb5972ce6b370891316c95 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <plat/regs-serial.h>
 
-#include <plat/s3c6400.h>
+#include <mach/s3c6400.h>
 #include <plat/clock.h>
 #include <plat/devs.h>
 #include <plat/cpu.h>
index 021670e39d3ea3abb032cf4e52a822e82a2ce752..fdf8f7539a12082532e97c800e81470547244213 100644 (file)
@@ -54,7 +54,7 @@
 #include <plat/fb.h>
 #include <plat/gpio-cfg.h>
 
-#include <plat/s3c6410.h>
+#include <mach/s3c6410.h>
 #include <plat/clock.h>
 #include <plat/devs.h>
 #include <plat/cpu.h>
index 2fba1b263fed5b34590fb0aaaef9567a068c7514..720d0d1f3bfca309cf229a86e26f6756ac0b8b4f 100644 (file)
@@ -37,7 +37,7 @@
 #include <plat/clock.h>
 #include <plat/sdhci.h>
 #include <plat/iic-core.h>
-#include <plat/s3c6400.h>
+#include <mach/s3c6400.h>
 
 void __init s3c6400_map_io(void)
 {
index b881d6a50b118af351eab7fbeaa5fd6aff04fced..fd457cc3ab87c9f1907095c55f3744b2934f8198 100644 (file)
@@ -38,8 +38,8 @@
 #include <plat/clock.h>
 #include <plat/sdhci.h>
 #include <plat/iic-core.h>
-#include <plat/s3c6400.h>
-#include <plat/s3c6410.h>
+#include <mach/s3c6400.h>
+#include <mach/s3c6410.h>
 
 void __init s3c6410_map_io(void)
 {
index 4edb580a02b7ec144eef3383b803e37fadd79609..fb7e25f710e060c035497f429d5ec29f09c8f67e 100644 (file)
@@ -42,8 +42,4 @@ config CPU_S3C6400_CLOCK
          Common clock support code for the S3C6400 that is shared
          by other CPUs in the series, such as the S3C6410.
 
-config S3C64XX_DMA
-       bool "S3C64XX DMA"
-       select S3C_DMA
-
 endif
index 187b779a2bdc9ce9dc0a8a84a83f7dbdddc04697..bd4fe3b48eaa91a704da886ff7f599351a9e5213 100644 (file)
@@ -10,23 +10,7 @@ obj-m                                :=
 obj-n                          := dummy.o
 obj-                           :=
 
-# Core files
-obj-y                          += cpu.o
-obj-y                          += clock.o
-obj-y                          += gpiolib.o
-
 # CPU support
 
 obj-$(CONFIG_CPU_S3C6400_INIT) += s3c6400-init.o
 obj-$(CONFIG_CPU_S3C6400_CLOCK)        += s3c6400-clock.o
-obj-$(CONFIG_CPU_FREQ_S3C64XX)  += cpufreq.o
-
-# PM support
-
-obj-$(CONFIG_PM)               += pm.o
-obj-$(CONFIG_PM)               += sleep.o
-
-# DMA support
-
-obj-$(CONFIG_S3C64XX_DMA)      += dma.o
-
index 6c28f39df097538034ce71c1db2ecb8e1499c4b5..e64caa4d02d9b2ca57de7a306a8dc54f30c97e7d 100644 (file)
@@ -18,8 +18,8 @@
 
 #include <plat/cpu.h>
 #include <plat/devs.h>
-#include <plat/s3c6400.h>
-#include <plat/s3c6410.h>
+#include <mach/s3c6400.h>
+#include <mach/s3c6410.h>
 
 /* uart registration process */