From: Magnus Damm Date: Wed, 22 Oct 2008 09:25:39 +0000 (+0900) Subject: sh: use 10MHz VIO_CLK for ov772x on Migo-R X-Git-Tag: v2.6.28-rc1~27^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=22ee3ba611e0aa73228ae64fa68d89c52367702a;p=linux-2.6-omap-h63xx.git sh: use 10MHz VIO_CLK for ov772x on Migo-R 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 Signed-off-by: Paul Mundt --- diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index b4471931b87..97528198029 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c @@ -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 */