hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/init/Kconfig.gki
....@@ -1,10 +1,14 @@
11 config GKI_HIDDEN_DRM_CONFIGS
22 bool "Hidden DRM configs needed for GKI"
33 select DRM_KMS_HELPER if (HAS_IOMEM && DRM)
4
+ select DRM_GEM_SHMEM_HELPER if (DRM)
45 select DRM_GEM_CMA_HELPER
6
+ select DRM_KMS_CMA_HELPER
57 select DRM_MIPI_DSI
68 select DRM_TTM if (HAS_IOMEM && DRM)
79 select VIDEOMODE_HELPERS
10
+ select WANT_DEV_COREDUMP
11
+ select INTERVAL_TREE
812 help
913 Dummy config option used to enable hidden DRM configs.
1014 These are normally selected implicitly when including a
....@@ -13,6 +17,7 @@
1317 config GKI_HIDDEN_REGMAP_CONFIGS
1418 bool "Hidden Regmap configs needed for GKI"
1519 select REGMAP_IRQ
20
+ select REGMAP_MMIO
1621 help
1722 Dummy config option used to enable hidden regmap configs.
1823 These are normally selected implicitly when a module
....@@ -32,6 +37,7 @@
3237 select SND_PCM_ELD
3338 select SND_JACK
3439 select SND_JACK_INPUT_DEV
40
+ select SND_INTEL_NHLT if (ACPI)
3541 help
3642 Dummy config option used to enable hidden SND configs.
3743 These are normally selected implicitly when a module
....@@ -40,9 +46,21 @@
4046 config GKI_HIDDEN_SND_SOC_CONFIGS
4147 bool "Hidden SND_SOC configs needed for GKI"
4248 select SND_SOC_GENERIC_DMAENGINE_PCM if (SND_SOC && SND)
49
+ select SND_PCM_IEC958
4350 select SND_SOC_COMPRESS if (SND_SOC && SND)
51
+ select SND_SOC_TOPOLOGY if (SND_SOC && SND)
52
+ select DMADEVICES
53
+ select DMA_VIRTUAL_CHANNELS
4454 help
4555 Dummy config option used to enable hidden SND_SOC configs.
56
+ These are normally selected implicitly when a module
57
+ that relies on it is configured.
58
+
59
+config GKI_HIDDEN_MMC_CONFIGS
60
+ bool "Hidden MMC configs needed for GKI"
61
+ select MMC_SDHCI_IO_ACCESSORS if (MMC_SDHCI)
62
+ help
63
+ Dummy config option used to enable hidden MMC configs.
4664 These are normally selected implicitly when a module
4765 that relies on it is configured.
4866
....@@ -52,6 +70,34 @@
5270 select GPIO_PL061 if (HAS_IOMEM && ARM_AMBA && GPIOLIB)
5371 help
5472 Dummy config option used to enable hidden GPIO configs.
73
+ These are normally selected implicitly when a module
74
+ that relies on it is configured.
75
+
76
+config GKI_HIDDEN_QCOM_CONFIGS
77
+ bool "Hidden QCOM configs needed for GKI"
78
+ select QCOM_SMEM_STATE
79
+ select QCOM_GDSC if (ARCH_QCOM)
80
+ select IOMMU_IO_PGTABLE_LPAE if (ARCH_QCOM)
81
+
82
+ help
83
+ Dummy config option used to enable hidden QCOM configs.
84
+ These are normally selected implicitly when a module
85
+ that relies on it is configured.
86
+
87
+config GKI_HIDDEN_MEDIA_CONFIGS
88
+ bool "Hidden Media configs needed for GKI"
89
+ select VIDEOBUF2_CORE
90
+ select V4L2_MEM2MEM_DEV
91
+ select MEDIA_CONTROLLER
92
+ select MEDIA_CONTROLLER_REQUEST_API
93
+ select MEDIA_SUPPORT
94
+ select FRAME_VECTOR
95
+ select CEC_CORE
96
+ select CEC_NOTIFIER
97
+ select CEC_PIN
98
+ select VIDEOBUF2_DMA_CONTIG
99
+ help
100
+ Dummy config option used to enable hidden media configs.
55101 These are normally selected implicitly when a module
56102 that relies on it is configured.
57103
....@@ -82,23 +128,6 @@
82128 If you are not building a kernel to be used for a variety of
83129 out-of-kernel built wireless modules, say N here.
84130
85
-config GKI_HIDDEN_SOC_PM_CONFIGS
86
- bool "Hidden SOC Power Management configs for GKI"
87
- select PM_GENERIC_DOMAINS if PM
88
- help
89
- Dummy config option used to enable all the hidden SOC specific power
90
- management add-in modules.
91
-
92
-config GKI_HIDDEN_VIDEOBUF2_CONFIGS
93
- bool "Hidden v4l2 configs for GKI"
94
- select V4L2_MEM2MEM_DEV if VIDEO_V4L2
95
- select VIDEOBUF2_CORE if VIDEO_V4L2
96
- select VIDEOBUF2_V4L2 if VIDEO_V4L2
97
- select VIDEOBUF2_VMALLOC if VIDEO_V4L2
98
- select VIDEOBUF2_MEMOPS if VIDEO_V4L2
99
- help
100
- Dummy config option used to enable all the hidden v4l2 media module.
101
-
102131 config GKI_HIDDEN_USB_CONFIGS
103132 bool "Hiddel USB configurations needed for GKI"
104133 select USB_PHY
....@@ -120,9 +149,22 @@
120149 If you are not building a kernel to be used for a variety of SoCs and
121150 out-of-tree drivers, say N here.
122151
152
+config GKI_HIDDEN_RPMSG_CONFIGS
153
+ bool "Hidden RPMSG configuration needed for GKI"
154
+ select RPMSG
155
+ help
156
+ Dummy config option used to enable the hidden RPMSG config.
157
+ This configuration is usually only selected by another config
158
+ option or a combination of them.
159
+
160
+ If you are not building a kernel to be used for a variety of
161
+ out-of-kernel build RPMSG drivers, say N here.
162
+
123163 config GKI_HIDDEN_GPU_CONFIGS
124164 bool "Hidden GPU configuration needed for GKI"
125165 select TRACE_GPU_MEM
166
+ select MMU_NOTIFIER
167
+ select HMM_MIRROR
126168 help
127169 Dummy config option used to enable the hidden GPU config.
128170 These are normally selected implicitly when a module
....@@ -131,10 +173,58 @@
131173 config GKI_HIDDEN_IRQ_CONFIGS
132174 bool "Hidden IRQ configuration needed for GKI"
133175 select GENERIC_IRQ_CHIP
176
+ select IRQ_DOMAIN_HIERARCHY
177
+ select IRQ_FASTEOI_HIERARCHY_HANDLERS
134178 help
135179 Dummy config option used to enable GENERIC_IRQ_CHIP hidden
136180 config, required by various SoC platforms. This is usually
137181 selected by ARCH_*.
182
+
183
+config GKI_HIDDEN_HYPERVISOR_CONFIGS
184
+ bool "Hidden hypervisor configuration needed for GKI"
185
+ select SYS_HYPERVISOR
186
+ help
187
+ Dummy config option used to enable the SYS_HYPERVISOR hidden
188
+ config, required by various SoC platforms. This is usually
189
+ selected by XEN or S390.
190
+
191
+config GKI_HIDDEN_NET_CONFIGS
192
+ bool "Hidden networking configuration needed for GKI"
193
+ select PAGE_POOL
194
+ select NET_PTP_CLASSIFY
195
+ help
196
+ Dummy config option used to enable the networking hidden
197
+ config, required by various SoC platforms.
198
+
199
+config GKI_HIDDEN_PHY_CONFIGS
200
+ bool "Hidden PHY configuration needed for GKI"
201
+ select GENERIC_PHY_MIPI_DPHY
202
+ help
203
+ Dummy config option used to enable the hidden PHY configs,
204
+ required by various SoC platforms.
205
+
206
+config GKI_HIDDEN_MM_CONFIGS
207
+ bool "Hidden MM configuration needed for GKI"
208
+ select PAGE_REPORTING
209
+ select BALLOON_COMPACTION
210
+ select MEMORY_BALLOON
211
+ help
212
+ Dummy config option used to enable hidden MM configs,
213
+ currently required for VIRTIO_BALLOON
214
+
215
+config GKI_HIDDEN_DMA_CONFIGS
216
+ bool "Hidden DMA configuration needed for GKI"
217
+ select ASYNC_TX_ENABLE_CHANNEL_SWITCH
218
+ help
219
+ Dummy config option used to enable the hidden DMA configs,
220
+ required by various SoC platforms.
221
+
222
+config GKI_HIDDEN_ETHERNET_CONFIGS
223
+ bool "Hidden Ethernet configuration needed for GKI"
224
+ select PHYLINK
225
+ help
226
+ Dummy config option used to enable the hidden Ethernet PHYLINK
227
+ configs, required by various ethernet devices.
138228
139229 # Atrocities needed for
140230 # a) building GKI modules in separate tree, or
....@@ -150,15 +240,23 @@
150240 select GKI_HIDDEN_REGMAP_CONFIGS
151241 select GKI_HIDDEN_SND_CONFIGS
152242 select GKI_HIDDEN_SND_SOC_CONFIGS
243
+ select GKI_HIDDEN_MMC_CONFIGS
153244 select GKI_HIDDEN_GPIO_CONFIGS
245
+ select GKI_HIDDEN_QCOM_CONFIGS
154246 select GKI_LEGACY_WEXT_ALLCONFIG
247
+ select GKI_HIDDEN_MEDIA_CONFIGS
155248 select GKI_HIDDEN_VIRTUAL_CONFIGS
156
- select GKI_HIDDEN_SOC_PM_CONFIGS
157
- select GKI_HIDDEN_VIDEOBUF2_CONFIGS
158249 select GKI_HIDDEN_USB_CONFIGS
159250 select GKI_HIDDEN_SOC_BUS_CONFIGS
251
+ select GKI_HIDDEN_RPMSG_CONFIGS
160252 select GKI_HIDDEN_GPU_CONFIGS
161253 select GKI_HIDDEN_IRQ_CONFIGS
254
+ select GKI_HIDDEN_HYPERVISOR_CONFIGS
255
+ select GKI_HIDDEN_NET_CONFIGS
256
+ select GKI_HIDDEN_PHY_CONFIGS
257
+ select GKI_HIDDEN_MM_CONFIGS
258
+ select GKI_HIDDEN_DMA_CONFIGS
259
+ select GKI_HIDDEN_ETHERNET_CONFIGS
162260 help
163261 Dummy config option used to enable core functionality used by
164262 modules that may not be selectable in this config.