Skip to content

Commit

Permalink
ARM: S3C64XX: Move core support to mach-s3c64xx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks committed Feb 20, 2010
1 parent 88fc68a commit f7be9ab
Show file tree
Hide file tree
Showing 22 changed files with 35 additions and 35 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-s3c64xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions arch/arm/mach-s3c64xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/plat-s3c64xx/cpu.c → arch/arm/mach-s3c64xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -33,4 +33,3 @@ extern void s3c6400_init_clocks(int xtal);
#define s3c6400_map_io NULL
#define s3c6400_init NULL
#endif

Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c64xx/mach-anw6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c64xx/mach-hmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c64xx/mach-ncp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c64xx/mach-smdk6400.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c64xx/mach-smdk6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c64xx/s3c6400.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-s3c64xx/s3c6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions arch/arm/plat-s3c64xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 0 additions & 16 deletions arch/arm/plat-s3c64xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions arch/arm/plat-s3c64xx/s3c6400-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit f7be9ab

Please sign in to comment.