media: i2c: imx219: Support four-lane operation
authorAdam Ford <aford173@gmail.com>
Tue, 20 Dec 2022 12:07:54 +0000 (13:07 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 3 Feb 2023 13:55:47 +0000 (14:55 +0100)
commitceddfd4493b3341bc69b278bbecfb19ea0773a69
tree6d4cc6faaf3705eaa49e7ec0686cf9160c17326e
parent8508455961d5a9e8907bcfd8dcd58f19d9b6ce47
media: i2c: imx219: Support four-lane operation

The imx219 camera is capable of either two-lane or four-lane
operation.  When operating in four-lane, both the pixel rate and
link frequency change. Regardless of the mode, however, both
frequencies remain fixed.

Helper functions are needed to read and set pixel and link frequencies
which also reduces the number of fixed registers in the table of modes.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/imx219.c