Skip to contentSkip to conversation

sh: use 10MHz VIO_CLK for ov772x on Migo-R

PATCH Applied Magnus Damm 2 participants 2 messages Oct 22, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: use 10MHz VIO_CLK for ov772x on Migo-R

From: Magnus Damm <[email protected]>

Use a slower VIO_CKO clock frequency for the ov772x on Migo-R. This improves the camera picture quality on Panel Board V2.1.

---

 arch/sh/boards/mach-migor/setup.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
arch/sh/boards/mach-migor/setup.c +4 -1
@@ -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 */
Applied
#1 lore raw
Quoted 4 lines · Magnus Damm

Use a slower VIO_CKO clock frequency for the ov772x on Migo-R. This improves the camera picture quality on Panel Board V2.1.

Quoted 6 lines · Magnus Damm

This patch improves the support for gpio pins that are hard wired to either input or output and lack control register association. A special force enum id is used to allow use without control register but still mark the gpio pin as input or output.

Applied, thanks.