1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/broadcom/Kconfig
Laurent Pinchart 8771b7f31b media: bcm2835-unicam: Depend on COMMON_CLK
The bcm2835-unicam driver calls the clk_set_min_rate() function, which
is declared but not implemented on platforms that don't provide
COMMON_CLK. This causes linkage failures with some configurations.

Fix it by depending on COMMON_CLK. This only slightly restricts
compilation testing, but not usage of the driver as all platforms on
which the hardware can be found provide COMMON_CLK.

Fixes: 392cd78d49 ("media: bcm2835-unicam: Add support for CCP2/CSI2 camera interface")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202405112243.2MLRT7li-lkp@intel.com/
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-05-14 08:09:05 +02:00

23 lines
851 B
Text

# SPDX-License-Identifier: GPL-2.0
config VIDEO_BCM2835_UNICAM
tristate "Broadcom BCM283x/BCM271x Unicam video capture driver"
depends on ARCH_BCM2835 || COMPILE_TEST
depends on COMMON_CLK && PM
depends on VIDEO_DEV
select MEDIA_CONTROLLER
select V4L2_FWNODE
select VIDEO_V4L2_SUBDEV_API
select VIDEOBUF2_DMA_CONTIG
help
Say Y here to enable support for the BCM283x/BCM271x CSI-2 receiver.
This is a V4L2 driver that controls the CSI-2 receiver directly,
independently from the VC4 firmware.
This driver is mutually exclusive with the use of bcm2835-camera. The
firmware will disable all access to the peripheral from within the
firmware if it finds a DT node using it, and bcm2835-camera will
therefore fail to probe.
To compile this driver as a module, choose M here. The module will be
called bcm2835-unicam.