Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22ee3ba6 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt
Browse files

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: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent ed0b2ef5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 */