]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov5640: Update pixel_rate and link_freq
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 13 May 2022 14:13:54 +0000 (15:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 14:18:11 +0000 (15:18 +0100)
commit80f18f9a92757644a3276398dec30748c7bc58f0
treeaee493b1b85b790757adbd7d387b4384bf49cb72
parent9900145c77e4a50b93c1439c8f3736a4544df492
media: ov5640: Update pixel_rate and link_freq

After having set a new format re-calculate the pixel_rate and link_freq
control values and update them when in MIPI mode.

Take into account the limitation of the link frequency having to be
strictly smaller than 1GHz when computing the desired link_freq, and
adjust the resulting pixel_rate acounting for the clock tree
configuration.

[Adjust link_freq calculation]

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5640.c