Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dba6c528 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Inki Dae
Browse files

drm/exynos: abstract out common dependency



All options depends on DRM_EXYNOS so it can be moved to enclosing if clause.

Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 3cb02b4a
Loading
Loading
Loading
Loading
+14 −13
Original line number Original line Diff line number Diff line
@@ -11,14 +11,16 @@ config DRM_EXYNOS
	  Choose this option if you have a Samsung SoC EXYNOS chipset.
	  Choose this option if you have a Samsung SoC EXYNOS chipset.
	  If M is selected the module will be called exynosdrm.
	  If M is selected the module will be called exynosdrm.


if DRM_EXYNOS

config DRM_EXYNOS_IOMMU
config DRM_EXYNOS_IOMMU
	bool
	bool
	depends on DRM_EXYNOS && EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
	depends on EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
	default y
	default y


config DRM_EXYNOS_FIMD
config DRM_EXYNOS_FIMD
	bool "Exynos DRM FIMD"
	bool "Exynos DRM FIMD"
	depends on DRM_EXYNOS && !FB_S3C
	depends on !FB_S3C
	select FB_MODE_HELPERS
	select FB_MODE_HELPERS
	select MFD_SYSCON
	select MFD_SYSCON
	help
	help
@@ -26,20 +28,19 @@ config DRM_EXYNOS_FIMD


config DRM_EXYNOS5433_DECON
config DRM_EXYNOS5433_DECON
	bool "Exynos5433 DRM DECON"
	bool "Exynos5433 DRM DECON"
	depends on DRM_EXYNOS
	help
	help
	  Choose this option if you want to use Exynos5433 DECON for DRM.
	  Choose this option if you want to use Exynos5433 DECON for DRM.


config DRM_EXYNOS7_DECON
config DRM_EXYNOS7_DECON
	bool "Exynos7 DRM DECON"
	bool "Exynos7 DRM DECON"
	depends on DRM_EXYNOS && !FB_S3C
	depends on !FB_S3C
	select FB_MODE_HELPERS
	select FB_MODE_HELPERS
	help
	help
	  Choose this option if you want to use Exynos DECON for DRM.
	  Choose this option if you want to use Exynos DECON for DRM.


config DRM_EXYNOS_DPI
config DRM_EXYNOS_DPI
	bool "EXYNOS DRM parallel output support"
	bool "EXYNOS DRM parallel output support"
	depends on DRM_EXYNOS && (DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON)
	depends on DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON
	select DRM_PANEL
	select DRM_PANEL
	default n
	default n
	help
	help
@@ -47,7 +48,7 @@ config DRM_EXYNOS_DPI


config DRM_EXYNOS_DSI
config DRM_EXYNOS_DSI
	bool "EXYNOS DRM MIPI-DSI driver support"
	bool "EXYNOS DRM MIPI-DSI driver support"
	depends on DRM_EXYNOS && (DRM_EXYNOS_FIMD || DRM_EXYNOS5433_DECON || DRM_EXYNOS7_DECON)
	depends on DRM_EXYNOS_FIMD || DRM_EXYNOS5433_DECON || DRM_EXYNOS7_DECON
	select DRM_MIPI_DSI
	select DRM_MIPI_DSI
	select DRM_PANEL
	select DRM_PANEL
	default n
	default n
@@ -56,7 +57,7 @@ config DRM_EXYNOS_DSI


config DRM_EXYNOS_DP
config DRM_EXYNOS_DP
	bool "EXYNOS DRM DP driver support"
	bool "EXYNOS DRM DP driver support"
	depends on DRM_EXYNOS && (DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON)
	depends on DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON
	default DRM_EXYNOS
	default DRM_EXYNOS
	select DRM_PANEL
	select DRM_PANEL
	help
	help
@@ -64,32 +65,30 @@ config DRM_EXYNOS_DP


config DRM_EXYNOS_MIXER
config DRM_EXYNOS_MIXER
	bool "Exynos DRM Mixer"
	bool "Exynos DRM Mixer"
	depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_TV
	depends on !VIDEO_SAMSUNG_S5P_TV
	help
	help
	  Choose this option if you want to use Exynos Mixer for DRM.
	  Choose this option if you want to use Exynos Mixer for DRM.


config DRM_EXYNOS_HDMI
config DRM_EXYNOS_HDMI
	bool "Exynos DRM HDMI"
	bool "Exynos DRM HDMI"
	depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_TV && (DRM_EXYNOS_MIXER || DRM_EXYNOS5433_DECON)
	depends on !VIDEO_SAMSUNG_S5P_TV && (DRM_EXYNOS_MIXER || DRM_EXYNOS5433_DECON)
	help
	help
	  Choose this option if you want to use Exynos HDMI for DRM.
	  Choose this option if you want to use Exynos HDMI for DRM.


config DRM_EXYNOS_VIDI
config DRM_EXYNOS_VIDI
	bool "Exynos DRM Virtual Display"
	bool "Exynos DRM Virtual Display"
	depends on DRM_EXYNOS
	help
	help
	  Choose this option if you want to use Exynos VIDI for DRM.
	  Choose this option if you want to use Exynos VIDI for DRM.


config DRM_EXYNOS_G2D
config DRM_EXYNOS_G2D
	bool "Exynos DRM G2D"
	bool "Exynos DRM G2D"
	depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_G2D
	depends on !VIDEO_SAMSUNG_S5P_G2D
	select FRAME_VECTOR
	select FRAME_VECTOR
	help
	help
	  Choose this option if you want to use Exynos G2D for DRM.
	  Choose this option if you want to use Exynos G2D for DRM.


config DRM_EXYNOS_IPP
config DRM_EXYNOS_IPP
	bool "Exynos DRM IPP"
	bool "Exynos DRM IPP"
	depends on DRM_EXYNOS
	help
	help
	  Choose this option if you want to use IPP feature for DRM.
	  Choose this option if you want to use IPP feature for DRM.


@@ -113,6 +112,8 @@ config DRM_EXYNOS_GSC


config DRM_EXYNOS_MIC
config DRM_EXYNOS_MIC
	bool "Exynos DRM MIC"
	bool "Exynos DRM MIC"
	depends on (DRM_EXYNOS && DRM_EXYNOS5433_DECON)
	depends on DRM_EXYNOS5433_DECON
	help
	help
	  Choose this option if you want to use Exynos MIC for DRM.
	  Choose this option if you want to use Exynos MIC for DRM.

endif