diff options
author | Werner Almesberger <werner@openmoko.org> | 2009-03-09 21:02:27 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-03-09 21:02:27 +0000 |
commit | 0dbda87cb65eb4885d50889b28e62c35b39ca410 (patch) | |
tree | 90455b775ea3e397acb174ace7eb2f4c15f85645 | |
parent | 331ce37e960ba2660c1cbda39891f80e783fdec9 (diff) |
Add CAMIF clock to S3C6410
[ Resending it. Seems that commit 9e723603e46500e2c9fbf09ac823de210bf05d31
used one of the empty mails I got with formail :-( ]
Add camera interface clock to S3C6410.
Signed-off-by: Werner Almesberger <werner@openmoko.org>
-rw-r--r-- | arch/arm/plat-s3c64xx/s3c6400-clock.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c index 163b9112a50..09924e3cb20 100644 --- a/arch/arm/plat-s3c64xx/s3c6400-clock.c +++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c @@ -595,6 +595,33 @@ static struct clksrc_clk clk_irda = { .reg_divider = S3C_CLK_DIV2, }; +static struct clk *clkset_camif_list[] = { + &clk_h2, +}; + +static struct clk_sources clkset_camif = { + .sources = clkset_camif_list, + .nr_sources = ARRAY_SIZE(clkset_camif_list), +}; + +static struct clksrc_clk clk_camif = { + .clk = { + .name = "camera", + .id = -1, + .ctrlbit = S3C_CLKCON_SCLK_CAM, + .enable = s3c64xx_sclk_ctrl, + .set_parent = s3c64xx_setparent_clksrc, + .get_rate = s3c64xx_getrate_clksrc, + .set_rate = s3c64xx_setrate_clksrc, + .round_rate = s3c64xx_roundrate_clksrc, + }, + .shift = 0, + .mask = 0, + .sources = &clkset_camif, + .divider_shift = S3C6400_CLKDIV0_CAM_SHIFT, + .reg_divider = S3C_CLK_DIV0, +}; + /* Clock initialisation code */ static struct clksrc_clk *init_parents[] = { @@ -611,6 +638,7 @@ static struct clksrc_clk *init_parents[] = { &clk_audio0, &clk_audio1, &clk_irda, + &clk_camif, }; static void __init_or_cpufreq s3c6400_set_clksrc(struct clksrc_clk *clk) @@ -711,6 +739,7 @@ static struct clk *clks[] __initdata = { &clk_audio0.clk, &clk_audio1.clk, &clk_irda.clk, + &clk_camif.clk, &clk_arm, }; |