[PATCH 02/14] Add HCLKx2 to S3C64xx.

Ben Dooks ben at fluff.org
Thu Mar 5 12:30:45 CET 2009


On Thu, Mar 05, 2009 at 11:43:13AM +0800, Werner Almesberger wrote:
> Add doubled HCLK to S3C64xx.
> 
> Signed-off-by: Werner Almesberger <werner at openmoko.org>

yep, will queue.
 
> --- 
> 
> Index: cam/arch/arm/plat-s3c/include/plat/clock.h
> ===================================================================
> --- cam.orig/arch/arm/plat-s3c/include/plat/clock.h	2009-03-05 11:22:09.000000000 +0800
> +++ cam/arch/arm/plat-s3c/include/plat/clock.h	2009-03-05 11:22:20.000000000 +0800
> @@ -50,6 +50,7 @@
>  extern struct clk clk_ext;
>  
>  /* S3C64XX specific clocks */
> +extern struct clk clk_h2;
>  extern struct clk clk_27m;
>  extern struct clk clk_48m;
>  
> Index: cam/arch/arm/plat-s3c64xx/clock.c
> ===================================================================
> --- cam.orig/arch/arm/plat-s3c64xx/clock.c	2009-03-05 11:22:09.000000000 +0800
> +++ cam/arch/arm/plat-s3c64xx/clock.c	2009-03-05 11:22:20.000000000 +0800
> @@ -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,
> @@ -270,6 +276,7 @@
>  	&clk_epll,
>  	&clk_27m,
>  	&clk_48m,
> +	&clk_h2,
>  };
>  
>  void s3c64xx_register_clocks(void)
> Index: cam/arch/arm/plat-s3c64xx/s3c6400-clock.c
> ===================================================================
> --- cam.orig/arch/arm/plat-s3c64xx/s3c6400-clock.c	2009-03-05 11:22:13.000000000 +0800
> +++ cam/arch/arm/plat-s3c64xx/s3c6400-clock.c	2009-03-05 11:22:20.000000000 +0800
> @@ -608,6 +608,7 @@
>  	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;
> 
> -- 
> 

-- 
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.




More information about the openmoko-kernel mailing list