diff options
author | Heiko Stuebner <heiko@sntech.de> | 2012-03-02 17:49:12 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-02 18:55:59 -0500 |
commit | 8c3d7c30c306d83ff9c303f42307765a5a7bc254 (patch) | |
tree | f3874d2a4fa20881b10c23e1610e75c2975ed236 /arch | |
parent | 8fe2ff766d458453f8b5624291f14db9efe2ef20 (diff) |
ARM: S3C24XX: Move s3c2443-clock.c to mach-s3c24xx
S3C-SoCs starting with the S3C2443 can share a lot of functionality.
The file can collect more common code of these SocS later on and
therefore gets a new name to reflect this future purpose.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c24xx/Kconfig | 14 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/Makefile | 4 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/common-s3c2443.c (renamed from arch/arm/plat-s3c24xx/s3c2443-clock.c) | 17 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/Makefile | 1 |
5 files changed, 29 insertions, 13 deletions
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig index 44b2a3212d29..48af6fcb8acd 100644 --- a/arch/arm/mach-s3c24xx/Kconfig +++ b/arch/arm/mach-s3c24xx/Kconfig | |||
@@ -41,7 +41,7 @@ config CPU_S3C2416 | |||
41 | select CPU_ARM926T | 41 | select CPU_ARM926T |
42 | select CPU_LLSERIAL_S3C2440 | 42 | select CPU_LLSERIAL_S3C2440 |
43 | select SAMSUNG_CLKSRC | 43 | select SAMSUNG_CLKSRC |
44 | select S3C2443_CLOCK | 44 | select S3C2443_COMMON |
45 | select S3C2416_DMA if S3C24XX_DMA | 45 | select S3C2416_DMA if S3C24XX_DMA |
46 | select S3C2416_PM if PM | 46 | select S3C2416_PM if PM |
47 | help | 47 | help |
@@ -76,7 +76,7 @@ config CPU_S3C2443 | |||
76 | select CPU_ARM920T | 76 | select CPU_ARM920T |
77 | select CPU_LLSERIAL_S3C2440 | 77 | select CPU_LLSERIAL_S3C2440 |
78 | select SAMSUNG_CLKSRC | 78 | select SAMSUNG_CLKSRC |
79 | select S3C2443_CLOCK | 79 | select S3C2443_COMMON |
80 | select S3C2443_DMA if S3C24XX_DMA | 80 | select S3C2443_DMA if S3C24XX_DMA |
81 | help | 81 | help |
82 | Support for the S3C2443 SoC from the S3C24XX line | 82 | Support for the S3C2443 SoC from the S3C24XX line |
@@ -471,6 +471,16 @@ config SMDK2440_CPU2442 | |||
471 | 471 | ||
472 | endif # CPU_S3C2440 | 472 | endif # CPU_S3C2440 |
473 | 473 | ||
474 | if CPU_S3C2443 || CPU_S3C2416 | ||
475 | |||
476 | config S3C2443_COMMON | ||
477 | bool | ||
478 | help | ||
479 | Common code for the S3C2443 and similar processors, which includes | ||
480 | the S3C2416 and S3C2450. | ||
481 | |||
482 | endif # CPU_S3C2443 || CPU_S3C2416 | ||
483 | |||
474 | if CPU_S3C2443 | 484 | if CPU_S3C2443 |
475 | 485 | ||
476 | config S3C2443_DMA | 486 | config S3C2443_DMA |
diff --git a/arch/arm/mach-s3c24xx/Makefile b/arch/arm/mach-s3c24xx/Makefile index 08b44a3ab858..876e5e54d976 100644 --- a/arch/arm/mach-s3c24xx/Makefile +++ b/arch/arm/mach-s3c24xx/Makefile | |||
@@ -34,6 +34,10 @@ obj-$(CONFIG_S3C2440_DMA) += dma-s3c2440.o | |||
34 | obj-$(CONFIG_CPU_S3C2443) += s3c2443.o irq-s3c2443.o clock-s3c2443.o | 34 | obj-$(CONFIG_CPU_S3C2443) += s3c2443.o irq-s3c2443.o clock-s3c2443.o |
35 | obj-$(CONFIG_S3C2443_DMA) += dma-s3c2443.o | 35 | obj-$(CONFIG_S3C2443_DMA) += dma-s3c2443.o |
36 | 36 | ||
37 | # common code | ||
38 | |||
39 | obj-$(CONFIG_S3C2443_COMMON) += common-s3c2443.o | ||
40 | |||
37 | # | 41 | # |
38 | # machine support | 42 | # machine support |
39 | # following is ordered alphabetically by option text. | 43 | # following is ordered alphabetically by option text. |
diff --git a/arch/arm/plat-s3c24xx/s3c2443-clock.c b/arch/arm/mach-s3c24xx/common-s3c2443.c index 363306061c89..274561677e5c 100644 --- a/arch/arm/plat-s3c24xx/s3c2443-clock.c +++ b/arch/arm/mach-s3c24xx/common-s3c2443.c | |||
@@ -1,9 +1,18 @@ | |||
1 | /* linux/arch/arm/plat-s3c24xx/s3c2443-clock.c | 1 | /* |
2 | * Common code for SoCs starting with the S3C2443 | ||
2 | * | 3 | * |
3 | * Copyright (c) 2007, 2010 Simtec Electronics | 4 | * Copyright (c) 2007, 2010 Simtec Electronics |
4 | * Ben Dooks <ben@simtec.co.uk> | 5 | * Ben Dooks <ben@simtec.co.uk> |
5 | * | 6 | * |
6 | * S3C2443 Clock control suport - common code | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
7 | */ | 16 | */ |
8 | 17 | ||
9 | #include <linux/init.h> | 18 | #include <linux/init.h> |
@@ -552,7 +561,7 @@ void __init_or_cpufreq s3c2443_common_setup_clocks(pll_fn get_mpll) | |||
552 | s3c24xx_setup_clocks(fclk, hclk, pclk); | 561 | s3c24xx_setup_clocks(fclk, hclk, pclk); |
553 | 562 | ||
554 | printk("CPU: MPLL %s %ld.%03ld MHz, cpu %ld.%03ld MHz, mem %ld.%03ld MHz, pclk %ld.%03ld MHz\n", | 563 | printk("CPU: MPLL %s %ld.%03ld MHz, cpu %ld.%03ld MHz, mem %ld.%03ld MHz, pclk %ld.%03ld MHz\n", |
555 | (mpllcon & S3C2443_PLLCON_OFF) ? "off":"on", | 564 | (mpllcon & S3C2443_PLLCON_OFF) ? "off" : "on", |
556 | print_mhz(pll), print_mhz(fclk), | 565 | print_mhz(pll), print_mhz(fclk), |
557 | print_mhz(hclk), print_mhz(pclk)); | 566 | print_mhz(hclk), print_mhz(pclk)); |
558 | 567 | ||
@@ -567,7 +576,7 @@ void __init_or_cpufreq s3c2443_common_setup_clocks(pll_fn get_mpll) | |||
567 | } | 576 | } |
568 | 577 | ||
569 | printk("CPU: EPLL %s %ld.%03ld MHz, usb-bus %ld.%03ld MHz\n", | 578 | printk("CPU: EPLL %s %ld.%03ld MHz, usb-bus %ld.%03ld MHz\n", |
570 | (epllcon & S3C2443_PLLCON_OFF) ? "off":"on", | 579 | (epllcon & S3C2443_PLLCON_OFF) ? "off" : "on", |
571 | print_mhz(clk_get_rate(&clk_epll)), | 580 | print_mhz(clk_get_rate(&clk_epll)), |
572 | print_mhz(clk_get_rate(&clk_usb_bus))); | 581 | print_mhz(clk_get_rate(&clk_usb_bus))); |
573 | } | 582 | } |
diff --git a/arch/arm/plat-s3c24xx/Kconfig b/arch/arm/plat-s3c24xx/Kconfig index 0c183fdf7284..74f76e023e45 100644 --- a/arch/arm/plat-s3c24xx/Kconfig +++ b/arch/arm/plat-s3c24xx/Kconfig | |||
@@ -44,12 +44,6 @@ config S3C2410_CLOCK | |||
44 | Clock code for the S3C2410, and similar processors which | 44 | Clock code for the S3C2410, and similar processors which |
45 | is currently includes the S3C2410, S3C2440, S3C2442. | 45 | is currently includes the S3C2410, S3C2440, S3C2442. |
46 | 46 | ||
47 | config S3C2443_CLOCK | ||
48 | bool | ||
49 | help | ||
50 | Clock code for the S3C2443 and similar processors, which includes | ||
51 | the S3C2416 and S3C2450. | ||
52 | |||
53 | config S3C24XX_DCLK | 47 | config S3C24XX_DCLK |
54 | bool | 48 | bool |
55 | help | 49 | help |
diff --git a/arch/arm/plat-s3c24xx/Makefile b/arch/arm/plat-s3c24xx/Makefile index bce27ca28465..a7e8843486b3 100644 --- a/arch/arm/plat-s3c24xx/Makefile +++ b/arch/arm/plat-s3c24xx/Makefile | |||
@@ -28,7 +28,6 @@ obj-$(CONFIG_PM) += pm.o | |||
28 | obj-$(CONFIG_PM) += irq-pm.o | 28 | obj-$(CONFIG_PM) += irq-pm.o |
29 | obj-$(CONFIG_PM) += sleep.o | 29 | obj-$(CONFIG_PM) += sleep.o |
30 | obj-$(CONFIG_S3C2410_CLOCK) += s3c2410-clock.o | 30 | obj-$(CONFIG_S3C2410_CLOCK) += s3c2410-clock.o |
31 | obj-$(CONFIG_S3C2443_CLOCK) += s3c2443-clock.o | ||
32 | obj-$(CONFIG_S3C24XX_DMA) += dma.o | 31 | obj-$(CONFIG_S3C24XX_DMA) += dma.o |
33 | obj-$(CONFIG_S3C2410_IOTIMING) += s3c2410-iotiming.o | 32 | obj-$(CONFIG_S3C2410_IOTIMING) += s3c2410-iotiming.o |
34 | obj-$(CONFIG_S3C2412_IOTIMING) += s3c2412-iotiming.o | 33 | obj-$(CONFIG_S3C2412_IOTIMING) += s3c2412-iotiming.o |