MLK-15048-2: video: Add proper config dependencies

Currently, if setting MXC_IPU to 'no' leads to a chain of build crashes.
This happens due to lack of proper config dependencies.

This patch fixes the following interdependencies:
	- framebuffer sync panel (FB_MXC_SYNC_PANEL)
		- should depend on IPU v3 (MXC_IPU_V3)
	- ADV7535 MIPI-to-HDMI converter (FB_MXC_ADV7535)
		- should depend on MIPI DSI (FB_MXC_MIPI_DSI)
	- framebuffer MXS LCD controller (FB_MXS)
		- should depend on framebuffer sync panel (FB_MXC_SYNC_PANEL)
	- camera v4l drivers + TV decoders that use IOCTL interface
	  (MXC_CAMERA_OV5640, MXC_CAMERA_OV5642, MXC_CAMERA_OV5640_MIPI,
	  MXC_TVIN_ADV7180)
		- should depend on V4L2 internal IOCTL interface
		  (VIDEO_V4L2_MXC_INT_DEVICE)

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
This commit is contained in:
Cristina Ciocan
2017-06-22 17:41:37 +03:00
committed by Leonard Crestez
parent 6d4ed42fcd
commit fe29050138
3 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,7 @@ config VIDEO_MXC_IPU_CAMERA
config MXC_CAMERA_OV5640
tristate "OmniVision ov5640 camera support"
depends on !VIDEO_MXC_EMMA_CAMERA && I2C
depends on VIDEO_V4L2_MXC_INT_DEVICE
---help---
If you plan to use the ov5640 Camera with your MXC system, say Y here.
@ -43,12 +44,14 @@ config MXC_CAMERA_OV5640_V2
config MXC_CAMERA_OV5642
tristate "OmniVision ov5642 camera support"
depends on !VIDEO_MXC_EMMA_CAMERA && I2C
depends on VIDEO_V4L2_MXC_INT_DEVICE
---help---
If you plan to use the ov5642 Camera with your MXC system, say Y here.
config MXC_CAMERA_OV5640_MIPI
tristate "OmniVision ov5640 camera support using mipi"
depends on !VIDEO_MXC_EMMA_CAMERA && I2C && MXC_MIPI_CSI2
depends on VIDEO_V4L2_MXC_INT_DEVICE
---help---
If you plan to use the ov5640 Camera with mipi interface in your MXC system, say Y here.
@ -67,6 +70,7 @@ config MXC_CAMERA_OV5647_MIPI
config MXC_TVIN_ADV7180
tristate "Analog Device adv7180 TV Decoder Input support"
depends on !VIDEO_MXC_EMMA_CAMERA && I2C
depends on VIDEO_V4L2_MXC_INT_DEVICE
---help---
If you plan to use the adv7180 video decoder with your MXC system, say Y here.

View File

@ -2401,6 +2401,7 @@ config FB_JZ4740
config FB_MXS
tristate "MXS LCD framebuffer support"
depends on FB && (ARCH_MXS || ARCH_MXC)
depends on FB_MXC_SYNC_PANEL
select FB_CFB_FILLRECT
select FB_CFB_COPYAREA
select FB_CFB_IMAGEBLIT

View File

@ -16,6 +16,7 @@ config FB_MXC
config FB_MXC_SYNC_PANEL
depends on FB_MXC
depends on MXC_IPU_V3
tristate "Synchronous Panel Framebuffer"
config FB_MXC_OVERLAY
@ -88,6 +89,7 @@ config FB_MXC_DCIC
config FB_MXC_ADV7535
tristate "ADI ADV7535 support"
depends on I2C
depends on FB_MXC_MIPI_DSI
help
Driver support for the ADV7535 DSI-to-HDMI module