Commit a03f7daf authored by Werner Almesberger's avatar Werner Almesberger Committed by Ben Dooks

[ARM] S3C64XX: Add HCLKx2

Add doubled HCLK to S3C64xx.
Signed-off-by: default avatarWerner Almesberger <werner@openmoko.org>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent e2c977dc
...@@ -50,6 +50,7 @@ extern struct clk clk_xtal; ...@@ -50,6 +50,7 @@ extern struct clk clk_xtal;
extern struct clk clk_ext; extern struct clk clk_ext;
/* S3C64XX specific clocks */ /* S3C64XX specific clocks */
extern struct clk clk_h2;
extern struct clk clk_27m; extern struct clk clk_27m;
extern struct clk clk_48m; extern struct clk clk_48m;
......
...@@ -27,6 +27,12 @@ ...@@ -27,6 +27,12 @@
#include <plat/devs.h> #include <plat/devs.h>
#include <plat/clock.h> #include <plat/clock.h>
struct clk clk_h2 = {
.name = "hclk2",
.id = -1,
.rate = 0,
};
struct clk clk_27m = { struct clk clk_27m = {
.name = "clk_27m", .name = "clk_27m",
.id = -1, .id = -1,
...@@ -246,6 +252,7 @@ static struct clk *clks[] __initdata = { ...@@ -246,6 +252,7 @@ static struct clk *clks[] __initdata = {
&clk_epll, &clk_epll,
&clk_27m, &clk_27m,
&clk_48m, &clk_48m,
&clk_h2,
}; };
void __init s3c64xx_register_clocks(void) void __init s3c64xx_register_clocks(void)
......
...@@ -636,6 +636,7 @@ void __init_or_cpufreq s3c6400_setup_clocks(void) ...@@ -636,6 +636,7 @@ void __init_or_cpufreq s3c6400_setup_clocks(void)
clk_fout_epll.rate = epll; clk_fout_epll.rate = epll;
clk_fout_apll.rate = apll; clk_fout_apll.rate = apll;
clk_h2.rate = hclk2;
clk_h.rate = hclk; clk_h.rate = hclk;
clk_p.rate = pclk; clk_p.rate = pclk;
clk_f.rate = fclk; clk_f.rate = fclk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment