Skip to content

Commit

Permalink
[ARM] S3C64XX: Add HCLKx2
Browse files Browse the repository at this point in the history
Add doubled HCLK to S3C64xx.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Werner Almesberger authored and Ben Dooks committed May 7, 2009
1 parent e2c977d commit a03f7da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/plat-s3c/include/plat/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ extern struct clk clk_xtal;
extern struct clk clk_ext;

/* S3C64XX specific clocks */
extern struct clk clk_h2;
extern struct clk clk_27m;
extern struct clk clk_48m;

Expand Down
7 changes: 7 additions & 0 deletions arch/arm/plat-s3c64xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
#include <plat/devs.h>
#include <plat/clock.h>

struct clk clk_h2 = {
.name = "hclk2",
.id = -1,
.rate = 0,
};

struct clk clk_27m = {
.name = "clk_27m",
.id = -1,
Expand Down Expand Up @@ -246,6 +252,7 @@ static struct clk *clks[] __initdata = {
&clk_epll,
&clk_27m,
&clk_48m,
&clk_h2,
};

void __init s3c64xx_register_clocks(void)
Expand Down
1 change: 1 addition & 0 deletions arch/arm/plat-s3c64xx/s3c6400-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ void __init_or_cpufreq s3c6400_setup_clocks(void)
clk_fout_epll.rate = epll;
clk_fout_apll.rate = apll;

clk_h2.rate = hclk2;
clk_h.rate = hclk;
clk_p.rate = pclk;
clk_f.rate = fclk;
Expand Down

0 comments on commit a03f7da

Please sign in to comment.