xref: /openbmc/linux/drivers/gpu/drm/vc4/Kconfig (revision ed5c2f5f)
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	select DRM_DISPLAY_HDMI_HELPER
12	select DRM_DISPLAY_HELPER
13	select DRM_KMS_HELPER
14	select DRM_GEM_CMA_HELPER
15	select DRM_PANEL_BRIDGE
16	select SND_PCM
17	select SND_PCM_ELD
18	select SND_SOC_GENERIC_DMAENGINE_PCM
19	select SND_SOC_HDMI_CODEC
20	select DRM_MIPI_DSI
21	help
22	  Choose this option if you have a system that has a Broadcom
23	  VC4 GPU, such as the Raspberry Pi or other BCM2708/BCM2835.
24
25	  This driver requires that "avoid_warnings=2" be present in
26	  the config.txt for the firmware, to keep it from smashing
27	  our display setup.
28
29config DRM_VC4_HDMI_CEC
30	bool "Broadcom VC4 HDMI CEC Support"
31	depends on DRM_VC4
32	select CEC_CORE
33	help
34	  Choose this option if you have a Broadcom VC4 GPU
35	  and want to use CEC.
36