media: ov5640: Add pixel rate to modes
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 13 May 2022 14:13:49 +0000 (15:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 14:15:53 +0000 (15:15 +0100)
commit22845bf2dfb1ca7dcffaf25121f9e70521b7ee77
tree3bcc52621cc1534e83043faede036d141460be5f
parent887e6ee3de9f0a14017c73c4bcfe7e5864441ee9
media: ov5640: Add pixel rate to modes

Add to each mode supported by the sensor the ideal pixel rate, as
defined by Table 2.1 in the chip manual.

The ideal pixel rate will be used to compute the MIPI CSI-2 clock tree.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Adam Ford <aford173@gmail.com> #imx8mm-beacon-kit
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5640.c