media/bcm2835-unicam: Add support for configuration via MC API
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 15 Oct 2021 16:57:27 +0000 (17:57 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:13 +0000 (11:33 +0000)
commit35f21f9ffb013e08247e9bfa86e7cd97ab9e071d
treefd6e887da498427ca9168f7c5d19ccbb6f4929f2
parente4e414bc57f7913297cfeb8ec44c44b9960c277a
media/bcm2835-unicam: Add support for configuration via MC API

Adds Media Controller API support for more complex pipelines.
libcamera is about to switch to using this mechanism for configuring
sensors.

This can be enabled by either a module parameter, or device tree.

Various functions have been moved to group video-centric and
mc-centric functions together.

Based on a similar conversion done to ti-vpe.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
media: bcm2835-unicam: Fixup for 5.18 and new get_mbus_config struct

The number of active CSI2 data lanes has moved within the struct
v4l2_mbus_config used by the get_mbus_config API call.
Update the driver to match the changes in mainline.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/platform/bcm2835/bcm2835-unicam.c