diff options
author | Tomasz Figa <tomasz.figa@gmail.com> | 2013-08-25 13:00:38 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-09-16 17:47:36 -0400 |
commit | b69f460dc1a074db3f759c2be9cd13271f91fbdd (patch) | |
tree | 394b24898f17c715ec77328608decd2925e8ab93 | |
parent | d0127f6fc12e311cdd89bb1bd62f36621778d149 (diff) |
ARM: S3C64XX: Migrate clock handling to Common Clock Framework
This patch migrates the s3c64xx platform to use the new clock driver
using Common Clock Framework.
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/common.c | 21 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/common.h | 10 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-anw6410.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-crag6410.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-hmt.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-mini6410.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-ncp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smartq.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6400.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/s3c6400.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/s3c6410.c | 7 | ||||
-rw-r--r-- | drivers/clk/samsung/Makefile | 2 |
15 files changed, 33 insertions, 42 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3f7714d8d2d2..76b025e3a74a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -727,6 +727,7 @@ config ARCH_S3C64XX | |||
727 | select ARM_VIC | 727 | select ARM_VIC |
728 | select CLKDEV_LOOKUP | 728 | select CLKDEV_LOOKUP |
729 | select CLKSRC_SAMSUNG_PWM | 729 | select CLKSRC_SAMSUNG_PWM |
730 | select COMMON_CLK | ||
730 | select CPU_V6 | 731 | select CPU_V6 |
731 | select GENERIC_CLOCKEVENTS | 732 | select GENERIC_CLOCKEVENTS |
732 | select GPIO_SAMSUNG | 733 | select GPIO_SAMSUNG |
@@ -740,7 +741,6 @@ config ARCH_S3C64XX | |||
740 | select S3C_DEV_NAND | 741 | select S3C_DEV_NAND |
741 | select S3C_GPIO_TRACK | 742 | select S3C_GPIO_TRACK |
742 | select SAMSUNG_ATAGS | 743 | select SAMSUNG_ATAGS |
743 | select SAMSUNG_CLKSRC | ||
744 | select SAMSUNG_GPIOLIB_4BIT | 744 | select SAMSUNG_GPIOLIB_4BIT |
745 | select SAMSUNG_WDT_RESET | 745 | select SAMSUNG_WDT_RESET |
746 | select USB_ARCH_HAS_OHCI | 746 | select USB_ARCH_HAS_OHCI |
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 31d0c9101272..645a8fe55f8d 100644 --- a/arch/arm/mach-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile | |||
@@ -12,7 +12,7 @@ obj- := | |||
12 | 12 | ||
13 | # Core | 13 | # Core |
14 | 14 | ||
15 | obj-y += common.o clock.o | 15 | obj-y += common.o |
16 | 16 | ||
17 | # Core support | 17 | # Core support |
18 | 18 | ||
diff --git a/arch/arm/mach-s3c64xx/common.c b/arch/arm/mach-s3c64xx/common.c index 73d79cf5e141..7d3cb58f1856 100644 --- a/arch/arm/mach-s3c64xx/common.c +++ b/arch/arm/mach-s3c64xx/common.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/clk-provider.h> | ||
20 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
21 | #include <linux/ioport.h> | 22 | #include <linux/ioport.h> |
22 | #include <linux/serial_core.h> | 23 | #include <linux/serial_core.h> |
@@ -38,7 +39,6 @@ | |||
38 | #include <mach/regs-gpio.h> | 39 | #include <mach/regs-gpio.h> |
39 | 40 | ||
40 | #include <plat/cpu.h> | 41 | #include <plat/cpu.h> |
41 | #include <plat/clock.h> | ||
42 | #include <plat/devs.h> | 42 | #include <plat/devs.h> |
43 | #include <plat/pm.h> | 43 | #include <plat/pm.h> |
44 | #include <plat/gpio-cfg.h> | 44 | #include <plat/gpio-cfg.h> |
@@ -50,6 +50,19 @@ | |||
50 | 50 | ||
51 | #include "common.h" | 51 | #include "common.h" |
52 | 52 | ||
53 | /* External clock frequency */ | ||
54 | static unsigned long xtal_f = 12000000, xusbxti_f = 48000000; | ||
55 | |||
56 | void __init s3c64xx_set_xtal_freq(unsigned long freq) | ||
57 | { | ||
58 | xtal_f = freq; | ||
59 | } | ||
60 | |||
61 | void __init s3c64xx_set_xusbxti_freq(unsigned long freq) | ||
62 | { | ||
63 | xusbxti_f = freq; | ||
64 | } | ||
65 | |||
53 | /* uart registration process */ | 66 | /* uart registration process */ |
54 | 67 | ||
55 | static void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 68 | static void __init s3c64xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
@@ -67,7 +80,6 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
67 | .idcode = S3C6400_CPU_ID, | 80 | .idcode = S3C6400_CPU_ID, |
68 | .idmask = S3C64XX_CPU_MASK, | 81 | .idmask = S3C64XX_CPU_MASK, |
69 | .map_io = s3c6400_map_io, | 82 | .map_io = s3c6400_map_io, |
70 | .init_clocks = s3c6400_init_clocks, | ||
71 | .init_uarts = s3c64xx_init_uarts, | 83 | .init_uarts = s3c64xx_init_uarts, |
72 | .init = s3c6400_init, | 84 | .init = s3c6400_init, |
73 | .name = name_s3c6400, | 85 | .name = name_s3c6400, |
@@ -75,7 +87,6 @@ static struct cpu_table cpu_ids[] __initdata = { | |||
75 | .idcode = S3C6410_CPU_ID, | 87 | .idcode = S3C6410_CPU_ID, |
76 | .idmask = S3C64XX_CPU_MASK, | 88 | .idmask = S3C64XX_CPU_MASK, |
77 | .map_io = s3c6410_map_io, | 89 | .map_io = s3c6410_map_io, |
78 | .init_clocks = s3c6410_init_clocks, | ||
79 | .init_uarts = s3c64xx_init_uarts, | 90 | .init_uarts = s3c64xx_init_uarts, |
80 | .init = s3c6410_init, | 91 | .init = s3c6410_init, |
81 | .name = name_s3c6410, | 92 | .name = name_s3c6410, |
@@ -213,8 +224,10 @@ void __init s3c64xx_init_irq(u32 vic0_valid, u32 vic1_valid) | |||
213 | { | 224 | { |
214 | /* | 225 | /* |
215 | * FIXME: there is no better place to put this at the moment | 226 | * FIXME: there is no better place to put this at the moment |
216 | * (samsung_wdt_reset_init needs clocks) | 227 | * (s3c64xx_clk_init needs ioremap and must happen before init_time |
228 | * samsung_wdt_reset_init needs clocks) | ||
217 | */ | 229 | */ |
230 | s3c64xx_clk_init(NULL, xtal_f, xusbxti_f, soc_is_s3c6400(), S3C_VA_SYS); | ||
218 | samsung_wdt_reset_init(S3C_VA_WATCHDOG); | 231 | samsung_wdt_reset_init(S3C_VA_WATCHDOG); |
219 | 232 | ||
220 | printk(KERN_DEBUG "%s: initialising interrupts\n", __func__); | 233 | printk(KERN_DEBUG "%s: initialising interrupts\n", __func__); |
diff --git a/arch/arm/mach-s3c64xx/common.h b/arch/arm/mach-s3c64xx/common.h index e8f990b37665..a2af0e1fdb00 100644 --- a/arch/arm/mach-s3c64xx/common.h +++ b/arch/arm/mach-s3c64xx/common.h | |||
@@ -22,18 +22,19 @@ | |||
22 | void s3c64xx_init_irq(u32 vic0, u32 vic1); | 22 | void s3c64xx_init_irq(u32 vic0, u32 vic1); |
23 | void s3c64xx_init_io(struct map_desc *mach_desc, int size); | 23 | void s3c64xx_init_io(struct map_desc *mach_desc, int size); |
24 | 24 | ||
25 | void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit); | ||
26 | void s3c64xx_setup_clocks(void); | ||
27 | |||
28 | void s3c64xx_restart(enum reboot_mode mode, const char *cmd); | 25 | void s3c64xx_restart(enum reboot_mode mode, const char *cmd); |
29 | void s3c64xx_init_late(void); | 26 | void s3c64xx_init_late(void); |
30 | 27 | ||
28 | void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f, | ||
29 | unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base); | ||
30 | void s3c64xx_set_xtal_freq(unsigned long freq); | ||
31 | void s3c64xx_set_xusbxti_freq(unsigned long freq); | ||
32 | |||
31 | #ifdef CONFIG_CPU_S3C6400 | 33 | #ifdef CONFIG_CPU_S3C6400 |
32 | 34 | ||
33 | extern int s3c6400_init(void); | 35 | extern int s3c6400_init(void); |
34 | extern void s3c6400_init_irq(void); | 36 | extern void s3c6400_init_irq(void); |
35 | extern void s3c6400_map_io(void); | 37 | extern void s3c6400_map_io(void); |
36 | extern void s3c6400_init_clocks(int xtal); | ||
37 | 38 | ||
38 | #else | 39 | #else |
39 | #define s3c6400_init_clocks NULL | 40 | #define s3c6400_init_clocks NULL |
@@ -46,7 +47,6 @@ extern void s3c6400_init_clocks(int xtal); | |||
46 | extern int s3c6410_init(void); | 47 | extern int s3c6410_init(void); |
47 | extern void s3c6410_init_irq(void); | 48 | extern void s3c6410_init_irq(void); |
48 | extern void s3c6410_map_io(void); | 49 | extern void s3c6410_map_io(void); |
49 | extern void s3c6410_init_clocks(int xtal); | ||
50 | 50 | ||
51 | #else | 51 | #else |
52 | #define s3c6410_init_clocks NULL | 52 | #define s3c6410_init_clocks NULL |
diff --git a/arch/arm/mach-s3c64xx/mach-anw6410.c b/arch/arm/mach-s3c64xx/mach-anw6410.c index 35e3f54574ef..d266dd5f7060 100644 --- a/arch/arm/mach-s3c64xx/mach-anw6410.c +++ b/arch/arm/mach-s3c64xx/mach-anw6410.c | |||
@@ -207,7 +207,7 @@ static struct platform_device *anw6410_devices[] __initdata = { | |||
207 | static void __init anw6410_map_io(void) | 207 | static void __init anw6410_map_io(void) |
208 | { | 208 | { |
209 | s3c64xx_init_io(anw6410_iodesc, ARRAY_SIZE(anw6410_iodesc)); | 209 | s3c64xx_init_io(anw6410_iodesc, ARRAY_SIZE(anw6410_iodesc)); |
210 | s3c24xx_init_clocks(12000000); | 210 | s3c64xx_set_xtal_freq(12000000); |
211 | s3c24xx_init_uarts(anw6410_uartcfgs, ARRAY_SIZE(anw6410_uartcfgs)); | 211 | s3c24xx_init_uarts(anw6410_uartcfgs, ARRAY_SIZE(anw6410_uartcfgs)); |
212 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 212 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
213 | 213 | ||
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c index eb8e5a1aca42..1a911df9e451 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410.c | |||
@@ -743,7 +743,7 @@ static struct s3c2410_platform_i2c i2c1_pdata = { | |||
743 | static void __init crag6410_map_io(void) | 743 | static void __init crag6410_map_io(void) |
744 | { | 744 | { |
745 | s3c64xx_init_io(NULL, 0); | 745 | s3c64xx_init_io(NULL, 0); |
746 | s3c24xx_init_clocks(12000000); | 746 | s3c64xx_set_xtal_freq(12000000); |
747 | s3c24xx_init_uarts(crag6410_uartcfgs, ARRAY_SIZE(crag6410_uartcfgs)); | 747 | s3c24xx_init_uarts(crag6410_uartcfgs, ARRAY_SIZE(crag6410_uartcfgs)); |
748 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 748 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
749 | 749 | ||
diff --git a/arch/arm/mach-s3c64xx/mach-hmt.c b/arch/arm/mach-s3c64xx/mach-hmt.c index f39569e0f2e6..e8064044ef79 100644 --- a/arch/arm/mach-s3c64xx/mach-hmt.c +++ b/arch/arm/mach-s3c64xx/mach-hmt.c | |||
@@ -247,7 +247,7 @@ static struct platform_device *hmt_devices[] __initdata = { | |||
247 | static void __init hmt_map_io(void) | 247 | static void __init hmt_map_io(void) |
248 | { | 248 | { |
249 | s3c64xx_init_io(hmt_iodesc, ARRAY_SIZE(hmt_iodesc)); | 249 | s3c64xx_init_io(hmt_iodesc, ARRAY_SIZE(hmt_iodesc)); |
250 | s3c24xx_init_clocks(12000000); | 250 | s3c64xx_set_xtal_freq(12000000); |
251 | s3c24xx_init_uarts(hmt_uartcfgs, ARRAY_SIZE(hmt_uartcfgs)); | 251 | s3c24xx_init_uarts(hmt_uartcfgs, ARRAY_SIZE(hmt_uartcfgs)); |
252 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 252 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
253 | } | 253 | } |
diff --git a/arch/arm/mach-s3c64xx/mach-mini6410.c b/arch/arm/mach-s3c64xx/mach-mini6410.c index fc043e3ecdf8..58d46a3d7b78 100644 --- a/arch/arm/mach-s3c64xx/mach-mini6410.c +++ b/arch/arm/mach-s3c64xx/mach-mini6410.c | |||
@@ -231,7 +231,7 @@ static void __init mini6410_map_io(void) | |||
231 | u32 tmp; | 231 | u32 tmp; |
232 | 232 | ||
233 | s3c64xx_init_io(NULL, 0); | 233 | s3c64xx_init_io(NULL, 0); |
234 | s3c24xx_init_clocks(12000000); | 234 | s3c64xx_set_xtal_freq(12000000); |
235 | s3c24xx_init_uarts(mini6410_uartcfgs, ARRAY_SIZE(mini6410_uartcfgs)); | 235 | s3c24xx_init_uarts(mini6410_uartcfgs, ARRAY_SIZE(mini6410_uartcfgs)); |
236 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 236 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
237 | 237 | ||
diff --git a/arch/arm/mach-s3c64xx/mach-ncp.c b/arch/arm/mach-s3c64xx/mach-ncp.c index 7e2c3908f1f8..2067b0bf55b4 100644 --- a/arch/arm/mach-s3c64xx/mach-ncp.c +++ b/arch/arm/mach-s3c64xx/mach-ncp.c | |||
@@ -86,7 +86,7 @@ static struct map_desc ncp_iodesc[] __initdata = {}; | |||
86 | static void __init ncp_map_io(void) | 86 | static void __init ncp_map_io(void) |
87 | { | 87 | { |
88 | s3c64xx_init_io(ncp_iodesc, ARRAY_SIZE(ncp_iodesc)); | 88 | s3c64xx_init_io(ncp_iodesc, ARRAY_SIZE(ncp_iodesc)); |
89 | s3c24xx_init_clocks(12000000); | 89 | s3c64xx_set_xtal_freq(12000000); |
90 | s3c24xx_init_uarts(ncp_uartcfgs, ARRAY_SIZE(ncp_uartcfgs)); | 90 | s3c24xx_init_uarts(ncp_uartcfgs, ARRAY_SIZE(ncp_uartcfgs)); |
91 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 91 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
92 | } | 92 | } |
diff --git a/arch/arm/mach-s3c64xx/mach-smartq.c b/arch/arm/mach-s3c64xx/mach-smartq.c index 86d980b448fd..0f47237be3b2 100644 --- a/arch/arm/mach-s3c64xx/mach-smartq.c +++ b/arch/arm/mach-s3c64xx/mach-smartq.c | |||
@@ -337,13 +337,6 @@ err: | |||
337 | return ret; | 337 | return ret; |
338 | } | 338 | } |
339 | 339 | ||
340 | static int __init smartq_usb_otg_init(void) | ||
341 | { | ||
342 | clk_xusbxti.rate = 12000000; | ||
343 | |||
344 | return 0; | ||
345 | } | ||
346 | |||
347 | static int __init smartq_wifi_init(void) | 340 | static int __init smartq_wifi_init(void) |
348 | { | 341 | { |
349 | int ret; | 342 | int ret; |
@@ -377,7 +370,8 @@ static struct map_desc smartq_iodesc[] __initdata = {}; | |||
377 | void __init smartq_map_io(void) | 370 | void __init smartq_map_io(void) |
378 | { | 371 | { |
379 | s3c64xx_init_io(smartq_iodesc, ARRAY_SIZE(smartq_iodesc)); | 372 | s3c64xx_init_io(smartq_iodesc, ARRAY_SIZE(smartq_iodesc)); |
380 | s3c24xx_init_clocks(12000000); | 373 | s3c64xx_set_xtal_freq(12000000); |
374 | s3c64xx_set_xusbxti_freq(12000000); | ||
381 | s3c24xx_init_uarts(smartq_uartcfgs, ARRAY_SIZE(smartq_uartcfgs)); | 375 | s3c24xx_init_uarts(smartq_uartcfgs, ARRAY_SIZE(smartq_uartcfgs)); |
382 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 376 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
383 | 377 | ||
@@ -399,7 +393,6 @@ void __init smartq_machine_init(void) | |||
399 | WARN_ON(smartq_lcd_setup_gpio()); | 393 | WARN_ON(smartq_lcd_setup_gpio()); |
400 | WARN_ON(smartq_power_off_init()); | 394 | WARN_ON(smartq_power_off_init()); |
401 | WARN_ON(smartq_usb_host_init()); | 395 | WARN_ON(smartq_usb_host_init()); |
402 | WARN_ON(smartq_usb_otg_init()); | ||
403 | WARN_ON(smartq_wifi_init()); | 396 | WARN_ON(smartq_wifi_init()); |
404 | 397 | ||
405 | platform_add_devices(smartq_devices, ARRAY_SIZE(smartq_devices)); | 398 | platform_add_devices(smartq_devices, ARRAY_SIZE(smartq_devices)); |
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6400.c b/arch/arm/mach-s3c64xx/mach-smdk6400.c index d70c0843aea2..27381cfcabbe 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6400.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6400.c | |||
@@ -65,7 +65,7 @@ static struct map_desc smdk6400_iodesc[] = {}; | |||
65 | static void __init smdk6400_map_io(void) | 65 | static void __init smdk6400_map_io(void) |
66 | { | 66 | { |
67 | s3c64xx_init_io(smdk6400_iodesc, ARRAY_SIZE(smdk6400_iodesc)); | 67 | s3c64xx_init_io(smdk6400_iodesc, ARRAY_SIZE(smdk6400_iodesc)); |
68 | s3c24xx_init_clocks(12000000); | 68 | s3c64xx_set_xtal_freq(12000000); |
69 | s3c24xx_init_uarts(smdk6400_uartcfgs, ARRAY_SIZE(smdk6400_uartcfgs)); | 69 | s3c24xx_init_uarts(smdk6400_uartcfgs, ARRAY_SIZE(smdk6400_uartcfgs)); |
70 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 70 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
71 | } | 71 | } |
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index d90b450c5645..2a7b32ca5c96 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -634,7 +634,7 @@ static void __init smdk6410_map_io(void) | |||
634 | u32 tmp; | 634 | u32 tmp; |
635 | 635 | ||
636 | s3c64xx_init_io(smdk6410_iodesc, ARRAY_SIZE(smdk6410_iodesc)); | 636 | s3c64xx_init_io(smdk6410_iodesc, ARRAY_SIZE(smdk6410_iodesc)); |
637 | s3c24xx_init_clocks(12000000); | 637 | s3c64xx_set_xtal_freq(12000000); |
638 | s3c24xx_init_uarts(smdk6410_uartcfgs, ARRAY_SIZE(smdk6410_uartcfgs)); | 638 | s3c24xx_init_uarts(smdk6410_uartcfgs, ARRAY_SIZE(smdk6410_uartcfgs)); |
639 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 639 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
640 | 640 | ||
diff --git a/arch/arm/mach-s3c64xx/s3c6400.c b/arch/arm/mach-s3c64xx/s3c6400.c index 4869714c6f1b..331fe8e58145 100644 --- a/arch/arm/mach-s3c64xx/s3c6400.c +++ b/arch/arm/mach-s3c64xx/s3c6400.c | |||
@@ -58,12 +58,6 @@ void __init s3c6400_map_io(void) | |||
58 | s3c64xx_onenand1_setname("s3c6400-onenand"); | 58 | s3c64xx_onenand1_setname("s3c6400-onenand"); |
59 | } | 59 | } |
60 | 60 | ||
61 | void __init s3c6400_init_clocks(int xtal) | ||
62 | { | ||
63 | s3c64xx_register_clocks(xtal, S3C6400_CLKDIV0_ARM_MASK); | ||
64 | s3c64xx_setup_clocks(); | ||
65 | } | ||
66 | |||
67 | void __init s3c6400_init_irq(void) | 61 | void __init s3c6400_init_irq(void) |
68 | { | 62 | { |
69 | /* VIC0 does not have IRQS 5..7, | 63 | /* VIC0 does not have IRQS 5..7, |
diff --git a/arch/arm/mach-s3c64xx/s3c6410.c b/arch/arm/mach-s3c64xx/s3c6410.c index 31c29fdf1800..7e6fa125584a 100644 --- a/arch/arm/mach-s3c64xx/s3c6410.c +++ b/arch/arm/mach-s3c64xx/s3c6410.c | |||
@@ -62,13 +62,6 @@ void __init s3c6410_map_io(void) | |||
62 | s3c_cfcon_setname("s3c64xx-pata"); | 62 | s3c_cfcon_setname("s3c64xx-pata"); |
63 | } | 63 | } |
64 | 64 | ||
65 | void __init s3c6410_init_clocks(int xtal) | ||
66 | { | ||
67 | printk(KERN_DEBUG "%s: initialising clocks\n", __func__); | ||
68 | s3c64xx_register_clocks(xtal, S3C6410_CLKDIV0_ARM_MASK); | ||
69 | s3c64xx_setup_clocks(); | ||
70 | } | ||
71 | |||
72 | void __init s3c6410_init_irq(void) | 65 | void __init s3c6410_init_irq(void) |
73 | { | 66 | { |
74 | /* VIC0 is missing IRQ7, VIC1 is fully populated. */ | 67 | /* VIC0 is missing IRQ7, VIC1 is fully populated. */ |
diff --git a/drivers/clk/samsung/Makefile b/drivers/clk/samsung/Makefile index 3413380086d5..8eb4799237f0 100644 --- a/drivers/clk/samsung/Makefile +++ b/drivers/clk/samsung/Makefile | |||
@@ -8,6 +8,4 @@ obj-$(CONFIG_SOC_EXYNOS5250) += clk-exynos5250.o | |||
8 | obj-$(CONFIG_SOC_EXYNOS5420) += clk-exynos5420.o | 8 | obj-$(CONFIG_SOC_EXYNOS5420) += clk-exynos5420.o |
9 | obj-$(CONFIG_SOC_EXYNOS5440) += clk-exynos5440.o | 9 | obj-$(CONFIG_SOC_EXYNOS5440) += clk-exynos5440.o |
10 | obj-$(CONFIG_ARCH_EXYNOS) += clk-exynos-audss.o | 10 | obj-$(CONFIG_ARCH_EXYNOS) += clk-exynos-audss.o |
11 | ifdef CONFIG_COMMON_CLK | ||
12 | obj-$(CONFIG_ARCH_S3C64XX) += clk-s3c64xx.o | 11 | obj-$(CONFIG_ARCH_S3C64XX) += clk-s3c64xx.o |
13 | endif | ||