]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: use 10MHz VIO_CLK for ov772x on Migo-R
authorMagnus Damm <damm@igel.co.jp>
Wed, 22 Oct 2008 09:25:39 +0000 (18:25 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 22 Oct 2008 09:34:09 +0000 (18:34 +0900)
Use a slower VIO_CKO clock frequency for the ov772x on Migo-R.
This improves the camera picture quality on Panel Board V2.1.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-migor/setup.c

index b4471931b877b3db7ad567910179386add1cedec..97528198029997ba34f814b35d8aa7f63cbf8f22 100644 (file)
@@ -288,8 +288,11 @@ static struct clk *camera_clk;
 
 static void camera_power_on(void)
 {
+       /* Use 10 MHz VIO_CKO instead of 24 MHz to work
+        * around signal quality issues on Panel Board V2.1.
+        */
        camera_clk = clk_get(NULL, "video_clk");
-       clk_set_rate(camera_clk, 24000000);
+       clk_set_rate(camera_clk, 10000000);
        clk_enable(camera_clk); /* start VIO_CKO */
 
        /* use VIO_RST to take camera out of reset */