1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_VC4
3	tristate "Broadcom VC4 Graphics"
4	depends on ARCH_BCM || ARCH_BCM2835 || COMPILE_TEST
5	# Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only
6	# happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE.
7	depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
8	depends on DRM
9	depends on SND && SND_SOC
10	depends on COMMON_CLK
11	depends on PM
12	select DRM_DISPLAY_HDMI_HELPER
13	select DRM_DISPLAY_HELPER
14	select DRM_KMS_HELPER
15	select DRM_GEM_DMA_HELPER
16	select DRM_PANEL_BRIDGE
17	select SND_PCM
18	select SND_PCM_ELD
19	select SND_SOC_GENERIC_DMAENGINE_PCM
20	select SND_SOC_HDMI_CODEC
21	select DRM_MIPI_DSI
22	help
23	  Choose this option if you have a system that has a Broadcom
24	  VC4 GPU, such as the Raspberry Pi or other BCM2708/BCM2835.
25
26	  This driver requires that "avoid_warnings=2" be present in
27	  the config.txt for the firmware, to keep it from smashing
28	  our display setup.
29
30config DRM_VC4_HDMI_CEC
31	bool "Broadcom VC4 HDMI CEC Support"
32	depends on DRM_VC4
33	select CEC_CORE
34	help
35	  Choose this option if you have a Broadcom VC4 GPU
36	  and want to use CEC.
37