Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf18acf0 authored by Ben Dooks's avatar Ben Dooks
Browse files

[ARM] S3C64XX: Clock support for S3C6400/S3C6410



Add the PLL clock initialisation and clock registration
and include the clocks sourced via CLKDIVx for most of
the on-chip peripherals.

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent c652d2dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
config CPU_S3C6410
	bool
	select CPU_S3C6400_INIT
	select CPU_S3C6400_CLOCK
	help
	  Enable S3C6410 CPU support
+3 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
#include <plat/cpu.h>
#include <plat/devs.h>
#include <plat/clock.h>
#include <plat/s3c6400.h>
#include <plat/s3c6410.h>

/* Initial IO mappings */
@@ -57,6 +58,8 @@ void __init s3c6410_init_clocks(int xtal)
	printk(KERN_INFO "%s: initialising clocks\n", __func__);
	s3c24xx_register_baseclocks(xtal);
	s3c64xx_register_clocks();
	s3c6400_register_clocks();
	s3c6400_setup_clocks();
}

void __init s3c6410_init_irq(void)
+3 −0
Original line number Diff line number Diff line
@@ -78,3 +78,6 @@ extern void s3c2412_setup_clocks(void);
extern void s3c244x_setup_clocks(void);
extern void s3c2443_setup_clocks(void);

/* S3C64XX specific functions and clocks */

extern int s3c64xx_sclk_ctrl(struct clk *clk, int enable);
+6 −0
Original line number Diff line number Diff line
@@ -27,4 +27,10 @@ config CPU_S3C6400_INIT
	  Common initialisation code for the S3C6400 that is shared
	  by other CPUs in the series, such as the S3C6410.

config CPU_S3C6400_CLOCK
	bool
	help
	  Common clock support code for the S3C6400 that is shared
	  by other CPUs in the series, such as the S3C6410.

endif
+1 −0
Original line number Diff line number Diff line
@@ -20,3 +20,4 @@ obj-y += clock.o
# CPU support

obj-$(CONFIG_CPU_S3C6400_INIT)	+= s3c6400-init.o
obj-$(CONFIG_CPU_S3C6400_CLOCK)	+= s3c6400-clock.o
Loading