aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2015-10-26 08:03:43 -0400
committerInki Dae <inki.dae@samsung.com>2015-11-02 21:46:38 -0500
commitdba6c5280d62cef3df9c67cafaddf1c7df0d5889 (patch)
treedf94c878907cb60f93278d97ee3c2bac047176b4
parent3cb02b4a9e3e4f71ca7fefaff96ae47dd42a0adc (diff)
drm/exynos: abstract out common dependency
All options depends on DRM_EXYNOS so it can be moved to enclosing if clause. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/Kconfig27
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/gpu/drm/exynos/Kconfig b/drivers/gpu/drm/exynos/Kconfig
index 1d7d9b843354..b0107f001937 100644
--- a/drivers/gpu/drm/exynos/Kconfig
+++ b/drivers/gpu/drm/exynos/Kconfig
@@ -11,14 +11,16 @@ config DRM_EXYNOS
11 Choose this option if you have a Samsung SoC EXYNOS chipset. 11 Choose this option if you have a Samsung SoC EXYNOS chipset.
12 If M is selected the module will be called exynosdrm. 12 If M is selected the module will be called exynosdrm.
13 13
14if DRM_EXYNOS
15
14config DRM_EXYNOS_IOMMU 16config DRM_EXYNOS_IOMMU
15 bool 17 bool
16 depends on DRM_EXYNOS && EXYNOS_IOMMU && ARM_DMA_USE_IOMMU 18 depends on EXYNOS_IOMMU && ARM_DMA_USE_IOMMU
17 default y 19 default y
18 20
19config DRM_EXYNOS_FIMD 21config DRM_EXYNOS_FIMD
20 bool "Exynos DRM FIMD" 22 bool "Exynos DRM FIMD"
21 depends on DRM_EXYNOS && !FB_S3C 23 depends on !FB_S3C
22 select FB_MODE_HELPERS 24 select FB_MODE_HELPERS
23 select MFD_SYSCON 25 select MFD_SYSCON
24 help 26 help
@@ -26,20 +28,19 @@ config DRM_EXYNOS_FIMD
26 28
27config DRM_EXYNOS5433_DECON 29config DRM_EXYNOS5433_DECON
28 bool "Exynos5433 DRM DECON" 30 bool "Exynos5433 DRM DECON"
29 depends on DRM_EXYNOS
30 help 31 help
31 Choose this option if you want to use Exynos5433 DECON for DRM. 32 Choose this option if you want to use Exynos5433 DECON for DRM.
32 33
33config DRM_EXYNOS7_DECON 34config DRM_EXYNOS7_DECON
34 bool "Exynos7 DRM DECON" 35 bool "Exynos7 DRM DECON"
35 depends on DRM_EXYNOS && !FB_S3C 36 depends on !FB_S3C
36 select FB_MODE_HELPERS 37 select FB_MODE_HELPERS
37 help 38 help
38 Choose this option if you want to use Exynos DECON for DRM. 39 Choose this option if you want to use Exynos DECON for DRM.
39 40
40config DRM_EXYNOS_DPI 41config DRM_EXYNOS_DPI
41 bool "EXYNOS DRM parallel output support" 42 bool "EXYNOS DRM parallel output support"
42 depends on DRM_EXYNOS && (DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON) 43 depends on DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON
43 select DRM_PANEL 44 select DRM_PANEL
44 default n 45 default n
45 help 46 help
@@ -47,7 +48,7 @@ config DRM_EXYNOS_DPI
47 48
48config DRM_EXYNOS_DSI 49config DRM_EXYNOS_DSI
49 bool "EXYNOS DRM MIPI-DSI driver support" 50 bool "EXYNOS DRM MIPI-DSI driver support"
50 depends on DRM_EXYNOS && (DRM_EXYNOS_FIMD || DRM_EXYNOS5433_DECON || DRM_EXYNOS7_DECON) 51 depends on DRM_EXYNOS_FIMD || DRM_EXYNOS5433_DECON || DRM_EXYNOS7_DECON
51 select DRM_MIPI_DSI 52 select DRM_MIPI_DSI
52 select DRM_PANEL 53 select DRM_PANEL
53 default n 54 default n
@@ -56,7 +57,7 @@ config DRM_EXYNOS_DSI
56 57
57config DRM_EXYNOS_DP 58config DRM_EXYNOS_DP
58 bool "EXYNOS DRM DP driver support" 59 bool "EXYNOS DRM DP driver support"
59 depends on DRM_EXYNOS && (DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON) 60 depends on DRM_EXYNOS_FIMD || DRM_EXYNOS7_DECON
60 default DRM_EXYNOS 61 default DRM_EXYNOS
61 select DRM_PANEL 62 select DRM_PANEL
62 help 63 help
@@ -64,32 +65,30 @@ config DRM_EXYNOS_DP
64 65
65config DRM_EXYNOS_MIXER 66config DRM_EXYNOS_MIXER
66 bool "Exynos DRM Mixer" 67 bool "Exynos DRM Mixer"
67 depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_TV 68 depends on !VIDEO_SAMSUNG_S5P_TV
68 help 69 help
69 Choose this option if you want to use Exynos Mixer for DRM. 70 Choose this option if you want to use Exynos Mixer for DRM.
70 71
71config DRM_EXYNOS_HDMI 72config DRM_EXYNOS_HDMI
72 bool "Exynos DRM HDMI" 73 bool "Exynos DRM HDMI"
73 depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_TV && (DRM_EXYNOS_MIXER || DRM_EXYNOS5433_DECON) 74 depends on !VIDEO_SAMSUNG_S5P_TV && (DRM_EXYNOS_MIXER || DRM_EXYNOS5433_DECON)
74 help 75 help
75 Choose this option if you want to use Exynos HDMI for DRM. 76 Choose this option if you want to use Exynos HDMI for DRM.
76 77
77config DRM_EXYNOS_VIDI 78config DRM_EXYNOS_VIDI
78 bool "Exynos DRM Virtual Display" 79 bool "Exynos DRM Virtual Display"
79 depends on DRM_EXYNOS
80 help 80 help
81 Choose this option if you want to use Exynos VIDI for DRM. 81 Choose this option if you want to use Exynos VIDI for DRM.
82 82
83config DRM_EXYNOS_G2D 83config DRM_EXYNOS_G2D
84 bool "Exynos DRM G2D" 84 bool "Exynos DRM G2D"
85 depends on DRM_EXYNOS && !VIDEO_SAMSUNG_S5P_G2D 85 depends on !VIDEO_SAMSUNG_S5P_G2D
86 select FRAME_VECTOR 86 select FRAME_VECTOR
87 help 87 help
88 Choose this option if you want to use Exynos G2D for DRM. 88 Choose this option if you want to use Exynos G2D for DRM.
89 89
90config DRM_EXYNOS_IPP 90config DRM_EXYNOS_IPP
91 bool "Exynos DRM IPP" 91 bool "Exynos DRM IPP"
92 depends on DRM_EXYNOS
93 help 92 help
94 Choose this option if you want to use IPP feature for DRM. 93 Choose this option if you want to use IPP feature for DRM.
95 94
@@ -113,6 +112,8 @@ config DRM_EXYNOS_GSC
113 112
114config DRM_EXYNOS_MIC 113config DRM_EXYNOS_MIC
115 bool "Exynos DRM MIC" 114 bool "Exynos DRM MIC"
116 depends on (DRM_EXYNOS && DRM_EXYNOS5433_DECON) 115 depends on DRM_EXYNOS5433_DECON
117 help 116 help
118 Choose this option if you want to use Exynos MIC for DRM. 117 Choose this option if you want to use Exynos MIC for DRM.
118
119endif