diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-02-22 18:38:26 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-02-22 18:38:26 -0500 |
commit | 7f0ff702cdf51472750f4b6042866f1b83a11215 (patch) | |
tree | 15ce32849cfb8ff3c7205e97a5f76051c08058b0 /arch/arm | |
parent | d35b7a829a13b69c4747b69380b504b6544a2375 (diff) | |
parent | 110d85acd479b80dc11b7fa3abef63285da8ea0c (diff) |
ARM: Merge next-samsung-s3c64xx-platdeletion
Merge branch 'next-samsung-s3c64xx-platdeletion' into next-samsung
Conflicts:
arch/arm/mach-s3c64xx/Makefile (fixed)
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig | 19 | ||||
-rw-r--r-- | arch/arm/Makefile | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c2410/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c2410/include/mach/pm-core.h (renamed from arch/arm/plat-s3c24xx/include/plat/pm-core.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c2412/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c2440/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c2443/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c6400/Kconfig | 30 | ||||
-rw-r--r-- | arch/arm/mach-s3c6400/Makefile | 23 | ||||
-rw-r--r-- | arch/arm/mach-s3c6400/include/mach/dma.h | 70 | ||||
-rw-r--r-- | arch/arm/mach-s3c6400/include/mach/irqs.h | 16 | ||||
-rw-r--r-- | arch/arm/mach-s3c6400/include/mach/regs-clock.h | 16 | ||||
-rw-r--r-- | arch/arm/mach-s3c6410/Makefile | 26 | ||||
-rw-r--r-- | arch/arm/mach-s3c6410/setup-sdhci.c | 68 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/Kconfig (renamed from arch/arm/mach-s3c6410/Kconfig) | 72 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/Makefile (renamed from arch/arm/plat-s3c64xx/Makefile) | 57 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/Makefile.boot (renamed from arch/arm/mach-s3c6400/Makefile.boot) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/clock.c (renamed from arch/arm/plat-s3c64xx/s3c6400-clock.c) | 303 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/cpu.c (renamed from arch/arm/plat-s3c64xx/cpu.c) | 10 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/cpufreq.c (renamed from arch/arm/plat-s3c64xx/cpufreq.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dev-adc.c (renamed from arch/arm/plat-s3c64xx/dev-adc.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dev-audio.c (renamed from arch/arm/plat-s3c64xx/dev-audio.c) | 9 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dev-rtc.c (renamed from arch/arm/plat-s3c64xx/dev-rtc.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dev-spi.c (renamed from arch/arm/plat-s3c64xx/dev-spi.c) | 5 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dev-uart.c (renamed from arch/arm/plat-s3c64xx/dev-uart.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/dma.c (renamed from arch/arm/plat-s3c64xx/dma.c) | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/gpiolib.c (renamed from arch/arm/plat-s3c64xx/gpiolib.c) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/debug-macro.S (renamed from arch/arm/mach-s3c6400/include/mach/debug-macro.S) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/dma.h (renamed from arch/arm/plat-s3c64xx/include/plat/dma-plat.h) | 79 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/entry-macro.S (renamed from arch/arm/mach-s3c6400/include/mach/entry-macro.S) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-a.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-a.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-b.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-b.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-c.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-c.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-d.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-d.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-e.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-e.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-f.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-f.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-g.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-g.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-h.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-h.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-i.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-i.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-j.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-j.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-n.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-n.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-o.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-o.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-p.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-p.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio-bank-q.h (renamed from arch/arm/plat-s3c64xx/include/plat/gpio-bank-q.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/gpio.h (renamed from arch/arm/mach-s3c6400/include/mach/gpio.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/hardware.h (renamed from arch/arm/mach-s3c6400/include/mach/hardware.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/irqs.h (renamed from arch/arm/plat-s3c64xx/include/plat/irqs.h) | 10 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/map.h (renamed from arch/arm/mach-s3c6400/include/mach/map.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/memory.h (renamed from arch/arm/mach-s3c6400/include/mach/memory.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/pll.h (renamed from arch/arm/plat-s3c64xx/include/plat/pll.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/pm-core.h (renamed from arch/arm/plat-s3c64xx/include/plat/pm-core.h) | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/pwm-clock.h (renamed from arch/arm/mach-s3c6400/include/mach/pwm-clock.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-clock.h (renamed from arch/arm/plat-s3c64xx/include/plat/regs-clock.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-fb.h (renamed from arch/arm/mach-s3c6400/include/mach/regs-fb.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-gpio-memport.h (renamed from arch/arm/plat-s3c64xx/include/plat/regs-gpio-memport.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-gpio.h (renamed from arch/arm/plat-s3c64xx/include/plat/regs-gpio.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-irq.h (renamed from arch/arm/mach-s3c6400/include/mach/regs-irq.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-modem.h (renamed from arch/arm/plat-s3c64xx/include/plat/regs-modem.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-srom.h (renamed from arch/arm/plat-s3c64xx/include/plat/regs-srom.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-sys.h (renamed from arch/arm/plat-s3c64xx/include/plat/regs-sys.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/regs-syscon-power.h (renamed from arch/arm/plat-s3c64xx/include/plat/regs-syscon-power.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/s3c6400.h (renamed from arch/arm/plat-s3c64xx/include/plat/s3c6400.h) | 6 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/s3c6410.h (renamed from arch/arm/plat-s3c64xx/include/plat/s3c6410.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/spi-clocks.h (renamed from arch/arm/plat-s3c64xx/include/plat/spi-clocks.h) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/system.h (renamed from arch/arm/mach-s3c6400/include/mach/system.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/tick.h (renamed from arch/arm/mach-s3c6400/include/mach/tick.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/uncompress.h (renamed from arch/arm/mach-s3c6400/include/mach/uncompress.h) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/irq-eint.c (renamed from arch/arm/plat-s3c64xx/irq-eint.c) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/irq-pm.c (renamed from arch/arm/plat-s3c64xx/irq-pm.c) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/irq.c (renamed from arch/arm/plat-s3c64xx/irq.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-anw6410.c (renamed from arch/arm/mach-s3c6410/mach-anw6410.c) | 8 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-hmt.c (renamed from arch/arm/mach-s3c6410/mach-hmt.c) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-ncp.c (renamed from arch/arm/mach-s3c6410/mach-ncp.c) | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6400.c (renamed from arch/arm/mach-s3c6400/mach-smdk6400.c) | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c (renamed from arch/arm/mach-s3c6410/mach-smdk6410.c) | 12 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/pm.c (renamed from arch/arm/plat-s3c64xx/pm.c) | 12 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/s3c6400.c (renamed from arch/arm/mach-s3c6400/s3c6400.c) | 11 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/s3c6410.c (renamed from arch/arm/mach-s3c6410/cpu.c) | 24 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/setup-fb-24bpp.c (renamed from arch/arm/plat-s3c64xx/setup-fb-24bpp.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/setup-i2c0.c (renamed from arch/arm/plat-s3c64xx/setup-i2c0.c) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/setup-i2c1.c (renamed from arch/arm/plat-s3c64xx/setup-i2c1.c) | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/setup-sdhci-gpio.c (renamed from arch/arm/plat-s3c64xx/setup-sdhci-gpio.c) | 0 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/setup-sdhci.c (renamed from arch/arm/mach-s3c6400/setup-sdhci.c) | 15 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/sleep.S (renamed from arch/arm/plat-s3c64xx/sleep.S) | 6 | ||||
-rw-r--r-- | arch/arm/plat-s3c/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-s3c/pm.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/dma.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-s3c64xx/Kconfig | 75 | ||||
-rw-r--r-- | arch/arm/plat-s3c64xx/clock.c | 304 | ||||
-rw-r--r-- | arch/arm/plat-s3c64xx/s3c6400-init.c | 29 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/clock.h | 1 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/dma-s3c24xx.h (renamed from arch/arm/plat-s3c24xx/include/plat/dma-plat.h) | 4 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/sdhci.h | 43 |
93 files changed, 587 insertions, 857 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 63f726f594f2..9618dcfa66f3 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -627,9 +627,24 @@ config ARCH_S3C2410 | |||
627 | 627 | ||
628 | config ARCH_S3C64XX | 628 | config ARCH_S3C64XX |
629 | bool "Samsung S3C64XX" | 629 | bool "Samsung S3C64XX" |
630 | select PLAT_S3C | ||
631 | select CPU_V6 | ||
630 | select GENERIC_GPIO | 632 | select GENERIC_GPIO |
633 | select ARM_VIC | ||
631 | select HAVE_CLK | 634 | select HAVE_CLK |
635 | select NO_IOPORT | ||
632 | select ARCH_HAS_CPUFREQ | 636 | select ARCH_HAS_CPUFREQ |
637 | select ARCH_REQUIRE_GPIOLIB | ||
638 | select SAMSUNG_CLKSRC | ||
639 | select SAMSUNG_IRQ_VIC_TIMER | ||
640 | select SAMSUNG_IRQ_UART | ||
641 | select S3C_GPIO_TRACK | ||
642 | select S3C_GPIO_PULL_UPDOWN | ||
643 | select S3C_GPIO_CFG_S3C24XX | ||
644 | select S3C_GPIO_CFG_S3C64XX | ||
645 | select S3C_DEV_NAND | ||
646 | select USB_ARCH_HAS_OHCI | ||
647 | select SAMSUNG_GPIOLIB_4BIT | ||
633 | help | 648 | help |
634 | Samsung S3C64XX series based systems | 649 | Samsung S3C64XX series based systems |
635 | 650 | ||
@@ -784,7 +799,6 @@ source "arch/arm/mach-dove/Kconfig" | |||
784 | 799 | ||
785 | source "arch/arm/plat-samsung/Kconfig" | 800 | source "arch/arm/plat-samsung/Kconfig" |
786 | source "arch/arm/plat-s3c24xx/Kconfig" | 801 | source "arch/arm/plat-s3c24xx/Kconfig" |
787 | source "arch/arm/plat-s3c64xx/Kconfig" | ||
788 | source "arch/arm/plat-s3c/Kconfig" | 802 | source "arch/arm/plat-s3c/Kconfig" |
789 | source "arch/arm/plat-s5p/Kconfig" | 803 | source "arch/arm/plat-s5p/Kconfig" |
790 | source "arch/arm/plat-s5pc1xx/Kconfig" | 804 | source "arch/arm/plat-s5pc1xx/Kconfig" |
@@ -798,8 +812,7 @@ source "arch/arm/mach-s3c2443/Kconfig" | |||
798 | endif | 812 | endif |
799 | 813 | ||
800 | if ARCH_S3C64XX | 814 | if ARCH_S3C64XX |
801 | source "arch/arm/mach-s3c6400/Kconfig" | 815 | source "arch/arm/mach-s3c64xx/Kconfig" |
802 | source "arch/arm/mach-s3c6410/Kconfig" | ||
803 | endif | 816 | endif |
804 | 817 | ||
805 | source "arch/arm/mach-s5p6440/Kconfig" | 818 | source "arch/arm/mach-s5p6440/Kconfig" |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 893bcfc77708..a2a941d98c25 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -160,7 +160,7 @@ machine-$(CONFIG_ARCH_REALVIEW) := realview | |||
160 | machine-$(CONFIG_ARCH_RPC) := rpc | 160 | machine-$(CONFIG_ARCH_RPC) := rpc |
161 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2440 s3c2443 | 161 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2440 s3c2443 |
162 | machine-$(CONFIG_ARCH_S3C24A0) := s3c24a0 | 162 | machine-$(CONFIG_ARCH_S3C24A0) := s3c24a0 |
163 | machine-$(CONFIG_ARCH_S3C64XX) := s3c6400 s3c6410 | 163 | machine-$(CONFIG_ARCH_S3C64XX) := s3c64xx |
164 | machine-$(CONFIG_ARCH_S5P6440) := s5p6440 | 164 | machine-$(CONFIG_ARCH_S5P6440) := s5p6440 |
165 | machine-$(CONFIG_ARCH_S5PC1XX) := s5pc100 | 165 | machine-$(CONFIG_ARCH_S5PC1XX) := s5pc100 |
166 | machine-$(CONFIG_ARCH_SA1100) := sa1100 | 166 | machine-$(CONFIG_ARCH_SA1100) := sa1100 |
@@ -183,7 +183,7 @@ plat-$(CONFIG_PLAT_NOMADIK) := nomadik | |||
183 | plat-$(CONFIG_PLAT_ORION) := orion | 183 | plat-$(CONFIG_PLAT_ORION) := orion |
184 | plat-$(CONFIG_PLAT_PXA) := pxa | 184 | plat-$(CONFIG_PLAT_PXA) := pxa |
185 | plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx s3c samsung | 185 | plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx s3c samsung |
186 | plat-$(CONFIG_PLAT_S3C64XX) := s3c64xx s3c samsung | 186 | plat-$(CONFIG_ARCH_S3C64XX) := s3c samsung |
187 | plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx s3c samsung | 187 | plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx s3c samsung |
188 | plat-$(CONFIG_PLAT_S5P) := s5p samsung s3c | 188 | plat-$(CONFIG_PLAT_S5P) := s5p samsung s3c |
189 | plat-$(CONFIG_ARCH_STMP3XXX) := stmp3xxx | 189 | plat-$(CONFIG_ARCH_STMP3XXX) := stmp3xxx |
diff --git a/arch/arm/mach-s3c2410/dma.c b/arch/arm/mach-s3c2410/dma.c index 63b753f56c64..0d8e043804c2 100644 --- a/arch/arm/mach-s3c2410/dma.c +++ b/arch/arm/mach-s3c2410/dma.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <mach/dma.h> | 21 | #include <mach/dma.h> |
22 | 22 | ||
23 | #include <plat/cpu.h> | 23 | #include <plat/cpu.h> |
24 | #include <plat/dma-plat.h> | 24 | #include <plat/dma-s3c24xx.h> |
25 | 25 | ||
26 | #include <plat/regs-serial.h> | 26 | #include <plat/regs-serial.h> |
27 | #include <mach/regs-gpio.h> | 27 | #include <mach/regs-gpio.h> |
diff --git a/arch/arm/plat-s3c24xx/include/plat/pm-core.h b/arch/arm/mach-s3c2410/include/mach/pm-core.h index fb45dd9adca5..70a83b209e25 100644 --- a/arch/arm/plat-s3c24xx/include/plat/pm-core.h +++ b/arch/arm/mach-s3c2410/include/mach/pm-core.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c24xx/include/plat/pll.h | 1 | /* linux/arch/arm/mach-s3c2410/include/pm-core.h |
2 | * | 2 | * |
3 | * Copyright 2008 Simtec Electronics | 3 | * Copyright 2008 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
diff --git a/arch/arm/mach-s3c2412/dma.c b/arch/arm/mach-s3c2412/dma.c index f8d16fc10bc6..e880524904eb 100644 --- a/arch/arm/mach-s3c2412/dma.c +++ b/arch/arm/mach-s3c2412/dma.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include <mach/dma.h> | 21 | #include <mach/dma.h> |
22 | 22 | ||
23 | #include <plat/dma-plat.h> | 23 | #include <plat/dma-s3c24xx.h> |
24 | #include <plat/cpu.h> | 24 | #include <plat/cpu.h> |
25 | 25 | ||
26 | #include <plat/regs-serial.h> | 26 | #include <plat/regs-serial.h> |
diff --git a/arch/arm/mach-s3c2440/dma.c b/arch/arm/mach-s3c2440/dma.c index e08e081430f0..3b0529f54e9c 100644 --- a/arch/arm/mach-s3c2440/dma.c +++ b/arch/arm/mach-s3c2440/dma.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <mach/map.h> | 20 | #include <mach/map.h> |
21 | #include <mach/dma.h> | 21 | #include <mach/dma.h> |
22 | 22 | ||
23 | #include <plat/dma-plat.h> | 23 | #include <plat/dma-s3c24xx.h> |
24 | #include <plat/cpu.h> | 24 | #include <plat/cpu.h> |
25 | 25 | ||
26 | #include <plat/regs-serial.h> | 26 | #include <plat/regs-serial.h> |
diff --git a/arch/arm/mach-s3c2443/dma.c b/arch/arm/mach-s3c2443/dma.c index 397f3b5c0b47..3f658685ec16 100644 --- a/arch/arm/mach-s3c2443/dma.c +++ b/arch/arm/mach-s3c2443/dma.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include <mach/dma.h> | 21 | #include <mach/dma.h> |
22 | 22 | ||
23 | #include <plat/dma-plat.h> | 23 | #include <plat/dma-s3c24xx.h> |
24 | #include <plat/cpu.h> | 24 | #include <plat/cpu.h> |
25 | 25 | ||
26 | #include <plat/regs-serial.h> | 26 | #include <plat/regs-serial.h> |
diff --git a/arch/arm/mach-s3c6400/Kconfig b/arch/arm/mach-s3c6400/Kconfig deleted file mode 100644 index a250bf68709f..000000000000 --- a/arch/arm/mach-s3c6400/Kconfig +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | # Copyright 2008 Openmoko, Inc. | ||
2 | # Simtec Electronics, Ben Dooks <ben@simtec.co.uk> | ||
3 | # | ||
4 | # Licensed under GPLv2 | ||
5 | |||
6 | # Configuration options for the S3C6410 CPU | ||
7 | |||
8 | config CPU_S3C6400 | ||
9 | bool | ||
10 | select CPU_S3C6400_INIT | ||
11 | select CPU_S3C6400_CLOCK | ||
12 | help | ||
13 | Enable S3C6400 CPU support | ||
14 | |||
15 | config S3C6400_SETUP_SDHCI | ||
16 | bool | ||
17 | help | ||
18 | Internal configuration for default SDHCI | ||
19 | setup for S3C6400. | ||
20 | |||
21 | # S36400 Macchine support | ||
22 | |||
23 | config MACH_SMDK6400 | ||
24 | bool "SMDK6400" | ||
25 | select CPU_S3C6400 | ||
26 | select S3C_DEV_HSMMC | ||
27 | select S3C_DEV_NAND | ||
28 | select S3C6400_SETUP_SDHCI | ||
29 | help | ||
30 | Machine support for the Samsung SMDK6400 | ||
diff --git a/arch/arm/mach-s3c6400/Makefile b/arch/arm/mach-s3c6400/Makefile deleted file mode 100644 index df1ce4aa03e5..000000000000 --- a/arch/arm/mach-s3c6400/Makefile +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # arch/arm/mach-s3c6400/Makefile | ||
2 | # | ||
3 | # Copyright 2008 Openmoko, Inc. | ||
4 | # Copyright 2008 Simtec Electronics | ||
5 | # | ||
6 | # Licensed under GPLv2 | ||
7 | |||
8 | obj-y := | ||
9 | obj-m := | ||
10 | obj-n := | ||
11 | obj- := | ||
12 | |||
13 | # Core support for S3C6400 system | ||
14 | |||
15 | obj-$(CONFIG_CPU_S3C6400) += s3c6400.o | ||
16 | |||
17 | # setup support | ||
18 | |||
19 | obj-$(CONFIG_S3C6400_SETUP_SDHCI) += setup-sdhci.o | ||
20 | |||
21 | # Machine support | ||
22 | |||
23 | obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o | ||
diff --git a/arch/arm/mach-s3c6400/include/mach/dma.h b/arch/arm/mach-s3c6400/include/mach/dma.h deleted file mode 100644 index 6723860748be..000000000000 --- a/arch/arm/mach-s3c6400/include/mach/dma.h +++ /dev/null | |||
@@ -1,70 +0,0 @@ | |||
1 | /* linux/arch/arm/mach-s3c6400/include/mach/dma.h | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * http://armlinux.simtec.co.uk/ | ||
7 | * | ||
8 | * S3C6400 - DMA support | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARCH_DMA_H | ||
12 | #define __ASM_ARCH_DMA_H __FILE__ | ||
13 | |||
14 | #define S3C_DMA_CHANNELS (16) | ||
15 | |||
16 | /* see mach-s3c2410/dma.h for notes on dma channel numbers */ | ||
17 | |||
18 | /* Note, for the S3C64XX architecture we keep the DMACH_ | ||
19 | * defines in the order they are allocated to [S]DMA0/[S]DMA1 | ||
20 | * so that is easy to do DHACH_ -> DMA controller conversion | ||
21 | */ | ||
22 | enum dma_ch { | ||
23 | /* DMA0/SDMA0 */ | ||
24 | DMACH_UART0 = 0, | ||
25 | DMACH_UART0_SRC2, | ||
26 | DMACH_UART1, | ||
27 | DMACH_UART1_SRC2, | ||
28 | DMACH_UART2, | ||
29 | DMACH_UART2_SRC2, | ||
30 | DMACH_UART3, | ||
31 | DMACH_UART3_SRC2, | ||
32 | DMACH_PCM0_TX, | ||
33 | DMACH_PCM0_RX, | ||
34 | DMACH_I2S0_OUT, | ||
35 | DMACH_I2S0_IN, | ||
36 | DMACH_SPI0_TX, | ||
37 | DMACH_SPI0_RX, | ||
38 | DMACH_HSI_I2SV40_TX, | ||
39 | DMACH_HSI_I2SV40_RX, | ||
40 | |||
41 | /* DMA1/SDMA1 */ | ||
42 | DMACH_PCM1_TX = 16, | ||
43 | DMACH_PCM1_RX, | ||
44 | DMACH_I2S1_OUT, | ||
45 | DMACH_I2S1_IN, | ||
46 | DMACH_SPI1_TX, | ||
47 | DMACH_SPI1_RX, | ||
48 | DMACH_AC97_PCMOUT, | ||
49 | DMACH_AC97_PCMIN, | ||
50 | DMACH_AC97_MICIN, | ||
51 | DMACH_PWM, | ||
52 | DMACH_IRDA, | ||
53 | DMACH_EXTERNAL, | ||
54 | DMACH_RES1, | ||
55 | DMACH_RES2, | ||
56 | DMACH_SECURITY_RX, /* SDMA1 only */ | ||
57 | DMACH_SECURITY_TX, /* SDMA1 only */ | ||
58 | DMACH_MAX /* the end */ | ||
59 | }; | ||
60 | |||
61 | static __inline__ bool s3c_dma_has_circular(void) | ||
62 | { | ||
63 | return true; | ||
64 | } | ||
65 | |||
66 | #define S3C2410_DMAF_CIRCULAR (1 << 0) | ||
67 | |||
68 | #include <plat/dma.h> | ||
69 | |||
70 | #endif /* __ASM_ARCH_IRQ_H */ | ||
diff --git a/arch/arm/mach-s3c6400/include/mach/irqs.h b/arch/arm/mach-s3c6400/include/mach/irqs.h deleted file mode 100644 index 4c97f9a4370b..000000000000 --- a/arch/arm/mach-s3c6400/include/mach/irqs.h +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /* linux/arch/arm/mach-s3c6400/include/mach/irqs.h | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * http://armlinux.simtec.co.uk/ | ||
7 | * | ||
8 | * S3C6400 - IRQ definitions | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARCH_IRQS_H | ||
12 | #define __ASM_ARCH_IRQS_H __FILE__ | ||
13 | |||
14 | #include <plat/irqs.h> | ||
15 | |||
16 | #endif /* __ASM_ARCH_IRQ_H */ | ||
diff --git a/arch/arm/mach-s3c6400/include/mach/regs-clock.h b/arch/arm/mach-s3c6400/include/mach/regs-clock.h deleted file mode 100644 index a6c7f4eb3a1b..000000000000 --- a/arch/arm/mach-s3c6400/include/mach/regs-clock.h +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /* linux/arch/arm/mach-s3c6400/include/mach/regs-clock.h | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * http://armlinux.simtec.co.uk/ | ||
6 | * Ben Dooks <ben@simtec.co.uk> | ||
7 | * | ||
8 | * S3C64XX - clock register compatibility with s3c24xx | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <plat/regs-clock.h> | ||
16 | |||
diff --git a/arch/arm/mach-s3c6410/Makefile b/arch/arm/mach-s3c6410/Makefile deleted file mode 100644 index 3e48c3dbf973..000000000000 --- a/arch/arm/mach-s3c6410/Makefile +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | # arch/arm/plat-s3c6410/Makefile | ||
2 | # | ||
3 | # Copyright 2008 Openmoko, Inc. | ||
4 | # Copyright 2008 Simtec Electronics | ||
5 | # | ||
6 | # Licensed under GPLv2 | ||
7 | |||
8 | obj-y := | ||
9 | obj-m := | ||
10 | obj-n := | ||
11 | obj- := | ||
12 | |||
13 | # Core support for S3C6410 system | ||
14 | |||
15 | obj-$(CONFIG_CPU_S3C6410) += cpu.o | ||
16 | |||
17 | # Helper and device support | ||
18 | |||
19 | obj-$(CONFIG_S3C6410_SETUP_SDHCI) += setup-sdhci.o | ||
20 | |||
21 | # machine support | ||
22 | |||
23 | obj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o | ||
24 | obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o | ||
25 | obj-$(CONFIG_MACH_NCP) += mach-ncp.o | ||
26 | obj-$(CONFIG_MACH_HMT) += mach-hmt.o | ||
diff --git a/arch/arm/mach-s3c6410/setup-sdhci.c b/arch/arm/mach-s3c6410/setup-sdhci.c deleted file mode 100644 index 816d2d9f9ef8..000000000000 --- a/arch/arm/mach-s3c6410/setup-sdhci.c +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | /* linux/arch/arm/mach-s3c6410/setup-sdhci.c | ||
2 | * | ||
3 | * Copyright 2008 Simtec Electronics | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * http://armlinux.simtec.co.uk/ | ||
7 | * | ||
8 | * S3C6410 - Helper functions for settign up SDHCI device(s) (HSMMC) | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/platform_device.h> | ||
19 | #include <linux/io.h> | ||
20 | |||
21 | #include <linux/mmc/card.h> | ||
22 | #include <linux/mmc/host.h> | ||
23 | |||
24 | #include <plat/regs-sdhci.h> | ||
25 | #include <plat/sdhci.h> | ||
26 | |||
27 | /* clock sources for the mmc bus clock, order as for the ctrl2[5..4] */ | ||
28 | |||
29 | char *s3c6410_hsmmc_clksrcs[4] = { | ||
30 | [0] = "hsmmc", | ||
31 | [1] = "hsmmc", | ||
32 | [2] = "mmc_bus", | ||
33 | /* [3] = "48m", - note not successfully used yet */ | ||
34 | }; | ||
35 | |||
36 | |||
37 | void s3c6410_setup_sdhci0_cfg_card(struct platform_device *dev, | ||
38 | void __iomem *r, | ||
39 | struct mmc_ios *ios, | ||
40 | struct mmc_card *card) | ||
41 | { | ||
42 | u32 ctrl2, ctrl3; | ||
43 | |||
44 | /* don't need to alter anything acording to card-type */ | ||
45 | |||
46 | writel(S3C64XX_SDHCI_CONTROL4_DRIVE_9mA, r + S3C64XX_SDHCI_CONTROL4); | ||
47 | |||
48 | ctrl2 = readl(r + S3C_SDHCI_CONTROL2); | ||
49 | ctrl2 &= S3C_SDHCI_CTRL2_SELBASECLK_MASK; | ||
50 | ctrl2 |= (S3C64XX_SDHCI_CTRL2_ENSTAASYNCCLR | | ||
51 | S3C64XX_SDHCI_CTRL2_ENCMDCNFMSK | | ||
52 | S3C_SDHCI_CTRL2_ENFBCLKRX | | ||
53 | S3C_SDHCI_CTRL2_DFCNT_NONE | | ||
54 | S3C_SDHCI_CTRL2_ENCLKOUTHOLD); | ||
55 | |||
56 | if (ios->clock < 25 * 1000000) | ||
57 | ctrl3 = (S3C_SDHCI_CTRL3_FCSEL3 | | ||
58 | S3C_SDHCI_CTRL3_FCSEL2 | | ||
59 | S3C_SDHCI_CTRL3_FCSEL1 | | ||
60 | S3C_SDHCI_CTRL3_FCSEL0); | ||
61 | else | ||
62 | ctrl3 = (S3C_SDHCI_CTRL3_FCSEL1 | S3C_SDHCI_CTRL3_FCSEL0); | ||
63 | |||
64 | printk(KERN_INFO "%s: CTRL 2=%08x, 3=%08x\n", __func__, ctrl2, ctrl3); | ||
65 | writel(ctrl2, r + S3C_SDHCI_CONTROL2); | ||
66 | writel(ctrl3, r + S3C_SDHCI_CONTROL3); | ||
67 | } | ||
68 | |||
diff --git a/arch/arm/mach-s3c6410/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index 162f4561f80f..44cdd80ea107 100644 --- a/arch/arm/mach-s3c6410/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig | |||
@@ -1,22 +1,78 @@ | |||
1 | # Copyright 2008 Openmoko, Inc. | 1 | # Copyright 2008 Openmoko, Inc. |
2 | # Copyright 2008 Simtec Electronics | 2 | # Simtec Electronics, Ben Dooks <ben@simtec.co.uk> |
3 | # | 3 | # |
4 | # Licensed under GPLv2 | 4 | # Licensed under GPLv2 |
5 | 5 | ||
6 | # temporary until we can eliminate all drivers using it. | ||
7 | config PLAT_S3C64XX | ||
8 | bool | ||
9 | depends on ARCH_S3C64XX | ||
10 | default y | ||
11 | help | ||
12 | Base platform code for any Samsung S3C64XX device | ||
13 | |||
14 | |||
6 | # Configuration options for the S3C6410 CPU | 15 | # Configuration options for the S3C6410 CPU |
7 | 16 | ||
17 | config CPU_S3C6400 | ||
18 | bool | ||
19 | help | ||
20 | Enable S3C6400 CPU support | ||
21 | |||
8 | config CPU_S3C6410 | 22 | config CPU_S3C6410 |
9 | bool | 23 | bool |
10 | select CPU_S3C6400_INIT | ||
11 | select CPU_S3C6400_CLOCK | ||
12 | help | 24 | help |
13 | Enable S3C6410 CPU support | 25 | Enable S3C6410 CPU support |
14 | 26 | ||
15 | config S3C6410_SETUP_SDHCI | 27 | config S3C64XX_DMA |
16 | bool | 28 | bool "S3C64XX DMA" |
29 | select S3C_DMA | ||
30 | |||
31 | config S3C64XX_SETUP_SDHCI | ||
17 | select S3C64XX_SETUP_SDHCI_GPIO | 32 | select S3C64XX_SETUP_SDHCI_GPIO |
33 | bool | ||
34 | help | ||
35 | Internal configuration for default SDHCI setup for S3C6400 and | ||
36 | S3C6410 SoCs. | ||
37 | |||
38 | # platform specific device setup | ||
39 | |||
40 | config S3C64XX_SETUP_I2C0 | ||
41 | bool | ||
42 | default y | ||
18 | help | 43 | help |
19 | Internal helper functions for S3C6410 based SDHCI systems | 44 | Common setup code for i2c bus 0. |
45 | |||
46 | Note, currently since i2c0 is always compiled, this setup helper | ||
47 | is always compiled with it. | ||
48 | |||
49 | config S3C64XX_SETUP_I2C1 | ||
50 | bool | ||
51 | help | ||
52 | Common setup code for i2c bus 1. | ||
53 | |||
54 | config S3C64XX_SETUP_FB_24BPP | ||
55 | bool | ||
56 | help | ||
57 | Common setup code for S3C64XX with an 24bpp RGB display helper. | ||
58 | |||
59 | config S3C64XX_SETUP_SDHCI_GPIO | ||
60 | bool | ||
61 | help | ||
62 | Common setup code for S3C64XX SDHCI GPIO configurations | ||
63 | |||
64 | # S36400 Macchine support | ||
65 | |||
66 | config MACH_SMDK6400 | ||
67 | bool "SMDK6400" | ||
68 | select CPU_S3C6400 | ||
69 | select S3C_DEV_HSMMC | ||
70 | select S3C_DEV_NAND | ||
71 | select S3C64XX_SETUP_SDHCI | ||
72 | help | ||
73 | Machine support for the Samsung SMDK6400 | ||
74 | |||
75 | # S3C6410 machine support | ||
20 | 76 | ||
21 | config MACH_ANW6410 | 77 | config MACH_ANW6410 |
22 | bool "A&W6410" | 78 | bool "A&W6410" |
@@ -35,7 +91,7 @@ config MACH_SMDK6410 | |||
35 | select S3C_DEV_FB | 91 | select S3C_DEV_FB |
36 | select S3C_DEV_USB_HOST | 92 | select S3C_DEV_USB_HOST |
37 | select S3C_DEV_USB_HSOTG | 93 | select S3C_DEV_USB_HSOTG |
38 | select S3C6410_SETUP_SDHCI | 94 | select S3C64XX_SETUP_SDHCI |
39 | select S3C64XX_SETUP_I2C1 | 95 | select S3C64XX_SETUP_I2C1 |
40 | select S3C64XX_SETUP_FB_24BPP | 96 | select S3C64XX_SETUP_FB_24BPP |
41 | help | 97 | help |
@@ -58,7 +114,7 @@ config SMDK6410_SD_CH0 | |||
58 | at least some SMDK6410 boards come with the | 114 | at least some SMDK6410 boards come with the |
59 | resistors fitted so that the card detects for | 115 | resistors fitted so that the card detects for |
60 | channels 0 and 1 are the same. | 116 | channels 0 and 1 are the same. |
61 | 117 | ||
62 | config SMDK6410_SD_CH1 | 118 | config SMDK6410_SD_CH1 |
63 | bool "Use channel 1 only" | 119 | bool "Use channel 1 only" |
64 | depends on MACH_SMDK6410 | 120 | depends on MACH_SMDK6410 |
diff --git a/arch/arm/plat-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 33a73f3e9f01..d1d341a14f75 100644 --- a/arch/arm/plat-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # arch/arm/plat-s3c64xx/Makefile | 1 | # arch/arm/mach-s3c64xx/Makefile |
2 | # | 2 | # |
3 | # Copyright 2008 Openmoko, Inc. | 3 | # Copyright 2008 Openmoko, Inc. |
4 | # Copyright 2008 Simtec Electronics | 4 | # Copyright 2008 Simtec Electronics |
@@ -7,49 +7,56 @@ | |||
7 | 7 | ||
8 | obj-y := | 8 | obj-y := |
9 | obj-m := | 9 | obj-m := |
10 | obj-n := dummy.o | 10 | obj-n := |
11 | obj- := | 11 | obj- := |
12 | 12 | ||
13 | # Core files | 13 | # Core files |
14 | |||
15 | obj-y += dev-uart.o | ||
16 | obj-y += dev-rtc.o | ||
17 | obj-y += cpu.o | 14 | obj-y += cpu.o |
18 | obj-y += irq.o | ||
19 | obj-y += irq-eint.o | ||
20 | obj-y += clock.o | 15 | obj-y += clock.o |
21 | obj-y += gpiolib.o | 16 | obj-y += gpiolib.o |
22 | 17 | ||
23 | # CPU support | 18 | # Core support for S3C6400 system |
24 | 19 | ||
25 | obj-$(CONFIG_CPU_S3C6400_INIT) += s3c6400-init.o | 20 | obj-$(CONFIG_CPU_S3C6400) += s3c6400.o |
26 | obj-$(CONFIG_CPU_S3C6400_CLOCK) += s3c6400-clock.o | 21 | obj-$(CONFIG_CPU_S3C6410) += s3c6410.o |
27 | obj-$(CONFIG_CPU_FREQ_S3C64XX) += cpufreq.o | ||
28 | 22 | ||
29 | # PM support | 23 | obj-y += irq.o |
24 | obj-y += irq-eint.o | ||
30 | 25 | ||
31 | obj-$(CONFIG_PM) += pm.o | 26 | # CPU frequency scaling |
32 | obj-$(CONFIG_PM) += sleep.o | 27 | |
33 | obj-$(CONFIG_PM) += irq-pm.o | 28 | obj-$(CONFIG_CPU_FREQ_S3C64XX) += cpufreq.o |
34 | 29 | ||
35 | # DMA support | 30 | # DMA support |
36 | 31 | ||
37 | obj-$(CONFIG_S3C64XX_DMA) += dma.o | 32 | obj-$(CONFIG_S3C64XX_DMA) += dma.o |
38 | 33 | ||
39 | # ADC support | ||
40 | |||
41 | obj-$(CONFIG_S3C_ADC) += dev-adc.o | ||
42 | |||
43 | # SPI support | ||
44 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o | ||
45 | |||
46 | # Device support | ||
47 | obj-y += dev-audio.o | ||
48 | |||
49 | # Device setup | 34 | # Device setup |
50 | 35 | ||
51 | obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o | 36 | obj-$(CONFIG_S3C64XX_SETUP_I2C0) += setup-i2c0.o |
52 | obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o | 37 | obj-$(CONFIG_S3C64XX_SETUP_I2C1) += setup-i2c1.o |
38 | obj-$(CONFIG_S3C64XX_SETUP_SDHCI) += setup-sdhci.o | ||
53 | obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o | 39 | obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o |
54 | obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o | 40 | obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o |
55 | 41 | ||
42 | # PM | ||
43 | |||
44 | obj-$(CONFIG_PM) += pm.o | ||
45 | obj-$(CONFIG_PM) += sleep.o | ||
46 | obj-$(CONFIG_PM) += irq-pm.o | ||
47 | |||
48 | # Machine support | ||
49 | |||
50 | obj-$(CONFIG_MACH_ANW6410) += mach-anw6410.o | ||
51 | obj-$(CONFIG_MACH_SMDK6400) += mach-smdk6400.o | ||
52 | obj-$(CONFIG_MACH_SMDK6410) += mach-smdk6410.o | ||
53 | obj-$(CONFIG_MACH_NCP) += mach-ncp.o | ||
54 | obj-$(CONFIG_MACH_HMT) += mach-hmt.o | ||
55 | |||
56 | # device support | ||
57 | |||
58 | obj-y += dev-uart.o | ||
59 | obj-y += dev-rtc.o | ||
60 | obj-$(CONFIG_S3C_ADC) += dev-adc.o | ||
61 | obj-$(CONFIG_SND_S3C24XX_SOC) += dev-audio.o | ||
62 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o | ||
diff --git a/arch/arm/mach-s3c6400/Makefile.boot b/arch/arm/mach-s3c64xx/Makefile.boot index ba41fdc0a586..ba41fdc0a586 100644 --- a/arch/arm/mach-s3c6400/Makefile.boot +++ b/arch/arm/mach-s3c64xx/Makefile.boot | |||
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/mach-s3c64xx/clock.c index cb2bf4bff051..7f5e1aa99ce1 100644 --- a/arch/arm/plat-s3c64xx/s3c6400-clock.c +++ b/arch/arm/mach-s3c64xx/clock.c | |||
@@ -1,11 +1,11 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/s3c6400-clock.c | 1 | /* linux/arch/arm/plat-s3c64xx/clock.c |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * http://armlinux.simtec.co.uk/ | 6 | * http://armlinux.simtec.co.uk/ |
7 | * | 7 | * |
8 | * S3C6400 based common clock support | 8 | * S3C64XX Base clock support |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
@@ -14,24 +14,24 @@ | |||
14 | 14 | ||
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/interrupt.h> |
18 | #include <linux/list.h> | 18 | #include <linux/ioport.h> |
19 | #include <linux/errno.h> | ||
20 | #include <linux/err.h> | ||
21 | #include <linux/clk.h> | 19 | #include <linux/clk.h> |
22 | #include <linux/sysdev.h> | 20 | #include <linux/err.h> |
23 | #include <linux/io.h> | 21 | #include <linux/io.h> |
24 | 22 | ||
25 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
26 | #include <mach/map.h> | 24 | #include <mach/map.h> |
27 | 25 | ||
28 | #include <plat/cpu-freq.h> | 26 | #include <mach/regs-sys.h> |
27 | #include <mach/regs-clock.h> | ||
28 | #include <mach/pll.h> | ||
29 | 29 | ||
30 | #include <plat/regs-clock.h> | 30 | #include <plat/cpu.h> |
31 | #include <plat/devs.h> | ||
32 | #include <plat/cpu-freq.h> | ||
31 | #include <plat/clock.h> | 33 | #include <plat/clock.h> |
32 | #include <plat/clock-clksrc.h> | 34 | #include <plat/clock-clksrc.h> |
33 | #include <plat/cpu.h> | ||
34 | #include <plat/pll.h> | ||
35 | 35 | ||
36 | /* fin_apll, fin_mpll and fin_epll are all the same clock, which we call | 36 | /* fin_apll, fin_mpll and fin_epll are all the same clock, which we call |
37 | * ext_xtal_mux for want of an actual name from the manual. | 37 | * ext_xtal_mux for want of an actual name from the manual. |
@@ -49,6 +49,251 @@ static struct clk clk_ext_xtal_mux = { | |||
49 | #define clk_fout_mpll clk_mpll | 49 | #define clk_fout_mpll clk_mpll |
50 | #define clk_fout_epll clk_epll | 50 | #define clk_fout_epll clk_epll |
51 | 51 | ||
52 | struct clk clk_h2 = { | ||
53 | .name = "hclk2", | ||
54 | .id = -1, | ||
55 | .rate = 0, | ||
56 | }; | ||
57 | |||
58 | struct clk clk_27m = { | ||
59 | .name = "clk_27m", | ||
60 | .id = -1, | ||
61 | .rate = 27000000, | ||
62 | }; | ||
63 | |||
64 | static int clk_48m_ctrl(struct clk *clk, int enable) | ||
65 | { | ||
66 | unsigned long flags; | ||
67 | u32 val; | ||
68 | |||
69 | /* can't rely on clock lock, this register has other usages */ | ||
70 | local_irq_save(flags); | ||
71 | |||
72 | val = __raw_readl(S3C64XX_OTHERS); | ||
73 | if (enable) | ||
74 | val |= S3C64XX_OTHERS_USBMASK; | ||
75 | else | ||
76 | val &= ~S3C64XX_OTHERS_USBMASK; | ||
77 | |||
78 | __raw_writel(val, S3C64XX_OTHERS); | ||
79 | local_irq_restore(flags); | ||
80 | |||
81 | return 0; | ||
82 | } | ||
83 | |||
84 | struct clk clk_48m = { | ||
85 | .name = "clk_48m", | ||
86 | .id = -1, | ||
87 | .rate = 48000000, | ||
88 | .enable = clk_48m_ctrl, | ||
89 | }; | ||
90 | |||
91 | static int inline s3c64xx_gate(void __iomem *reg, | ||
92 | struct clk *clk, | ||
93 | int enable) | ||
94 | { | ||
95 | unsigned int ctrlbit = clk->ctrlbit; | ||
96 | u32 con; | ||
97 | |||
98 | con = __raw_readl(reg); | ||
99 | |||
100 | if (enable) | ||
101 | con |= ctrlbit; | ||
102 | else | ||
103 | con &= ~ctrlbit; | ||
104 | |||
105 | __raw_writel(con, reg); | ||
106 | return 0; | ||
107 | } | ||
108 | |||
109 | static int s3c64xx_pclk_ctrl(struct clk *clk, int enable) | ||
110 | { | ||
111 | return s3c64xx_gate(S3C_PCLK_GATE, clk, enable); | ||
112 | } | ||
113 | |||
114 | static int s3c64xx_hclk_ctrl(struct clk *clk, int enable) | ||
115 | { | ||
116 | return s3c64xx_gate(S3C_HCLK_GATE, clk, enable); | ||
117 | } | ||
118 | |||
119 | int s3c64xx_sclk_ctrl(struct clk *clk, int enable) | ||
120 | { | ||
121 | return s3c64xx_gate(S3C_SCLK_GATE, clk, enable); | ||
122 | } | ||
123 | |||
124 | static struct clk init_clocks_disable[] = { | ||
125 | { | ||
126 | .name = "nand", | ||
127 | .id = -1, | ||
128 | .parent = &clk_h, | ||
129 | }, { | ||
130 | .name = "adc", | ||
131 | .id = -1, | ||
132 | .parent = &clk_p, | ||
133 | .enable = s3c64xx_pclk_ctrl, | ||
134 | .ctrlbit = S3C_CLKCON_PCLK_TSADC, | ||
135 | }, { | ||
136 | .name = "i2c", | ||
137 | .id = -1, | ||
138 | .parent = &clk_p, | ||
139 | .enable = s3c64xx_pclk_ctrl, | ||
140 | .ctrlbit = S3C_CLKCON_PCLK_IIC, | ||
141 | }, { | ||
142 | .name = "iis", | ||
143 | .id = 0, | ||
144 | .parent = &clk_p, | ||
145 | .enable = s3c64xx_pclk_ctrl, | ||
146 | .ctrlbit = S3C_CLKCON_PCLK_IIS0, | ||
147 | }, { | ||
148 | .name = "iis", | ||
149 | .id = 1, | ||
150 | .parent = &clk_p, | ||
151 | .enable = s3c64xx_pclk_ctrl, | ||
152 | .ctrlbit = S3C_CLKCON_PCLK_IIS1, | ||
153 | }, { | ||
154 | .name = "spi", | ||
155 | .id = 0, | ||
156 | .parent = &clk_p, | ||
157 | .enable = s3c64xx_pclk_ctrl, | ||
158 | .ctrlbit = S3C_CLKCON_PCLK_SPI0, | ||
159 | }, { | ||
160 | .name = "spi", | ||
161 | .id = 1, | ||
162 | .parent = &clk_p, | ||
163 | .enable = s3c64xx_pclk_ctrl, | ||
164 | .ctrlbit = S3C_CLKCON_PCLK_SPI1, | ||
165 | }, { | ||
166 | .name = "spi_48m", | ||
167 | .id = 0, | ||
168 | .parent = &clk_48m, | ||
169 | .enable = s3c64xx_sclk_ctrl, | ||
170 | .ctrlbit = S3C_CLKCON_SCLK_SPI0_48, | ||
171 | }, { | ||
172 | .name = "spi_48m", | ||
173 | .id = 1, | ||
174 | .parent = &clk_48m, | ||
175 | .enable = s3c64xx_sclk_ctrl, | ||
176 | .ctrlbit = S3C_CLKCON_SCLK_SPI1_48, | ||
177 | }, { | ||
178 | .name = "48m", | ||
179 | .id = 0, | ||
180 | .parent = &clk_48m, | ||
181 | .enable = s3c64xx_sclk_ctrl, | ||
182 | .ctrlbit = S3C_CLKCON_SCLK_MMC0_48, | ||
183 | }, { | ||
184 | .name = "48m", | ||
185 | .id = 1, | ||
186 | .parent = &clk_48m, | ||
187 | .enable = s3c64xx_sclk_ctrl, | ||
188 | .ctrlbit = S3C_CLKCON_SCLK_MMC1_48, | ||
189 | }, { | ||
190 | .name = "48m", | ||
191 | .id = 2, | ||
192 | .parent = &clk_48m, | ||
193 | .enable = s3c64xx_sclk_ctrl, | ||
194 | .ctrlbit = S3C_CLKCON_SCLK_MMC2_48, | ||
195 | }, { | ||
196 | .name = "dma0", | ||
197 | .id = -1, | ||
198 | .parent = &clk_h, | ||
199 | .enable = s3c64xx_hclk_ctrl, | ||
200 | .ctrlbit = S3C_CLKCON_HCLK_DMA0, | ||
201 | }, { | ||
202 | .name = "dma1", | ||
203 | .id = -1, | ||
204 | .parent = &clk_h, | ||
205 | .enable = s3c64xx_hclk_ctrl, | ||
206 | .ctrlbit = S3C_CLKCON_HCLK_DMA1, | ||
207 | }, | ||
208 | }; | ||
209 | |||
210 | static struct clk init_clocks[] = { | ||
211 | { | ||
212 | .name = "lcd", | ||
213 | .id = -1, | ||
214 | .parent = &clk_h, | ||
215 | .enable = s3c64xx_hclk_ctrl, | ||
216 | .ctrlbit = S3C_CLKCON_HCLK_LCD, | ||
217 | }, { | ||
218 | .name = "gpio", | ||
219 | .id = -1, | ||
220 | .parent = &clk_p, | ||
221 | .enable = s3c64xx_pclk_ctrl, | ||
222 | .ctrlbit = S3C_CLKCON_PCLK_GPIO, | ||
223 | }, { | ||
224 | .name = "usb-host", | ||
225 | .id = -1, | ||
226 | .parent = &clk_h, | ||
227 | .enable = s3c64xx_hclk_ctrl, | ||
228 | .ctrlbit = S3C_CLKCON_HCLK_UHOST, | ||
229 | }, { | ||
230 | .name = "hsmmc", | ||
231 | .id = 0, | ||
232 | .parent = &clk_h, | ||
233 | .enable = s3c64xx_hclk_ctrl, | ||
234 | .ctrlbit = S3C_CLKCON_HCLK_HSMMC0, | ||
235 | }, { | ||
236 | .name = "hsmmc", | ||
237 | .id = 1, | ||
238 | .parent = &clk_h, | ||
239 | .enable = s3c64xx_hclk_ctrl, | ||
240 | .ctrlbit = S3C_CLKCON_HCLK_HSMMC1, | ||
241 | }, { | ||
242 | .name = "hsmmc", | ||
243 | .id = 2, | ||
244 | .parent = &clk_h, | ||
245 | .enable = s3c64xx_hclk_ctrl, | ||
246 | .ctrlbit = S3C_CLKCON_HCLK_HSMMC2, | ||
247 | }, { | ||
248 | .name = "timers", | ||
249 | .id = -1, | ||
250 | .parent = &clk_p, | ||
251 | .enable = s3c64xx_pclk_ctrl, | ||
252 | .ctrlbit = S3C_CLKCON_PCLK_PWM, | ||
253 | }, { | ||
254 | .name = "uart", | ||
255 | .id = 0, | ||
256 | .parent = &clk_p, | ||
257 | .enable = s3c64xx_pclk_ctrl, | ||
258 | .ctrlbit = S3C_CLKCON_PCLK_UART0, | ||
259 | }, { | ||
260 | .name = "uart", | ||
261 | .id = 1, | ||
262 | .parent = &clk_p, | ||
263 | .enable = s3c64xx_pclk_ctrl, | ||
264 | .ctrlbit = S3C_CLKCON_PCLK_UART1, | ||
265 | }, { | ||
266 | .name = "uart", | ||
267 | .id = 2, | ||
268 | .parent = &clk_p, | ||
269 | .enable = s3c64xx_pclk_ctrl, | ||
270 | .ctrlbit = S3C_CLKCON_PCLK_UART2, | ||
271 | }, { | ||
272 | .name = "uart", | ||
273 | .id = 3, | ||
274 | .parent = &clk_p, | ||
275 | .enable = s3c64xx_pclk_ctrl, | ||
276 | .ctrlbit = S3C_CLKCON_PCLK_UART3, | ||
277 | }, { | ||
278 | .name = "rtc", | ||
279 | .id = -1, | ||
280 | .parent = &clk_p, | ||
281 | .enable = s3c64xx_pclk_ctrl, | ||
282 | .ctrlbit = S3C_CLKCON_PCLK_RTC, | ||
283 | }, { | ||
284 | .name = "watchdog", | ||
285 | .id = -1, | ||
286 | .parent = &clk_p, | ||
287 | .ctrlbit = S3C_CLKCON_PCLK_WDT, | ||
288 | }, { | ||
289 | .name = "ac97", | ||
290 | .id = -1, | ||
291 | .parent = &clk_p, | ||
292 | .ctrlbit = S3C_CLKCON_PCLK_AC97, | ||
293 | } | ||
294 | }; | ||
295 | |||
296 | |||
52 | static struct clk clk_fout_apll = { | 297 | static struct clk clk_fout_apll = { |
53 | .name = "fout_apll", | 298 | .name = "fout_apll", |
54 | .id = -1, | 299 | .id = -1, |
@@ -492,7 +737,7 @@ void __init_or_cpufreq s3c6400_setup_clocks(void) | |||
492 | s3c_set_clksrc(&clksrcs[ptr], true); | 737 | s3c_set_clksrc(&clksrcs[ptr], true); |
493 | } | 738 | } |
494 | 739 | ||
495 | static struct clk *clks[] __initdata = { | 740 | static struct clk *clks1[] __initdata = { |
496 | &clk_ext_xtal_mux, | 741 | &clk_ext_xtal_mux, |
497 | &clk_iis_cd0, | 742 | &clk_iis_cd0, |
498 | &clk_iis_cd1, | 743 | &clk_iis_cd1, |
@@ -503,19 +748,29 @@ static struct clk *clks[] __initdata = { | |||
503 | &clk_arm, | 748 | &clk_arm, |
504 | }; | 749 | }; |
505 | 750 | ||
751 | static struct clk *clks[] __initdata = { | ||
752 | &clk_ext, | ||
753 | &clk_epll, | ||
754 | &clk_27m, | ||
755 | &clk_48m, | ||
756 | &clk_h2, | ||
757 | }; | ||
758 | |||
506 | /** | 759 | /** |
507 | * s3c6400_register_clocks - register clocks for s3c6400 and above | 760 | * s3c64xx_register_clocks - register clocks for s3c6400 and s3c6410 |
508 | * @armclk_divlimit: Divisor mask for ARMCLK | 761 | * @xtal: The rate for the clock crystal feeding the PLLs. |
762 | * @armclk_divlimit: Divisor mask for ARMCLK. | ||
509 | * | 763 | * |
510 | * Register the clocks for the S3C6400 and above SoC range, such | 764 | * Register the clocks for the S3C6400 and S3C6410 SoC range, such |
511 | * as ARMCLK and the clocks which have divider chains attached. | 765 | * as ARMCLK as well as the necessary parent clocks. |
512 | * | 766 | * |
513 | * This call does not setup the clocks, which is left to the | 767 | * This call does not setup the clocks, which is left to the |
514 | * s3c6400_setup_clocks() call which may be needed by the cpufreq | 768 | * s3c6400_setup_clocks() call which may be needed by the cpufreq |
515 | * or resume code to re-set the clocks if the bootloader has changed | 769 | * or resume code to re-set the clocks if the bootloader has changed |
516 | * them. | 770 | * them. |
517 | */ | 771 | */ |
518 | void __init s3c6400_register_clocks(unsigned armclk_divlimit) | 772 | void __init s3c64xx_register_clocks(unsigned long xtal, |
773 | unsigned armclk_divlimit) | ||
519 | { | 774 | { |
520 | struct clk *clkp; | 775 | struct clk *clkp; |
521 | int ret; | 776 | int ret; |
@@ -523,14 +778,24 @@ void __init s3c6400_register_clocks(unsigned armclk_divlimit) | |||
523 | 778 | ||
524 | armclk_mask = armclk_divlimit; | 779 | armclk_mask = armclk_divlimit; |
525 | 780 | ||
526 | for (ptr = 0; ptr < ARRAY_SIZE(clks); ptr++) { | 781 | s3c24xx_register_baseclocks(xtal); |
527 | clkp = clks[ptr]; | 782 | s3c24xx_register_clocks(clks, ARRAY_SIZE(clks)); |
783 | |||
784 | s3c_register_clocks(init_clocks, ARRAY_SIZE(init_clocks)); | ||
785 | |||
786 | clkp = init_clocks_disable; | ||
787 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks_disable); ptr++, clkp++) { | ||
788 | |||
528 | ret = s3c24xx_register_clock(clkp); | 789 | ret = s3c24xx_register_clock(clkp); |
529 | if (ret < 0) { | 790 | if (ret < 0) { |
530 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | 791 | printk(KERN_ERR "Failed to register clock %s (%d)\n", |
531 | clkp->name, ret); | 792 | clkp->name, ret); |
532 | } | 793 | } |
794 | |||
795 | (clkp->enable)(clkp, 0); | ||
533 | } | 796 | } |
534 | 797 | ||
798 | s3c24xx_register_clocks(clks1, ARRAY_SIZE(clks1)); | ||
535 | s3c_register_clksrc(clksrcs, ARRAY_SIZE(clksrcs)); | 799 | s3c_register_clksrc(clksrcs, ARRAY_SIZE(clksrcs)); |
800 | s3c_pwmclk_init(); | ||
536 | } | 801 | } |
diff --git a/arch/arm/plat-s3c64xx/cpu.c b/arch/arm/mach-s3c64xx/cpu.c index bc7ca1812e32..374e45e566b8 100644 --- a/arch/arm/plat-s3c64xx/cpu.c +++ b/arch/arm/mach-s3c64xx/cpu.c | |||
@@ -33,8 +33,8 @@ | |||
33 | #include <plat/devs.h> | 33 | #include <plat/devs.h> |
34 | #include <plat/clock.h> | 34 | #include <plat/clock.h> |
35 | 35 | ||
36 | #include <plat/s3c6400.h> | 36 | #include <mach/s3c6400.h> |
37 | #include <plat/s3c6410.h> | 37 | #include <mach/s3c6410.h> |
38 | 38 | ||
39 | /* table of supported CPUs */ | 39 | /* table of supported CPUs */ |
40 | 40 | ||
@@ -129,6 +129,12 @@ static struct sys_device s3c64xx_sysdev = { | |||
129 | .cls = &s3c64xx_sysclass, | 129 | .cls = &s3c64xx_sysclass, |
130 | }; | 130 | }; |
131 | 131 | ||
132 | /* uart registration process */ | ||
133 | |||
134 | void __init s3c6400_common_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
135 | { | ||
136 | s3c24xx_init_uartdevs("s3c6400-uart", s3c64xx_uart_resources, cfg, no); | ||
137 | } | ||
132 | 138 | ||
133 | /* read cpu identification code */ | 139 | /* read cpu identification code */ |
134 | 140 | ||
diff --git a/arch/arm/plat-s3c64xx/cpufreq.c b/arch/arm/mach-s3c64xx/cpufreq.c index 74c0e8347de5..74c0e8347de5 100644 --- a/arch/arm/plat-s3c64xx/cpufreq.c +++ b/arch/arm/mach-s3c64xx/cpufreq.c | |||
diff --git a/arch/arm/plat-s3c64xx/dev-adc.c b/arch/arm/mach-s3c64xx/dev-adc.c index fafef9b6bcfa..fafef9b6bcfa 100644 --- a/arch/arm/plat-s3c64xx/dev-adc.c +++ b/arch/arm/mach-s3c64xx/dev-adc.c | |||
diff --git a/arch/arm/plat-s3c64xx/dev-audio.c b/arch/arm/mach-s3c64xx/dev-audio.c index f6b7bfb519d7..aaffb8066707 100644 --- a/arch/arm/plat-s3c64xx/dev-audio.c +++ b/arch/arm/mach-s3c64xx/dev-audio.c | |||
@@ -19,12 +19,13 @@ | |||
19 | 19 | ||
20 | #include <plat/devs.h> | 20 | #include <plat/devs.h> |
21 | #include <plat/audio.h> | 21 | #include <plat/audio.h> |
22 | #include <plat/gpio-bank-c.h> | ||
23 | #include <plat/gpio-bank-d.h> | ||
24 | #include <plat/gpio-bank-e.h> | ||
25 | #include <plat/gpio-bank-h.h> | ||
26 | #include <plat/gpio-cfg.h> | 22 | #include <plat/gpio-cfg.h> |
27 | 23 | ||
24 | #include <mach/gpio-bank-c.h> | ||
25 | #include <mach/gpio-bank-d.h> | ||
26 | #include <mach/gpio-bank-e.h> | ||
27 | #include <mach/gpio-bank-h.h> | ||
28 | |||
28 | static int s3c64xx_i2sv3_cfg_gpio(struct platform_device *pdev) | 29 | static int s3c64xx_i2sv3_cfg_gpio(struct platform_device *pdev) |
29 | { | 30 | { |
30 | switch (pdev->id) { | 31 | switch (pdev->id) { |
diff --git a/arch/arm/plat-s3c64xx/dev-rtc.c b/arch/arm/mach-s3c64xx/dev-rtc.c index b9e7a05f0129..b9e7a05f0129 100644 --- a/arch/arm/plat-s3c64xx/dev-rtc.c +++ b/arch/arm/mach-s3c64xx/dev-rtc.c | |||
diff --git a/arch/arm/plat-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c index ca10388d7ed1..29c32d088515 100644 --- a/arch/arm/plat-s3c64xx/dev-spi.c +++ b/arch/arm/mach-s3c64xx/dev-spi.c | |||
@@ -16,11 +16,10 @@ | |||
16 | #include <mach/dma.h> | 16 | #include <mach/dma.h> |
17 | #include <mach/map.h> | 17 | #include <mach/map.h> |
18 | #include <mach/gpio.h> | 18 | #include <mach/gpio.h> |
19 | 19 | #include <mach/gpio-bank-c.h> | |
20 | #include <plat/spi-clocks.h> | 20 | #include <mach/spi-clocks.h> |
21 | 21 | ||
22 | #include <plat/s3c64xx-spi.h> | 22 | #include <plat/s3c64xx-spi.h> |
23 | #include <plat/gpio-bank-c.h> | ||
24 | #include <plat/gpio-cfg.h> | 23 | #include <plat/gpio-cfg.h> |
25 | #include <plat/irqs.h> | 24 | #include <plat/irqs.h> |
26 | 25 | ||
diff --git a/arch/arm/plat-s3c64xx/dev-uart.c b/arch/arm/mach-s3c64xx/dev-uart.c index f797f748b999..f797f748b999 100644 --- a/arch/arm/plat-s3c64xx/dev-uart.c +++ b/arch/arm/mach-s3c64xx/dev-uart.c | |||
diff --git a/arch/arm/plat-s3c64xx/dma.c b/arch/arm/mach-s3c64xx/dma.c index d554b936fcfb..b62bdf18dca4 100644 --- a/arch/arm/plat-s3c64xx/dma.c +++ b/arch/arm/mach-s3c64xx/dma.c | |||
@@ -27,8 +27,7 @@ | |||
27 | #include <mach/map.h> | 27 | #include <mach/map.h> |
28 | #include <mach/irqs.h> | 28 | #include <mach/irqs.h> |
29 | 29 | ||
30 | #include <plat/dma-plat.h> | 30 | #include <mach/regs-sys.h> |
31 | #include <plat/regs-sys.h> | ||
32 | 31 | ||
33 | #include <asm/hardware/pl080.h> | 32 | #include <asm/hardware/pl080.h> |
34 | 33 | ||
diff --git a/arch/arm/plat-s3c64xx/gpiolib.c b/arch/arm/mach-s3c64xx/gpiolib.c index b6e3f55321fa..66e6794481d2 100644 --- a/arch/arm/plat-s3c64xx/gpiolib.c +++ b/arch/arm/mach-s3c64xx/gpiolib.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <plat/gpio-core.h> | 22 | #include <plat/gpio-core.h> |
23 | #include <plat/gpio-cfg.h> | 23 | #include <plat/gpio-cfg.h> |
24 | #include <plat/gpio-cfg-helpers.h> | 24 | #include <plat/gpio-cfg-helpers.h> |
25 | #include <plat/regs-gpio.h> | 25 | #include <mach/regs-gpio.h> |
26 | 26 | ||
27 | /* GPIO bank summary: | 27 | /* GPIO bank summary: |
28 | * | 28 | * |
diff --git a/arch/arm/mach-s3c6400/include/mach/debug-macro.S b/arch/arm/mach-s3c64xx/include/mach/debug-macro.S index b18ac5266dfc..b18ac5266dfc 100644 --- a/arch/arm/mach-s3c6400/include/mach/debug-macro.S +++ b/arch/arm/mach-s3c64xx/include/mach/debug-macro.S | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/dma-plat.h b/arch/arm/mach-s3c64xx/include/mach/dma.h index 8f76a1e474d6..0a5d9268a23e 100644 --- a/arch/arm/plat-s3c64xx/include/plat/dma-plat.h +++ b/arch/arm/mach-s3c64xx/include/mach/dma.h | |||
@@ -1,16 +1,71 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/dma-plat.h | 1 | /* linux/arch/arm/mach-s3c6400/include/mach/dma.h |
2 | * | 2 | * |
3 | * Copyright 2009 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2009 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * http://armlinux.simtec.co.uk/ | 6 | * http://armlinux.simtec.co.uk/ |
7 | * | 7 | * |
8 | * S3C64XX DMA core | 8 | * S3C6400 - DMA support |
9 | * | 9 | */ |
10 | * This program is free software; you can redistribute it and/or modify | 10 | |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | #ifndef __ASM_ARCH_DMA_H |
12 | * published by the Free Software Foundation. | 12 | #define __ASM_ARCH_DMA_H __FILE__ |
13 | */ | 13 | |
14 | #define S3C_DMA_CHANNELS (16) | ||
15 | |||
16 | /* see mach-s3c2410/dma.h for notes on dma channel numbers */ | ||
17 | |||
18 | /* Note, for the S3C64XX architecture we keep the DMACH_ | ||
19 | * defines in the order they are allocated to [S]DMA0/[S]DMA1 | ||
20 | * so that is easy to do DHACH_ -> DMA controller conversion | ||
21 | */ | ||
22 | enum dma_ch { | ||
23 | /* DMA0/SDMA0 */ | ||
24 | DMACH_UART0 = 0, | ||
25 | DMACH_UART0_SRC2, | ||
26 | DMACH_UART1, | ||
27 | DMACH_UART1_SRC2, | ||
28 | DMACH_UART2, | ||
29 | DMACH_UART2_SRC2, | ||
30 | DMACH_UART3, | ||
31 | DMACH_UART3_SRC2, | ||
32 | DMACH_PCM0_TX, | ||
33 | DMACH_PCM0_RX, | ||
34 | DMACH_I2S0_OUT, | ||
35 | DMACH_I2S0_IN, | ||
36 | DMACH_SPI0_TX, | ||
37 | DMACH_SPI0_RX, | ||
38 | DMACH_HSI_I2SV40_TX, | ||
39 | DMACH_HSI_I2SV40_RX, | ||
40 | |||
41 | /* DMA1/SDMA1 */ | ||
42 | DMACH_PCM1_TX = 16, | ||
43 | DMACH_PCM1_RX, | ||
44 | DMACH_I2S1_OUT, | ||
45 | DMACH_I2S1_IN, | ||
46 | DMACH_SPI1_TX, | ||
47 | DMACH_SPI1_RX, | ||
48 | DMACH_AC97_PCMOUT, | ||
49 | DMACH_AC97_PCMIN, | ||
50 | DMACH_AC97_MICIN, | ||
51 | DMACH_PWM, | ||
52 | DMACH_IRDA, | ||
53 | DMACH_EXTERNAL, | ||
54 | DMACH_RES1, | ||
55 | DMACH_RES2, | ||
56 | DMACH_SECURITY_RX, /* SDMA1 only */ | ||
57 | DMACH_SECURITY_TX, /* SDMA1 only */ | ||
58 | DMACH_MAX /* the end */ | ||
59 | }; | ||
60 | |||
61 | static __inline__ bool s3c_dma_has_circular(void) | ||
62 | { | ||
63 | return true; | ||
64 | } | ||
65 | |||
66 | #define S3C2410_DMAF_CIRCULAR (1 << 0) | ||
67 | |||
68 | #include <plat/dma.h> | ||
14 | 69 | ||
15 | #define DMACH_LOW_LEVEL (1<<28) /* use this to specifiy hardware ch no */ | 70 | #define DMACH_LOW_LEVEL (1<<28) /* use this to specifiy hardware ch no */ |
16 | 71 | ||
@@ -68,3 +123,5 @@ struct s3c2410_dma_chan { | |||
68 | }; | 123 | }; |
69 | 124 | ||
70 | #include <plat/dma-core.h> | 125 | #include <plat/dma-core.h> |
126 | |||
127 | #endif /* __ASM_ARCH_IRQ_H */ | ||
diff --git a/arch/arm/mach-s3c6400/include/mach/entry-macro.S b/arch/arm/mach-s3c64xx/include/mach/entry-macro.S index 33a8fe240882..dd362604dcce 100644 --- a/arch/arm/mach-s3c6400/include/mach/entry-macro.S +++ b/arch/arm/mach-s3c64xx/include/mach/entry-macro.S | |||
@@ -13,6 +13,6 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <mach/map.h> | 15 | #include <mach/map.h> |
16 | #include <plat/irqs.h> | 16 | #include <mach/irqs.h> |
17 | 17 | ||
18 | #include <asm/entry-macro-vic2.S> | 18 | #include <asm/entry-macro-vic2.S> |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-a.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-a.h index 9aa0e427d113..34212e1a7e81 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-a.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-a.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-a.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-a.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-b.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-b.h index 3933adb4d50a..7232c037e642 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-b.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-b.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-b.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-b.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-c.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-c.h index e22b49f4f982..db189ab1639a 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-c.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-c.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-c.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-c.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-d.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-d.h index 6fe4a49c26f0..1a01cee7aca3 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-d.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-d.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-d.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-d.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-e.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-e.h index 7fcf3d8e0a48..f057adb627dd 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-e.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-e.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-e.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-e.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-f.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-f.h index f3faff974a18..62ab8f5e7835 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-f.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-f.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-f.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-f.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-g.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-g.h index 35bbd2378e55..b94954af1598 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-g.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-g.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-g.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-g.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-h.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-h.h index 2ba1767512d7..5d75aaad865e 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-h.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-h.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-h.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-h.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-i.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-i.h index ce9ebe335566..4ceaa6098bc7 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-i.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-i.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-i.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-i.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-j.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-j.h index 21a906299d30..6f25cd079a40 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-j.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-j.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-j.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-j.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-n.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-n.h index 569e76120881..d0aeda1cd9de 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-n.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-n.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-n.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-n.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-o.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-o.h index b09e12954b57..21868fa102d0 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-o.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-o.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-o.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-o.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-p.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-p.h index 92f00517926b..46bcfb63b8de 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-p.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-p.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-p.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-p.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-q.h b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-q.h index 565e60aaee47..1712223487b0 100644 --- a/arch/arm/plat-s3c64xx/include/plat/gpio-bank-q.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio-bank-q.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/gpio-bank-q.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/gpio-bank-q.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/mach-s3c6400/include/mach/gpio.h b/arch/arm/mach-s3c64xx/include/mach/gpio.h index e8e35e8fe731..e8e35e8fe731 100644 --- a/arch/arm/mach-s3c6400/include/mach/gpio.h +++ b/arch/arm/mach-s3c64xx/include/mach/gpio.h | |||
diff --git a/arch/arm/mach-s3c6400/include/mach/hardware.h b/arch/arm/mach-s3c64xx/include/mach/hardware.h index 862d033e57a4..862d033e57a4 100644 --- a/arch/arm/mach-s3c6400/include/mach/hardware.h +++ b/arch/arm/mach-s3c64xx/include/mach/hardware.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/irqs.h b/arch/arm/mach-s3c64xx/include/mach/irqs.h index a22758194e6d..44bb3e491b5c 100644 --- a/arch/arm/plat-s3c64xx/include/plat/irqs.h +++ b/arch/arm/mach-s3c64xx/include/mach/irqs.h | |||
@@ -1,15 +1,15 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/mach/irqs.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/irqs.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * http://armlinux.simtec.co.uk/ | 6 | * http://armlinux.simtec.co.uk/ |
7 | * | 7 | * |
8 | * S3C64XX - Common IRQ support | 8 | * S3C64XX - IRQ support |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_PLAT_S3C64XX_IRQS_H | 11 | #ifndef __ASM_MACH_S3C64XX_IRQS_H |
12 | #define __ASM_PLAT_S3C64XX_IRQS_H __FILE__ | 12 | #define __ASM_MACH_S3C64XX_IRQS_H __FILE__ |
13 | 13 | ||
14 | /* we keep the first set of CPU IRQs out of the range of | 14 | /* we keep the first set of CPU IRQs out of the range of |
15 | * the ISA space, so that the PC104 has them to itself | 15 | * the ISA space, so that the PC104 has them to itself |
@@ -210,5 +210,5 @@ | |||
210 | 210 | ||
211 | #define NR_IRQS (IRQ_BOARD_END + 1) | 211 | #define NR_IRQS (IRQ_BOARD_END + 1) |
212 | 212 | ||
213 | #endif /* __ASM_PLAT_S3C64XX_IRQS_H */ | 213 | #endif /* __ASM_MACH_S3C64XX_IRQS_H */ |
214 | 214 | ||
diff --git a/arch/arm/mach-s3c6400/include/mach/map.h b/arch/arm/mach-s3c64xx/include/mach/map.h index 801c1c0f3a95..801c1c0f3a95 100644 --- a/arch/arm/mach-s3c6400/include/mach/map.h +++ b/arch/arm/mach-s3c64xx/include/mach/map.h | |||
diff --git a/arch/arm/mach-s3c6400/include/mach/memory.h b/arch/arm/mach-s3c64xx/include/mach/memory.h index a3ac84a65480..a3ac84a65480 100644 --- a/arch/arm/mach-s3c6400/include/mach/memory.h +++ b/arch/arm/mach-s3c64xx/include/mach/memory.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/pll.h b/arch/arm/mach-s3c64xx/include/mach/pll.h index 90bbd72fdc4e..90bbd72fdc4e 100644 --- a/arch/arm/plat-s3c64xx/include/plat/pll.h +++ b/arch/arm/mach-s3c64xx/include/mach/pll.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/pm-core.h b/arch/arm/mach-s3c64xx/include/mach/pm-core.h index d347de3ba0dc..1e9f20f0bb7b 100644 --- a/arch/arm/plat-s3c64xx/include/plat/pm-core.h +++ b/arch/arm/mach-s3c64xx/include/mach/pm-core.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/pm-core.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/pm-core.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
@@ -12,7 +12,7 @@ | |||
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <plat/regs-gpio.h> | 15 | #include <mach/regs-gpio.h> |
16 | 16 | ||
17 | static inline void s3c_pm_debug_init_uart(void) | 17 | static inline void s3c_pm_debug_init_uart(void) |
18 | { | 18 | { |
diff --git a/arch/arm/mach-s3c6400/include/mach/pwm-clock.h b/arch/arm/mach-s3c64xx/include/mach/pwm-clock.h index b25bedee0d52..b25bedee0d52 100644 --- a/arch/arm/mach-s3c6400/include/mach/pwm-clock.h +++ b/arch/arm/mach-s3c64xx/include/mach/pwm-clock.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-clock.h b/arch/arm/mach-s3c64xx/include/mach/regs-clock.h index 3ef62741e5d1..3ef62741e5d1 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-clock.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-clock.h | |||
diff --git a/arch/arm/mach-s3c6400/include/mach/regs-fb.h b/arch/arm/mach-s3c64xx/include/mach/regs-fb.h index f56611526c63..f56611526c63 100644 --- a/arch/arm/mach-s3c6400/include/mach/regs-fb.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-fb.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-gpio-memport.h b/arch/arm/mach-s3c64xx/include/mach/regs-gpio-memport.h index 82342f6fd27d..82342f6fd27d 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-gpio-memport.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-gpio-memport.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-gpio.h b/arch/arm/mach-s3c64xx/include/mach/regs-gpio.h index 81f7f6e6832e..81f7f6e6832e 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-gpio.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-gpio.h | |||
diff --git a/arch/arm/mach-s3c6400/include/mach/regs-irq.h b/arch/arm/mach-s3c64xx/include/mach/regs-irq.h index bcce68a0bb75..bcce68a0bb75 100644 --- a/arch/arm/mach-s3c6400/include/mach/regs-irq.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-irq.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-modem.h b/arch/arm/mach-s3c64xx/include/mach/regs-modem.h index 49f7759dedfa..49f7759dedfa 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-modem.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-modem.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-srom.h b/arch/arm/mach-s3c64xx/include/mach/regs-srom.h index 756731b36297..756731b36297 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-srom.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-srom.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-sys.h b/arch/arm/mach-s3c64xx/include/mach/regs-sys.h index 69b78d9f83b8..69b78d9f83b8 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-sys.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-sys.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/regs-syscon-power.h b/arch/arm/mach-s3c64xx/include/mach/regs-syscon-power.h index 270d96ac9705..270d96ac9705 100644 --- a/arch/arm/plat-s3c64xx/include/plat/regs-syscon-power.h +++ b/arch/arm/mach-s3c64xx/include/mach/regs-syscon-power.h | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/s3c6400.h b/arch/arm/mach-s3c64xx/include/mach/s3c6400.h index 11f2e1e119b0..f86958d05352 100644 --- a/arch/arm/plat-s3c64xx/include/plat/s3c6400.h +++ b/arch/arm/mach-s3c64xx/include/mach/s3c6400.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* arch/arm/plat-s3c64xx/include/plat/s3c6400.h | 1 | /* arch/arm/mach-s3c64xx/include/macht/s3c6400.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
@@ -15,9 +15,10 @@ | |||
15 | /* Common init code for S3C6400 related SoCs */ | 15 | /* Common init code for S3C6400 related SoCs */ |
16 | 16 | ||
17 | extern void s3c6400_common_init_uarts(struct s3c2410_uartcfg *cfg, int no); | 17 | extern void s3c6400_common_init_uarts(struct s3c2410_uartcfg *cfg, int no); |
18 | extern void s3c6400_register_clocks(unsigned armclk_divlimit); | ||
19 | extern void s3c6400_setup_clocks(void); | 18 | extern void s3c6400_setup_clocks(void); |
20 | 19 | ||
20 | extern void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit); | ||
21 | |||
21 | #ifdef CONFIG_CPU_S3C6400 | 22 | #ifdef CONFIG_CPU_S3C6400 |
22 | 23 | ||
23 | extern int s3c6400_init(void); | 24 | extern int s3c6400_init(void); |
@@ -33,4 +34,3 @@ extern void s3c6400_init_clocks(int xtal); | |||
33 | #define s3c6400_map_io NULL | 34 | #define s3c6400_map_io NULL |
34 | #define s3c6400_init NULL | 35 | #define s3c6400_init NULL |
35 | #endif | 36 | #endif |
36 | |||
diff --git a/arch/arm/plat-s3c64xx/include/plat/s3c6410.h b/arch/arm/mach-s3c64xx/include/mach/s3c6410.h index 50dcdd6f6800..24f1141ffcb7 100644 --- a/arch/arm/plat-s3c64xx/include/plat/s3c6410.h +++ b/arch/arm/mach-s3c64xx/include/mach/s3c6410.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* arch/arm/plat-s3c64xx/include/plat/s3c6410.h | 1 | /* arch/arm/mach-s3c64xx/include/mach/s3c6410.h |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
diff --git a/arch/arm/plat-s3c64xx/include/plat/spi-clocks.h b/arch/arm/mach-s3c64xx/include/mach/spi-clocks.h index 524bdae3f625..9d0c43b4b687 100644 --- a/arch/arm/plat-s3c64xx/include/plat/spi-clocks.h +++ b/arch/arm/mach-s3c64xx/include/mach/spi-clocks.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/include/plat/spi-clocks.h | 1 | /* linux/arch/arm/mach-s3c64xx/include/mach/spi-clocks.h |
2 | * | 2 | * |
3 | * Copyright (C) 2009 Samsung Electronics Ltd. | 3 | * Copyright (C) 2009 Samsung Electronics Ltd. |
4 | * Jaswinder Singh <jassi.brar@samsung.com> | 4 | * Jaswinder Singh <jassi.brar@samsung.com> |
diff --git a/arch/arm/mach-s3c6400/include/mach/system.h b/arch/arm/mach-s3c64xx/include/mach/system.h index 2e58cb7a7147..2e58cb7a7147 100644 --- a/arch/arm/mach-s3c6400/include/mach/system.h +++ b/arch/arm/mach-s3c64xx/include/mach/system.h | |||
diff --git a/arch/arm/mach-s3c6400/include/mach/tick.h b/arch/arm/mach-s3c64xx/include/mach/tick.h index ebe18a9469b8..ebe18a9469b8 100644 --- a/arch/arm/mach-s3c6400/include/mach/tick.h +++ b/arch/arm/mach-s3c64xx/include/mach/tick.h | |||
diff --git a/arch/arm/mach-s3c6400/include/mach/uncompress.h b/arch/arm/mach-s3c64xx/include/mach/uncompress.h index c6a82a20bf2a..c6a82a20bf2a 100644 --- a/arch/arm/mach-s3c6400/include/mach/uncompress.h +++ b/arch/arm/mach-s3c64xx/include/mach/uncompress.h | |||
diff --git a/arch/arm/plat-s3c64xx/irq-eint.c b/arch/arm/mach-s3c64xx/irq-eint.c index ebdf183a0911..5682d6a7f4af 100644 --- a/arch/arm/plat-s3c64xx/irq-eint.c +++ b/arch/arm/mach-s3c64xx/irq-eint.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <asm/hardware/vic.h> | 22 | #include <asm/hardware/vic.h> |
23 | 23 | ||
24 | #include <plat/regs-irqtype.h> | 24 | #include <plat/regs-irqtype.h> |
25 | #include <plat/regs-gpio.h> | 25 | #include <mach/regs-gpio.h> |
26 | #include <plat/gpio-cfg.h> | 26 | #include <plat/gpio-cfg.h> |
27 | 27 | ||
28 | #include <mach/map.h> | 28 | #include <mach/map.h> |
diff --git a/arch/arm/plat-s3c64xx/irq-pm.c b/arch/arm/mach-s3c64xx/irq-pm.c index ca523b5d4c17..da1bec64b9da 100644 --- a/arch/arm/plat-s3c64xx/irq-pm.c +++ b/arch/arm/mach-s3c64xx/irq-pm.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #include <plat/regs-serial.h> | 24 | #include <plat/regs-serial.h> |
25 | #include <plat/regs-timer.h> | 25 | #include <plat/regs-timer.h> |
26 | #include <plat/regs-gpio.h> | 26 | #include <mach/regs-gpio.h> |
27 | #include <plat/cpu.h> | 27 | #include <plat/cpu.h> |
28 | #include <plat/pm.h> | 28 | #include <plat/pm.h> |
29 | 29 | ||
diff --git a/arch/arm/plat-s3c64xx/irq.c b/arch/arm/mach-s3c64xx/irq.c index 67a145d440f3..67a145d440f3 100644 --- a/arch/arm/plat-s3c64xx/irq.c +++ b/arch/arm/mach-s3c64xx/irq.c | |||
diff --git a/arch/arm/mach-s3c6410/mach-anw6410.c b/arch/arm/mach-s3c64xx/mach-anw6410.c index 661cca63de25..4a0bb243d14a 100644 --- a/arch/arm/mach-s3c6410/mach-anw6410.c +++ b/arch/arm/mach-s3c64xx/mach-anw6410.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/mach-s3c6410/mach-anw6410.c | 1 | /* linux/arch/arm/mach-s3c64xx/mach-anw6410.c |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
@@ -45,12 +45,12 @@ | |||
45 | #include <plat/iic.h> | 45 | #include <plat/iic.h> |
46 | #include <plat/fb.h> | 46 | #include <plat/fb.h> |
47 | 47 | ||
48 | #include <plat/s3c6410.h> | 48 | #include <mach/s3c6410.h> |
49 | #include <plat/clock.h> | 49 | #include <plat/clock.h> |
50 | #include <plat/devs.h> | 50 | #include <plat/devs.h> |
51 | #include <plat/cpu.h> | 51 | #include <plat/cpu.h> |
52 | #include <plat/regs-gpio.h> | 52 | #include <mach/regs-gpio.h> |
53 | #include <plat/regs-modem.h> | 53 | #include <mach/regs-modem.h> |
54 | 54 | ||
55 | /* DM9000 */ | 55 | /* DM9000 */ |
56 | #define ANW6410_PA_DM9000 (0x18000000) | 56 | #define ANW6410_PA_DM9000 (0x18000000) |
diff --git a/arch/arm/mach-s3c6410/mach-hmt.c b/arch/arm/mach-s3c64xx/mach-hmt.c index 284886c26a28..a6d91c39f22e 100644 --- a/arch/arm/mach-s3c6410/mach-hmt.c +++ b/arch/arm/mach-s3c64xx/mach-hmt.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <plat/fb.h> | 38 | #include <plat/fb.h> |
39 | #include <plat/nand.h> | 39 | #include <plat/nand.h> |
40 | 40 | ||
41 | #include <plat/s3c6410.h> | 41 | #include <mach/s3c6410.h> |
42 | #include <plat/clock.h> | 42 | #include <plat/clock.h> |
43 | #include <plat/devs.h> | 43 | #include <plat/devs.h> |
44 | #include <plat/cpu.h> | 44 | #include <plat/cpu.h> |
diff --git a/arch/arm/mach-s3c6410/mach-ncp.c b/arch/arm/mach-s3c64xx/mach-ncp.c index 55e9bbfaf68b..bf65747ea68e 100644 --- a/arch/arm/mach-s3c6410/mach-ncp.c +++ b/arch/arm/mach-s3c64xx/mach-ncp.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-s3c6410/mach-ncp.c | 2 | * linux/arch/arm/mach-s3c64xx/mach-ncp.c |
3 | * | 3 | * |
4 | * Copyright (C) 2008-2009 Samsung Electronics | 4 | * Copyright (C) 2008-2009 Samsung Electronics |
5 | * | 5 | * |
@@ -40,7 +40,7 @@ | |||
40 | #include <plat/iic.h> | 40 | #include <plat/iic.h> |
41 | #include <plat/fb.h> | 41 | #include <plat/fb.h> |
42 | 42 | ||
43 | #include <plat/s3c6410.h> | 43 | #include <mach/s3c6410.h> |
44 | #include <plat/clock.h> | 44 | #include <plat/clock.h> |
45 | #include <plat/devs.h> | 45 | #include <plat/devs.h> |
46 | #include <plat/cpu.h> | 46 | #include <plat/cpu.h> |
diff --git a/arch/arm/mach-s3c6400/mach-smdk6400.c b/arch/arm/mach-s3c64xx/mach-smdk6400.c index ab19285389a7..f7b18983950c 100644 --- a/arch/arm/mach-s3c6400/mach-smdk6400.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6400.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/mach-s3c6400/mach-smdk6400.c | 1 | /* linux/arch/arm/mach-s3c64xx/mach-smdk6400.c |
2 | * | 2 | * |
3 | * Copyright 2008 Simtec Electronics | 3 | * Copyright 2008 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | #include <plat/regs-serial.h> | 32 | #include <plat/regs-serial.h> |
33 | 33 | ||
34 | #include <plat/s3c6400.h> | 34 | #include <mach/s3c6400.h> |
35 | #include <plat/clock.h> | 35 | #include <plat/clock.h> |
36 | #include <plat/devs.h> | 36 | #include <plat/devs.h> |
37 | #include <plat/cpu.h> | 37 | #include <plat/cpu.h> |
diff --git a/arch/arm/mach-s3c6410/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index eba345fadffe..fdf8f7539a12 100644 --- a/arch/arm/mach-s3c6410/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/mach-s3c6410/mach-smdk6410.c | 1 | /* linux/arch/arm/mach-s3c64xx/mach-smdk6410.c |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
@@ -46,15 +46,15 @@ | |||
46 | #include <asm/mach-types.h> | 46 | #include <asm/mach-types.h> |
47 | 47 | ||
48 | #include <plat/regs-serial.h> | 48 | #include <plat/regs-serial.h> |
49 | #include <plat/regs-modem.h> | 49 | #include <mach/regs-modem.h> |
50 | #include <plat/regs-gpio.h> | 50 | #include <mach/regs-gpio.h> |
51 | #include <plat/regs-sys.h> | 51 | #include <mach/regs-sys.h> |
52 | #include <plat/regs-srom.h> | 52 | #include <mach/regs-srom.h> |
53 | #include <plat/iic.h> | 53 | #include <plat/iic.h> |
54 | #include <plat/fb.h> | 54 | #include <plat/fb.h> |
55 | #include <plat/gpio-cfg.h> | 55 | #include <plat/gpio-cfg.h> |
56 | 56 | ||
57 | #include <plat/s3c6410.h> | 57 | #include <mach/s3c6410.h> |
58 | #include <plat/clock.h> | 58 | #include <plat/clock.h> |
59 | #include <plat/devs.h> | 59 | #include <plat/devs.h> |
60 | #include <plat/cpu.h> | 60 | #include <plat/cpu.h> |
diff --git a/arch/arm/plat-s3c64xx/pm.c b/arch/arm/mach-s3c64xx/pm.c index 47632fc7eb66..b8ac4597fad7 100644 --- a/arch/arm/plat-s3c64xx/pm.c +++ b/arch/arm/mach-s3c64xx/pm.c | |||
@@ -20,14 +20,14 @@ | |||
20 | #include <mach/map.h> | 20 | #include <mach/map.h> |
21 | 21 | ||
22 | #include <plat/pm.h> | 22 | #include <plat/pm.h> |
23 | #include <plat/regs-sys.h> | 23 | #include <mach/regs-sys.h> |
24 | #include <plat/regs-gpio.h> | 24 | #include <mach/regs-gpio.h> |
25 | #include <plat/regs-clock.h> | 25 | #include <mach/regs-clock.h> |
26 | #include <plat/regs-syscon-power.h> | 26 | #include <mach/regs-syscon-power.h> |
27 | #include <plat/regs-gpio-memport.h> | 27 | #include <mach/regs-gpio-memport.h> |
28 | 28 | ||
29 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK | 29 | #ifdef CONFIG_S3C_PM_DEBUG_LED_SMDK |
30 | #include <plat/gpio-bank-n.h> | 30 | #include <mach/gpio-bank-n.h> |
31 | 31 | ||
32 | void s3c_pm_debug_smdkled(u32 set, u32 clear) | 32 | void s3c_pm_debug_smdkled(u32 set, u32 clear) |
33 | { | 33 | { |
diff --git a/arch/arm/mach-s3c6400/s3c6400.c b/arch/arm/mach-s3c64xx/s3c6400.c index d876ee503671..707e34e3afd1 100644 --- a/arch/arm/mach-s3c6400/s3c6400.c +++ b/arch/arm/mach-s3c64xx/s3c6400.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/mach-s3c6410/cpu.c | 1 | /* linux/arch/arm/mach-s3c64xx/cpu.c |
2 | * | 2 | * |
3 | * Copyright 2009 Simtec Electronics | 3 | * Copyright 2009 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
@@ -30,14 +30,14 @@ | |||
30 | 30 | ||
31 | #include <plat/cpu-freq.h> | 31 | #include <plat/cpu-freq.h> |
32 | #include <plat/regs-serial.h> | 32 | #include <plat/regs-serial.h> |
33 | #include <plat/regs-clock.h> | 33 | #include <mach/regs-clock.h> |
34 | 34 | ||
35 | #include <plat/cpu.h> | 35 | #include <plat/cpu.h> |
36 | #include <plat/devs.h> | 36 | #include <plat/devs.h> |
37 | #include <plat/clock.h> | 37 | #include <plat/clock.h> |
38 | #include <plat/sdhci.h> | 38 | #include <plat/sdhci.h> |
39 | #include <plat/iic-core.h> | 39 | #include <plat/iic-core.h> |
40 | #include <plat/s3c6400.h> | 40 | #include <mach/s3c6400.h> |
41 | 41 | ||
42 | void __init s3c6400_map_io(void) | 42 | void __init s3c6400_map_io(void) |
43 | { | 43 | { |
@@ -55,10 +55,7 @@ void __init s3c6400_map_io(void) | |||
55 | 55 | ||
56 | void __init s3c6400_init_clocks(int xtal) | 56 | void __init s3c6400_init_clocks(int xtal) |
57 | { | 57 | { |
58 | printk(KERN_DEBUG "%s: initialising clocks\n", __func__); | 58 | s3c64xx_register_clocks(xtal, S3C6400_CLKDIV0_ARM_MASK); |
59 | s3c24xx_register_baseclocks(xtal); | ||
60 | s3c64xx_register_clocks(); | ||
61 | s3c6400_register_clocks(S3C6400_CLKDIV0_ARM_MASK); | ||
62 | s3c6400_setup_clocks(); | 59 | s3c6400_setup_clocks(); |
63 | } | 60 | } |
64 | 61 | ||
diff --git a/arch/arm/mach-s3c6410/cpu.c b/arch/arm/mach-s3c64xx/s3c6410.c index 522c08691952..59635d19466a 100644 --- a/arch/arm/mach-s3c6410/cpu.c +++ b/arch/arm/mach-s3c64xx/s3c6410.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/arch/arm/mach-s3c6410/cpu.c | 1 | /* linux/arch/arm/mach-s3c64xx/s3c6410.c |
2 | * | 2 | * |
3 | * Copyright 2008 Simtec Electronics | 3 | * Copyright 2008 Simtec Electronics |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
@@ -31,30 +31,18 @@ | |||
31 | 31 | ||
32 | #include <plat/cpu-freq.h> | 32 | #include <plat/cpu-freq.h> |
33 | #include <plat/regs-serial.h> | 33 | #include <plat/regs-serial.h> |
34 | #include <plat/regs-clock.h> | 34 | #include <mach/regs-clock.h> |
35 | 35 | ||
36 | #include <plat/cpu.h> | 36 | #include <plat/cpu.h> |
37 | #include <plat/devs.h> | 37 | #include <plat/devs.h> |
38 | #include <plat/clock.h> | 38 | #include <plat/clock.h> |
39 | #include <plat/sdhci.h> | 39 | #include <plat/sdhci.h> |
40 | #include <plat/iic-core.h> | 40 | #include <plat/iic-core.h> |
41 | #include <plat/s3c6400.h> | 41 | #include <mach/s3c6400.h> |
42 | #include <plat/s3c6410.h> | 42 | #include <mach/s3c6410.h> |
43 | |||
44 | /* Initial IO mappings */ | ||
45 | |||
46 | static struct map_desc s3c6410_iodesc[] __initdata = { | ||
47 | }; | ||
48 | |||
49 | /* s3c6410_map_io | ||
50 | * | ||
51 | * register the standard cpu IO areas | ||
52 | */ | ||
53 | 43 | ||
54 | void __init s3c6410_map_io(void) | 44 | void __init s3c6410_map_io(void) |
55 | { | 45 | { |
56 | iotable_init(s3c6410_iodesc, ARRAY_SIZE(s3c6410_iodesc)); | ||
57 | |||
58 | /* initialise device information early */ | 46 | /* initialise device information early */ |
59 | s3c6410_default_sdhci0(); | 47 | s3c6410_default_sdhci0(); |
60 | s3c6410_default_sdhci1(); | 48 | s3c6410_default_sdhci1(); |
@@ -70,9 +58,7 @@ void __init s3c6410_map_io(void) | |||
70 | void __init s3c6410_init_clocks(int xtal) | 58 | void __init s3c6410_init_clocks(int xtal) |
71 | { | 59 | { |
72 | printk(KERN_DEBUG "%s: initialising clocks\n", __func__); | 60 | printk(KERN_DEBUG "%s: initialising clocks\n", __func__); |
73 | s3c24xx_register_baseclocks(xtal); | 61 | s3c64xx_register_clocks(xtal, S3C6410_CLKDIV0_ARM_MASK); |
74 | s3c64xx_register_clocks(); | ||
75 | s3c6400_register_clocks(S3C6410_CLKDIV0_ARM_MASK); | ||
76 | s3c6400_setup_clocks(); | 62 | s3c6400_setup_clocks(); |
77 | } | 63 | } |
78 | 64 | ||
diff --git a/arch/arm/plat-s3c64xx/setup-fb-24bpp.c b/arch/arm/mach-s3c64xx/setup-fb-24bpp.c index 8e28e448dd20..8e28e448dd20 100644 --- a/arch/arm/plat-s3c64xx/setup-fb-24bpp.c +++ b/arch/arm/mach-s3c64xx/setup-fb-24bpp.c | |||
diff --git a/arch/arm/plat-s3c64xx/setup-i2c0.c b/arch/arm/mach-s3c64xx/setup-i2c0.c index 364480763728..d1b11e6e77e8 100644 --- a/arch/arm/plat-s3c64xx/setup-i2c0.c +++ b/arch/arm/mach-s3c64xx/setup-i2c0.c | |||
@@ -18,8 +18,8 @@ | |||
18 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
19 | 19 | ||
20 | #include <mach/gpio.h> | 20 | #include <mach/gpio.h> |
21 | #include <mach/gpio-bank-b.h> | ||
21 | #include <plat/iic.h> | 22 | #include <plat/iic.h> |
22 | #include <plat/gpio-bank-b.h> | ||
23 | #include <plat/gpio-cfg.h> | 23 | #include <plat/gpio-cfg.h> |
24 | 24 | ||
25 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) | 25 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) |
diff --git a/arch/arm/plat-s3c64xx/setup-i2c1.c b/arch/arm/mach-s3c64xx/setup-i2c1.c index bbe229bd90ca..2dce57d8c6f8 100644 --- a/arch/arm/plat-s3c64xx/setup-i2c1.c +++ b/arch/arm/mach-s3c64xx/setup-i2c1.c | |||
@@ -18,8 +18,8 @@ | |||
18 | struct platform_device; /* don't need the contents */ | 18 | struct platform_device; /* don't need the contents */ |
19 | 19 | ||
20 | #include <mach/gpio.h> | 20 | #include <mach/gpio.h> |
21 | #include <mach/gpio-bank-b.h> | ||
21 | #include <plat/iic.h> | 22 | #include <plat/iic.h> |
22 | #include <plat/gpio-bank-b.h> | ||
23 | #include <plat/gpio-cfg.h> | 23 | #include <plat/gpio-cfg.h> |
24 | 24 | ||
25 | void s3c_i2c1_cfg_gpio(struct platform_device *dev) | 25 | void s3c_i2c1_cfg_gpio(struct platform_device *dev) |
diff --git a/arch/arm/plat-s3c64xx/setup-sdhci-gpio.c b/arch/arm/mach-s3c64xx/setup-sdhci-gpio.c index a58c0cc7ba5e..a58c0cc7ba5e 100644 --- a/arch/arm/plat-s3c64xx/setup-sdhci-gpio.c +++ b/arch/arm/mach-s3c64xx/setup-sdhci-gpio.c | |||
diff --git a/arch/arm/mach-s3c6400/setup-sdhci.c b/arch/arm/mach-s3c64xx/setup-sdhci.c index 1039937403be..1a942037c4ef 100644 --- a/arch/arm/mach-s3c6400/setup-sdhci.c +++ b/arch/arm/mach-s3c64xx/setup-sdhci.c | |||
@@ -1,11 +1,11 @@ | |||
1 | /* linux/arch/arm/mach-s3c6410/setup-sdhci.c | 1 | /* linux/arch/arm/mach-s3c64xx/setup-sdhci.c |
2 | * | 2 | * |
3 | * Copyright 2008 Simtec Electronics | 3 | * Copyright 2008 Simtec Electronics |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
5 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
6 | * http://armlinux.simtec.co.uk/ | 6 | * http://armlinux.simtec.co.uk/ |
7 | * | 7 | * |
8 | * S3C6410 - Helper functions for settign up SDHCI device(s) (HSMMC) | 8 | * S3C6400/S3C6410 - Helper functions for settign up SDHCI device(s) (HSMMC) |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | /* clock sources for the mmc bus clock, order as for the ctrl2[5..4] */ | 27 | /* clock sources for the mmc bus clock, order as for the ctrl2[5..4] */ |
28 | 28 | ||
29 | char *s3c6400_hsmmc_clksrcs[4] = { | 29 | char *s3c64xx_hsmmc_clksrcs[4] = { |
30 | [0] = "hsmmc", | 30 | [0] = "hsmmc", |
31 | [1] = "hsmmc", | 31 | [1] = "hsmmc", |
32 | [2] = "mmc_bus", | 32 | [2] = "mmc_bus", |
@@ -61,3 +61,12 @@ void s3c6400_setup_sdhci_cfg_card(struct platform_device *dev, | |||
61 | writel(ctrl3, r + S3C_SDHCI_CONTROL3); | 61 | writel(ctrl3, r + S3C_SDHCI_CONTROL3); |
62 | } | 62 | } |
63 | 63 | ||
64 | void s3c6410_setup_sdhci_cfg_card(struct platform_device *dev, | ||
65 | void __iomem *r, | ||
66 | struct mmc_ios *ios, | ||
67 | struct mmc_card *card) | ||
68 | { | ||
69 | writel(S3C64XX_SDHCI_CONTROL4_DRIVE_9mA, r + S3C64XX_SDHCI_CONTROL4); | ||
70 | |||
71 | s3c6400_setup_sdhci_cfg_card(dev, r, ios, card); | ||
72 | } | ||
diff --git a/arch/arm/plat-s3c64xx/sleep.S b/arch/arm/mach-s3c64xx/sleep.S index 8e71fe90a373..b2ef44317368 100644 --- a/arch/arm/plat-s3c64xx/sleep.S +++ b/arch/arm/mach-s3c64xx/sleep.S | |||
@@ -1,4 +1,4 @@ | |||
1 | /* linux/0arch/arm/plat-s3c64xx/sleep.S | 1 | /* linux/arch/arm/plat-s3c64xx/sleep.S |
2 | * | 2 | * |
3 | * Copyright 2008 Openmoko, Inc. | 3 | * Copyright 2008 Openmoko, Inc. |
4 | * Copyright 2008 Simtec Electronics | 4 | * Copyright 2008 Simtec Electronics |
@@ -19,8 +19,8 @@ | |||
19 | #undef S3C64XX_VA_GPIO | 19 | #undef S3C64XX_VA_GPIO |
20 | #define S3C64XX_VA_GPIO (0x0) | 20 | #define S3C64XX_VA_GPIO (0x0) |
21 | 21 | ||
22 | #include <plat/regs-gpio.h> | 22 | #include <mach/regs-gpio.h> |
23 | #include <plat/gpio-bank-n.h> | 23 | #include <mach/gpio-bank-n.h> |
24 | 24 | ||
25 | #define LL_UART (S3C_PA_UART + (0x400 * CONFIG_S3C_LOWLEVEL_UART_PORT)) | 25 | #define LL_UART (S3C_PA_UART + (0x400 * CONFIG_S3C_LOWLEVEL_UART_PORT)) |
26 | 26 | ||
diff --git a/arch/arm/plat-s3c/dma.c b/arch/arm/plat-s3c/dma.c index a995850cd9d5..606db1af5fe7 100644 --- a/arch/arm/plat-s3c/dma.c +++ b/arch/arm/plat-s3c/dma.c | |||
@@ -20,8 +20,6 @@ struct s3c2410_dma_buf; | |||
20 | #include <mach/dma.h> | 20 | #include <mach/dma.h> |
21 | #include <mach/irqs.h> | 21 | #include <mach/irqs.h> |
22 | 22 | ||
23 | #include <plat/dma-plat.h> | ||
24 | |||
25 | /* dma channel state information */ | 23 | /* dma channel state information */ |
26 | struct s3c2410_dma_chan s3c2410_chans[S3C_DMA_CHANNELS]; | 24 | struct s3c2410_dma_chan s3c2410_chans[S3C_DMA_CHANNELS]; |
27 | struct s3c2410_dma_chan *s3c_dma_chan_map[DMACH_MAX]; | 25 | struct s3c2410_dma_chan *s3c_dma_chan_map[DMACH_MAX]; |
diff --git a/arch/arm/plat-s3c/pm.c b/arch/arm/plat-s3c/pm.c index e5eef126791b..27cfca597699 100644 --- a/arch/arm/plat-s3c/pm.c +++ b/arch/arm/plat-s3c/pm.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
30 | 30 | ||
31 | #include <plat/pm.h> | 31 | #include <plat/pm.h> |
32 | #include <plat/pm-core.h> | 32 | #include <mach/pm-core.h> |
33 | 33 | ||
34 | /* for external use */ | 34 | /* for external use */ |
35 | 35 | ||
diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c index f0ea7943ac5a..93827b3d4e84 100644 --- a/arch/arm/plat-s3c24xx/dma.c +++ b/arch/arm/plat-s3c24xx/dma.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <mach/dma.h> | 33 | #include <mach/dma.h> |
34 | #include <mach/map.h> | 34 | #include <mach/map.h> |
35 | 35 | ||
36 | #include <plat/dma-plat.h> | 36 | #include <plat/dma-s3c24xx.h> |
37 | #include <plat/regs-dma.h> | 37 | #include <plat/regs-dma.h> |
38 | 38 | ||
39 | /* io map for dma */ | 39 | /* io map for dma */ |
diff --git a/arch/arm/plat-s3c64xx/Kconfig b/arch/arm/plat-s3c64xx/Kconfig deleted file mode 100644 index 37b4519fb832..000000000000 --- a/arch/arm/plat-s3c64xx/Kconfig +++ /dev/null | |||
@@ -1,75 +0,0 @@ | |||
1 | # Copyright 2008 Openmoko, Inc. | ||
2 | # Copyright 2008 Simtec Electronics | ||
3 | # Ben Dooks <ben@simtec.co.uk> | ||
4 | # | ||
5 | # Licensed under GPLv2 | ||
6 | |||
7 | config PLAT_S3C64XX | ||
8 | bool | ||
9 | depends on ARCH_S3C64XX | ||
10 | default y | ||
11 | select CPU_V6 | ||
12 | select PLAT_S3C | ||
13 | select ARM_VIC | ||
14 | select NO_IOPORT | ||
15 | select ARCH_REQUIRE_GPIOLIB | ||
16 | select SAMSUNG_CLKSRC | ||
17 | select SAMSUNG_IRQ_VIC_TIMER | ||
18 | select SAMSUNG_IRQ_UART | ||
19 | select S3C_GPIO_TRACK | ||
20 | select S3C_GPIO_PULL_UPDOWN | ||
21 | select S3C_GPIO_CFG_S3C24XX | ||
22 | select S3C_GPIO_CFG_S3C64XX | ||
23 | select S3C_DEV_NAND | ||
24 | select USB_ARCH_HAS_OHCI | ||
25 | select SAMSUNG_GPIOLIB_4BIT | ||
26 | help | ||
27 | Base platform code for any Samsung S3C64XX device | ||
28 | |||
29 | if PLAT_S3C64XX | ||
30 | |||
31 | # Configuration options shared by all S3C64XX implementations | ||
32 | |||
33 | config CPU_S3C6400_INIT | ||
34 | bool | ||
35 | help | ||
36 | Common initialisation code for the S3C6400 that is shared | ||
37 | by other CPUs in the series, such as the S3C6410. | ||
38 | |||
39 | config CPU_S3C6400_CLOCK | ||
40 | bool | ||
41 | help | ||
42 | Common clock support code for the S3C6400 that is shared | ||
43 | by other CPUs in the series, such as the S3C6410. | ||
44 | |||
45 | config S3C64XX_DMA | ||
46 | bool "S3C64XX DMA" | ||
47 | select S3C_DMA | ||
48 | |||
49 | # platform specific device setup | ||
50 | |||
51 | config S3C64XX_SETUP_I2C0 | ||
52 | bool | ||
53 | default y | ||
54 | help | ||
55 | Common setup code for i2c bus 0. | ||
56 | |||
57 | Note, currently since i2c0 is always compiled, this setup helper | ||
58 | is always compiled with it. | ||
59 | |||
60 | config S3C64XX_SETUP_I2C1 | ||
61 | bool | ||
62 | help | ||
63 | Common setup code for i2c bus 1. | ||
64 | |||
65 | config S3C64XX_SETUP_FB_24BPP | ||
66 | bool | ||
67 | help | ||
68 | Common setup code for S3C64XX with an 24bpp RGB display helper. | ||
69 | |||
70 | config S3C64XX_SETUP_SDHCI_GPIO | ||
71 | bool | ||
72 | help | ||
73 | Common setup code for S3C64XX SDHCI GPIO configurations | ||
74 | |||
75 | endif | ||
diff --git a/arch/arm/plat-s3c64xx/clock.c b/arch/arm/plat-s3c64xx/clock.c deleted file mode 100644 index 2989c3a2e94d..000000000000 --- a/arch/arm/plat-s3c64xx/clock.c +++ /dev/null | |||
@@ -1,304 +0,0 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/clock.c | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * http://armlinux.simtec.co.uk/ | ||
7 | * | ||
8 | * S3C64XX Base clock support | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <linux/init.h> | ||
16 | #include <linux/module.h> | ||
17 | #include <linux/interrupt.h> | ||
18 | #include <linux/ioport.h> | ||
19 | #include <linux/io.h> | ||
20 | |||
21 | #include <mach/hardware.h> | ||
22 | #include <mach/map.h> | ||
23 | |||
24 | #include <plat/regs-sys.h> | ||
25 | #include <plat/regs-clock.h> | ||
26 | #include <plat/cpu.h> | ||
27 | #include <plat/devs.h> | ||
28 | #include <plat/clock.h> | ||
29 | |||
30 | struct clk clk_h2 = { | ||
31 | .name = "hclk2", | ||
32 | .id = -1, | ||
33 | .rate = 0, | ||
34 | }; | ||
35 | |||
36 | struct clk clk_27m = { | ||
37 | .name = "clk_27m", | ||
38 | .id = -1, | ||
39 | .rate = 27000000, | ||
40 | }; | ||
41 | |||
42 | static int clk_48m_ctrl(struct clk *clk, int enable) | ||
43 | { | ||
44 | unsigned long flags; | ||
45 | u32 val; | ||
46 | |||
47 | /* can't rely on clock lock, this register has other usages */ | ||
48 | local_irq_save(flags); | ||
49 | |||
50 | val = __raw_readl(S3C64XX_OTHERS); | ||
51 | if (enable) | ||
52 | val |= S3C64XX_OTHERS_USBMASK; | ||
53 | else | ||
54 | val &= ~S3C64XX_OTHERS_USBMASK; | ||
55 | |||
56 | __raw_writel(val, S3C64XX_OTHERS); | ||
57 | local_irq_restore(flags); | ||
58 | |||
59 | return 0; | ||
60 | } | ||
61 | |||
62 | struct clk clk_48m = { | ||
63 | .name = "clk_48m", | ||
64 | .id = -1, | ||
65 | .rate = 48000000, | ||
66 | .enable = clk_48m_ctrl, | ||
67 | }; | ||
68 | |||
69 | static int inline s3c64xx_gate(void __iomem *reg, | ||
70 | struct clk *clk, | ||
71 | int enable) | ||
72 | { | ||
73 | unsigned int ctrlbit = clk->ctrlbit; | ||
74 | u32 con; | ||
75 | |||
76 | con = __raw_readl(reg); | ||
77 | |||
78 | if (enable) | ||
79 | con |= ctrlbit; | ||
80 | else | ||
81 | con &= ~ctrlbit; | ||
82 | |||
83 | __raw_writel(con, reg); | ||
84 | return 0; | ||
85 | } | ||
86 | |||
87 | static int s3c64xx_pclk_ctrl(struct clk *clk, int enable) | ||
88 | { | ||
89 | return s3c64xx_gate(S3C_PCLK_GATE, clk, enable); | ||
90 | } | ||
91 | |||
92 | static int s3c64xx_hclk_ctrl(struct clk *clk, int enable) | ||
93 | { | ||
94 | return s3c64xx_gate(S3C_HCLK_GATE, clk, enable); | ||
95 | } | ||
96 | |||
97 | int s3c64xx_sclk_ctrl(struct clk *clk, int enable) | ||
98 | { | ||
99 | return s3c64xx_gate(S3C_SCLK_GATE, clk, enable); | ||
100 | } | ||
101 | |||
102 | static struct clk init_clocks_disable[] = { | ||
103 | { | ||
104 | .name = "nand", | ||
105 | .id = -1, | ||
106 | .parent = &clk_h, | ||
107 | }, { | ||
108 | .name = "adc", | ||
109 | .id = -1, | ||
110 | .parent = &clk_p, | ||
111 | .enable = s3c64xx_pclk_ctrl, | ||
112 | .ctrlbit = S3C_CLKCON_PCLK_TSADC, | ||
113 | }, { | ||
114 | .name = "i2c", | ||
115 | .id = -1, | ||
116 | .parent = &clk_p, | ||
117 | .enable = s3c64xx_pclk_ctrl, | ||
118 | .ctrlbit = S3C_CLKCON_PCLK_IIC, | ||
119 | }, { | ||
120 | .name = "iis", | ||
121 | .id = 0, | ||
122 | .parent = &clk_p, | ||
123 | .enable = s3c64xx_pclk_ctrl, | ||
124 | .ctrlbit = S3C_CLKCON_PCLK_IIS0, | ||
125 | }, { | ||
126 | .name = "iis", | ||
127 | .id = 1, | ||
128 | .parent = &clk_p, | ||
129 | .enable = s3c64xx_pclk_ctrl, | ||
130 | .ctrlbit = S3C_CLKCON_PCLK_IIS1, | ||
131 | }, { | ||
132 | .name = "spi", | ||
133 | .id = 0, | ||
134 | .parent = &clk_p, | ||
135 | .enable = s3c64xx_pclk_ctrl, | ||
136 | .ctrlbit = S3C_CLKCON_PCLK_SPI0, | ||
137 | }, { | ||
138 | .name = "spi", | ||
139 | .id = 1, | ||
140 | .parent = &clk_p, | ||
141 | .enable = s3c64xx_pclk_ctrl, | ||
142 | .ctrlbit = S3C_CLKCON_PCLK_SPI1, | ||
143 | }, { | ||
144 | .name = "spi_48m", | ||
145 | .id = 0, | ||
146 | .parent = &clk_48m, | ||
147 | .enable = s3c64xx_sclk_ctrl, | ||
148 | .ctrlbit = S3C_CLKCON_SCLK_SPI0_48, | ||
149 | }, { | ||
150 | .name = "spi_48m", | ||
151 | .id = 1, | ||
152 | .parent = &clk_48m, | ||
153 | .enable = s3c64xx_sclk_ctrl, | ||
154 | .ctrlbit = S3C_CLKCON_SCLK_SPI1_48, | ||
155 | }, { | ||
156 | .name = "48m", | ||
157 | .id = 0, | ||
158 | .parent = &clk_48m, | ||
159 | .enable = s3c64xx_sclk_ctrl, | ||
160 | .ctrlbit = S3C_CLKCON_SCLK_MMC0_48, | ||
161 | }, { | ||
162 | .name = "48m", | ||
163 | .id = 1, | ||
164 | .parent = &clk_48m, | ||
165 | .enable = s3c64xx_sclk_ctrl, | ||
166 | .ctrlbit = S3C_CLKCON_SCLK_MMC1_48, | ||
167 | }, { | ||
168 | .name = "48m", | ||
169 | .id = 2, | ||
170 | .parent = &clk_48m, | ||
171 | .enable = s3c64xx_sclk_ctrl, | ||
172 | .ctrlbit = S3C_CLKCON_SCLK_MMC2_48, | ||
173 | }, { | ||
174 | .name = "dma0", | ||
175 | .id = -1, | ||
176 | .parent = &clk_h, | ||
177 | .enable = s3c64xx_hclk_ctrl, | ||
178 | .ctrlbit = S3C_CLKCON_HCLK_DMA0, | ||
179 | }, { | ||
180 | .name = "dma1", | ||
181 | .id = -1, | ||
182 | .parent = &clk_h, | ||
183 | .enable = s3c64xx_hclk_ctrl, | ||
184 | .ctrlbit = S3C_CLKCON_HCLK_DMA1, | ||
185 | }, | ||
186 | }; | ||
187 | |||
188 | static struct clk init_clocks[] = { | ||
189 | { | ||
190 | .name = "lcd", | ||
191 | .id = -1, | ||
192 | .parent = &clk_h, | ||
193 | .enable = s3c64xx_hclk_ctrl, | ||
194 | .ctrlbit = S3C_CLKCON_HCLK_LCD, | ||
195 | }, { | ||
196 | .name = "gpio", | ||
197 | .id = -1, | ||
198 | .parent = &clk_p, | ||
199 | .enable = s3c64xx_pclk_ctrl, | ||
200 | .ctrlbit = S3C_CLKCON_PCLK_GPIO, | ||
201 | }, { | ||
202 | .name = "usb-host", | ||
203 | .id = -1, | ||
204 | .parent = &clk_h, | ||
205 | .enable = s3c64xx_hclk_ctrl, | ||
206 | .ctrlbit = S3C_CLKCON_HCLK_UHOST, | ||
207 | }, { | ||
208 | .name = "hsmmc", | ||
209 | .id = 0, | ||
210 | .parent = &clk_h, | ||
211 | .enable = s3c64xx_hclk_ctrl, | ||
212 | .ctrlbit = S3C_CLKCON_HCLK_HSMMC0, | ||
213 | }, { | ||
214 | .name = "hsmmc", | ||
215 | .id = 1, | ||
216 | .parent = &clk_h, | ||
217 | .enable = s3c64xx_hclk_ctrl, | ||
218 | .ctrlbit = S3C_CLKCON_HCLK_HSMMC1, | ||
219 | }, { | ||
220 | .name = "hsmmc", | ||
221 | .id = 2, | ||
222 | .parent = &clk_h, | ||
223 | .enable = s3c64xx_hclk_ctrl, | ||
224 | .ctrlbit = S3C_CLKCON_HCLK_HSMMC2, | ||
225 | }, { | ||
226 | .name = "timers", | ||
227 | .id = -1, | ||
228 | .parent = &clk_p, | ||
229 | .enable = s3c64xx_pclk_ctrl, | ||
230 | .ctrlbit = S3C_CLKCON_PCLK_PWM, | ||
231 | }, { | ||
232 | .name = "uart", | ||
233 | .id = 0, | ||
234 | .parent = &clk_p, | ||
235 | .enable = s3c64xx_pclk_ctrl, | ||
236 | .ctrlbit = S3C_CLKCON_PCLK_UART0, | ||
237 | }, { | ||
238 | .name = "uart", | ||
239 | .id = 1, | ||
240 | .parent = &clk_p, | ||
241 | .enable = s3c64xx_pclk_ctrl, | ||
242 | .ctrlbit = S3C_CLKCON_PCLK_UART1, | ||
243 | }, { | ||
244 | .name = "uart", | ||
245 | .id = 2, | ||
246 | .parent = &clk_p, | ||
247 | .enable = s3c64xx_pclk_ctrl, | ||
248 | .ctrlbit = S3C_CLKCON_PCLK_UART2, | ||
249 | }, { | ||
250 | .name = "uart", | ||
251 | .id = 3, | ||
252 | .parent = &clk_p, | ||
253 | .enable = s3c64xx_pclk_ctrl, | ||
254 | .ctrlbit = S3C_CLKCON_PCLK_UART3, | ||
255 | }, { | ||
256 | .name = "rtc", | ||
257 | .id = -1, | ||
258 | .parent = &clk_p, | ||
259 | .enable = s3c64xx_pclk_ctrl, | ||
260 | .ctrlbit = S3C_CLKCON_PCLK_RTC, | ||
261 | }, { | ||
262 | .name = "watchdog", | ||
263 | .id = -1, | ||
264 | .parent = &clk_p, | ||
265 | .ctrlbit = S3C_CLKCON_PCLK_WDT, | ||
266 | }, { | ||
267 | .name = "ac97", | ||
268 | .id = -1, | ||
269 | .parent = &clk_p, | ||
270 | .ctrlbit = S3C_CLKCON_PCLK_AC97, | ||
271 | } | ||
272 | }; | ||
273 | |||
274 | static struct clk *clks[] __initdata = { | ||
275 | &clk_ext, | ||
276 | &clk_epll, | ||
277 | &clk_27m, | ||
278 | &clk_48m, | ||
279 | &clk_h2, | ||
280 | }; | ||
281 | |||
282 | void __init s3c64xx_register_clocks(void) | ||
283 | { | ||
284 | struct clk *clkp; | ||
285 | int ret; | ||
286 | int ptr; | ||
287 | |||
288 | s3c24xx_register_clocks(clks, ARRAY_SIZE(clks)); | ||
289 | s3c_register_clocks(init_clocks, ARRAY_SIZE(init_clocks)); | ||
290 | |||
291 | clkp = init_clocks_disable; | ||
292 | for (ptr = 0; ptr < ARRAY_SIZE(init_clocks_disable); ptr++, clkp++) { | ||
293 | |||
294 | ret = s3c24xx_register_clock(clkp); | ||
295 | if (ret < 0) { | ||
296 | printk(KERN_ERR "Failed to register clock %s (%d)\n", | ||
297 | clkp->name, ret); | ||
298 | } | ||
299 | |||
300 | (clkp->enable)(clkp, 0); | ||
301 | } | ||
302 | |||
303 | s3c_pwmclk_init(); | ||
304 | } | ||
diff --git a/arch/arm/plat-s3c64xx/s3c6400-init.c b/arch/arm/plat-s3c64xx/s3c6400-init.c deleted file mode 100644 index 6c28f39df097..000000000000 --- a/arch/arm/plat-s3c64xx/s3c6400-init.c +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* linux/arch/arm/plat-s3c64xx/s3c6400-init.c | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * http://armlinux.simtec.co.uk/ | ||
7 | * | ||
8 | * S3C6400 - CPU initialisation (common with other S3C64XX chips) | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/init.h> | ||
18 | |||
19 | #include <plat/cpu.h> | ||
20 | #include <plat/devs.h> | ||
21 | #include <plat/s3c6400.h> | ||
22 | #include <plat/s3c6410.h> | ||
23 | |||
24 | /* uart registration process */ | ||
25 | |||
26 | void __init s3c6400_common_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
27 | { | ||
28 | s3c24xx_init_uartdevs("s3c6400-uart", s3c64xx_uart_resources, cfg, no); | ||
29 | } | ||
diff --git a/arch/arm/plat-samsung/include/plat/clock.h b/arch/arm/plat-samsung/include/plat/clock.h index ba9a1cdd3a28..60b62692ac7a 100644 --- a/arch/arm/plat-samsung/include/plat/clock.h +++ b/arch/arm/plat-samsung/include/plat/clock.h | |||
@@ -94,7 +94,6 @@ extern void s3c_register_clocks(struct clk *clk, int nr_clks); | |||
94 | 94 | ||
95 | extern int s3c24xx_register_baseclocks(unsigned long xtal); | 95 | extern int s3c24xx_register_baseclocks(unsigned long xtal); |
96 | 96 | ||
97 | extern void s3c64xx_register_clocks(void); | ||
98 | extern void s5p_register_clocks(unsigned long xtal_freq); | 97 | extern void s5p_register_clocks(unsigned long xtal_freq); |
99 | 98 | ||
100 | extern void s3c24xx_setup_clocks(unsigned long fclk, | 99 | extern void s3c24xx_setup_clocks(unsigned long fclk, |
diff --git a/arch/arm/plat-s3c24xx/include/plat/dma-plat.h b/arch/arm/plat-samsung/include/plat/dma-s3c24xx.h index 9565ead1bc9b..336d5ac02035 100644 --- a/arch/arm/plat-s3c24xx/include/plat/dma-plat.h +++ b/arch/arm/plat-samsung/include/plat/dma-s3c24xx.h | |||
@@ -1,9 +1,9 @@ | |||
1 | /* linux/arch/arm/plat-s3c24xx/include/plat/dma-plat.h | 1 | /* linux/arch/arm/plat-samsung/include/plat/dma-s3c24xx.h |
2 | * | 2 | * |
3 | * Copyright (C) 2006 Simtec Electronics | 3 | * Copyright (C) 2006 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 4 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 5 | * |
6 | * Samsung S3C24XX DMA support | 6 | * Samsung S3C24XX DMA support - per SoC functions |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h index 53198673b6bd..7d07cd7aa4f2 100644 --- a/arch/arm/plat-samsung/include/plat/sdhci.h +++ b/arch/arm/plat-samsung/include/plat/sdhci.h | |||
@@ -78,8 +78,8 @@ extern void s3c64xx_setup_sdhci2_cfg_gpio(struct platform_device *, int w); | |||
78 | 78 | ||
79 | /* S3C6400 SDHCI setup */ | 79 | /* S3C6400 SDHCI setup */ |
80 | 80 | ||
81 | #ifdef CONFIG_S3C6400_SETUP_SDHCI | 81 | #ifdef CONFIG_S3C64XX_SETUP_SDHCI |
82 | extern char *s3c6400_hsmmc_clksrcs[4]; | 82 | extern char *s3c64xx_hsmmc_clksrcs[4]; |
83 | 83 | ||
84 | #ifdef CONFIG_S3C_DEV_HSMMC | 84 | #ifdef CONFIG_S3C_DEV_HSMMC |
85 | extern void s3c6400_setup_sdhci_cfg_card(struct platform_device *dev, | 85 | extern void s3c6400_setup_sdhci_cfg_card(struct platform_device *dev, |
@@ -89,7 +89,7 @@ extern void s3c6400_setup_sdhci_cfg_card(struct platform_device *dev, | |||
89 | 89 | ||
90 | static inline void s3c6400_default_sdhci0(void) | 90 | static inline void s3c6400_default_sdhci0(void) |
91 | { | 91 | { |
92 | s3c_hsmmc0_def_platdata.clocks = s3c6400_hsmmc_clksrcs; | 92 | s3c_hsmmc0_def_platdata.clocks = s3c64xx_hsmmc_clksrcs; |
93 | s3c_hsmmc0_def_platdata.cfg_gpio = s3c64xx_setup_sdhci0_cfg_gpio; | 93 | s3c_hsmmc0_def_platdata.cfg_gpio = s3c64xx_setup_sdhci0_cfg_gpio; |
94 | s3c_hsmmc0_def_platdata.cfg_card = s3c6400_setup_sdhci_cfg_card; | 94 | s3c_hsmmc0_def_platdata.cfg_card = s3c6400_setup_sdhci_cfg_card; |
95 | } | 95 | } |
@@ -101,7 +101,7 @@ static inline void s3c6400_default_sdhci0(void) { } | |||
101 | #ifdef CONFIG_S3C_DEV_HSMMC1 | 101 | #ifdef CONFIG_S3C_DEV_HSMMC1 |
102 | static inline void s3c6400_default_sdhci1(void) | 102 | static inline void s3c6400_default_sdhci1(void) |
103 | { | 103 | { |
104 | s3c_hsmmc1_def_platdata.clocks = s3c6400_hsmmc_clksrcs; | 104 | s3c_hsmmc1_def_platdata.clocks = s3c64xx_hsmmc_clksrcs; |
105 | s3c_hsmmc1_def_platdata.cfg_gpio = s3c64xx_setup_sdhci1_cfg_gpio; | 105 | s3c_hsmmc1_def_platdata.cfg_gpio = s3c64xx_setup_sdhci1_cfg_gpio; |
106 | s3c_hsmmc1_def_platdata.cfg_card = s3c6400_setup_sdhci_cfg_card; | 106 | s3c_hsmmc1_def_platdata.cfg_card = s3c6400_setup_sdhci_cfg_card; |
107 | } | 107 | } |
@@ -112,7 +112,7 @@ static inline void s3c6400_default_sdhci1(void) { } | |||
112 | #ifdef CONFIG_S3C_DEV_HSMMC2 | 112 | #ifdef CONFIG_S3C_DEV_HSMMC2 |
113 | static inline void s3c6400_default_sdhci2(void) | 113 | static inline void s3c6400_default_sdhci2(void) |
114 | { | 114 | { |
115 | s3c_hsmmc2_def_platdata.clocks = s3c6400_hsmmc_clksrcs; | 115 | s3c_hsmmc2_def_platdata.clocks = s3c64xx_hsmmc_clksrcs; |
116 | s3c_hsmmc2_def_platdata.cfg_gpio = s3c64xx_setup_sdhci2_cfg_gpio; | 116 | s3c_hsmmc2_def_platdata.cfg_gpio = s3c64xx_setup_sdhci2_cfg_gpio; |
117 | s3c_hsmmc2_def_platdata.cfg_card = s3c6400_setup_sdhci_cfg_card; | 117 | s3c_hsmmc2_def_platdata.cfg_card = s3c6400_setup_sdhci_cfg_card; |
118 | } | 118 | } |
@@ -120,27 +120,19 @@ static inline void s3c6400_default_sdhci2(void) | |||
120 | static inline void s3c6400_default_sdhci2(void) { } | 120 | static inline void s3c6400_default_sdhci2(void) { } |
121 | #endif /* CONFIG_S3C_DEV_HSMMC2 */ | 121 | #endif /* CONFIG_S3C_DEV_HSMMC2 */ |
122 | 122 | ||
123 | #else | ||
124 | static inline void s3c6400_default_sdhci0(void) { } | ||
125 | static inline void s3c6400_default_sdhci1(void) { } | ||
126 | #endif /* CONFIG_S3C6400_SETUP_SDHCI */ | ||
127 | |||
128 | /* S3C6410 SDHCI setup */ | 123 | /* S3C6410 SDHCI setup */ |
129 | 124 | ||
130 | #ifdef CONFIG_S3C6410_SETUP_SDHCI | 125 | extern void s3c6410_setup_sdhci_cfg_card(struct platform_device *dev, |
131 | extern char *s3c6410_hsmmc_clksrcs[4]; | 126 | void __iomem *r, |
132 | 127 | struct mmc_ios *ios, | |
133 | extern void s3c6410_setup_sdhci0_cfg_card(struct platform_device *dev, | 128 | struct mmc_card *card); |
134 | void __iomem *r, | ||
135 | struct mmc_ios *ios, | ||
136 | struct mmc_card *card); | ||
137 | 129 | ||
138 | #ifdef CONFIG_S3C_DEV_HSMMC | 130 | #ifdef CONFIG_S3C_DEV_HSMMC |
139 | static inline void s3c6410_default_sdhci0(void) | 131 | static inline void s3c6410_default_sdhci0(void) |
140 | { | 132 | { |
141 | s3c_hsmmc0_def_platdata.clocks = s3c6410_hsmmc_clksrcs; | 133 | s3c_hsmmc0_def_platdata.clocks = s3c64xx_hsmmc_clksrcs; |
142 | s3c_hsmmc0_def_platdata.cfg_gpio = s3c64xx_setup_sdhci0_cfg_gpio; | 134 | s3c_hsmmc0_def_platdata.cfg_gpio = s3c64xx_setup_sdhci0_cfg_gpio; |
143 | s3c_hsmmc0_def_platdata.cfg_card = s3c6410_setup_sdhci0_cfg_card; | 135 | s3c_hsmmc0_def_platdata.cfg_card = s3c6410_setup_sdhci_cfg_card; |
144 | } | 136 | } |
145 | #else | 137 | #else |
146 | static inline void s3c6410_default_sdhci0(void) { } | 138 | static inline void s3c6410_default_sdhci0(void) { } |
@@ -149,9 +141,9 @@ static inline void s3c6410_default_sdhci0(void) { } | |||
149 | #ifdef CONFIG_S3C_DEV_HSMMC1 | 141 | #ifdef CONFIG_S3C_DEV_HSMMC1 |
150 | static inline void s3c6410_default_sdhci1(void) | 142 | static inline void s3c6410_default_sdhci1(void) |
151 | { | 143 | { |
152 | s3c_hsmmc1_def_platdata.clocks = s3c6410_hsmmc_clksrcs; | 144 | s3c_hsmmc1_def_platdata.clocks = s3c64xx_hsmmc_clksrcs; |
153 | s3c_hsmmc1_def_platdata.cfg_gpio = s3c64xx_setup_sdhci1_cfg_gpio; | 145 | s3c_hsmmc1_def_platdata.cfg_gpio = s3c64xx_setup_sdhci1_cfg_gpio; |
154 | s3c_hsmmc1_def_platdata.cfg_card = s3c6410_setup_sdhci0_cfg_card; | 146 | s3c_hsmmc1_def_platdata.cfg_card = s3c6410_setup_sdhci_cfg_card; |
155 | } | 147 | } |
156 | #else | 148 | #else |
157 | static inline void s3c6410_default_sdhci1(void) { } | 149 | static inline void s3c6410_default_sdhci1(void) { } |
@@ -160,9 +152,9 @@ static inline void s3c6410_default_sdhci1(void) { } | |||
160 | #ifdef CONFIG_S3C_DEV_HSMMC2 | 152 | #ifdef CONFIG_S3C_DEV_HSMMC2 |
161 | static inline void s3c6410_default_sdhci2(void) | 153 | static inline void s3c6410_default_sdhci2(void) |
162 | { | 154 | { |
163 | s3c_hsmmc2_def_platdata.clocks = s3c6410_hsmmc_clksrcs; | 155 | s3c_hsmmc2_def_platdata.clocks = s3c64xx_hsmmc_clksrcs; |
164 | s3c_hsmmc2_def_platdata.cfg_gpio = s3c64xx_setup_sdhci2_cfg_gpio; | 156 | s3c_hsmmc2_def_platdata.cfg_gpio = s3c64xx_setup_sdhci2_cfg_gpio; |
165 | s3c_hsmmc2_def_platdata.cfg_card = s3c6410_setup_sdhci0_cfg_card; | 157 | s3c_hsmmc2_def_platdata.cfg_card = s3c6410_setup_sdhci_cfg_card; |
166 | } | 158 | } |
167 | #else | 159 | #else |
168 | static inline void s3c6410_default_sdhci2(void) { } | 160 | static inline void s3c6410_default_sdhci2(void) { } |
@@ -171,7 +163,10 @@ static inline void s3c6410_default_sdhci2(void) { } | |||
171 | #else | 163 | #else |
172 | static inline void s3c6410_default_sdhci0(void) { } | 164 | static inline void s3c6410_default_sdhci0(void) { } |
173 | static inline void s3c6410_default_sdhci1(void) { } | 165 | static inline void s3c6410_default_sdhci1(void) { } |
174 | #endif /* CONFIG_S3C6410_SETUP_SDHCI */ | 166 | static inline void s3c6400_default_sdhci0(void) { } |
167 | static inline void s3c6400_default_sdhci1(void) { } | ||
168 | |||
169 | #endif /* CONFIG_S3C64XX_SETUP_SDHCI */ | ||
175 | 170 | ||
176 | /* S5PC100 SDHCI setup */ | 171 | /* S5PC100 SDHCI setup */ |
177 | 172 | ||