# SPDX-License-Identifier: GPL-2.0-only
config VIDEO_SUN6I_MIPI_CSI2
	tristate "Allwinner A31 MIPI CSI-2 Controller Driver"
	depends on V4L_PLATFORM_DRIVERS && VIDEO_DEV
	depends on ARCH_SUNXI || COMPILE_TEST
	depends on PM && COMMON_CLK && RESET_CONTROLLER
	depends on PHY_SUN6I_MIPI_DPHY
	select MEDIA_CONTROLLER
	select VIDEO_V4L2_SUBDEV_API
	select V4L2_FWNODE
	select GENERIC_PHY_MIPI_DPHY
	select REGMAP_MMIO
	help
	   Support for the Allwinner A31 MIPI CSI-2 controller, also found on
	   other platforms such as the V3/V3s.