xref: /linux/drivers/gpu/drm/vc4/Kconfig (revision 4dee8eebcfc1a99d7550855ec40720503df4842b)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2c8b75bcaSEric Anholtconfig DRM_VC4
3c8b75bcaSEric Anholt	tristate "Broadcom VC4 Graphics"
4b70ee236SEric Anholt	depends on ARCH_BCM || ARCH_BCM2835 || COMPILE_TEST
5*4dee8eebSZheng Bin	# Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only
6*4dee8eebSZheng Bin	# happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE.
7*4dee8eebSZheng Bin	depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
8e1c7e324SChristoph Hellwig	depends on DRM
9bb7d7856SEric Anholt	depends on SND && SND_SOC
104078f575SEric Anholt	depends on COMMON_CLK
11c8b75bcaSEric Anholt	select DRM_KMS_HELPER
122565df91SGuenter Roeck	select DRM_GEM_CMA_HELPER
13656fa22fSEric Anholt	select DRM_PANEL_BRIDGE
14bb7d7856SEric Anholt	select SND_PCM
15bb7d7856SEric Anholt	select SND_PCM_ELD
16bb7d7856SEric Anholt	select SND_SOC_GENERIC_DMAENGINE_PCM
1791e99e11SMaxime Ripard	select SND_SOC_HDMI_CODEC
184078f575SEric Anholt	select DRM_MIPI_DSI
19c8b75bcaSEric Anholt	help
20c8b75bcaSEric Anholt	  Choose this option if you have a system that has a Broadcom
21c8b75bcaSEric Anholt	  VC4 GPU, such as the Raspberry Pi or other BCM2708/BCM2835.
22c8b75bcaSEric Anholt
23c8b75bcaSEric Anholt	  This driver requires that "avoid_warnings=2" be present in
24c8b75bcaSEric Anholt	  the config.txt for the firmware, to keep it from smashing
25c8b75bcaSEric Anholt	  our display setup.
2615b4511aSHans Verkuil
2715b4511aSHans Verkuilconfig DRM_VC4_HDMI_CEC
2815b4511aSHans Verkuil	bool "Broadcom VC4 HDMI CEC Support"
2915b4511aSHans Verkuil	depends on DRM_VC4
3015b4511aSHans Verkuil	select CEC_CORE
3115b4511aSHans Verkuil	help
3215b4511aSHans Verkuil	  Choose this option if you have a Broadcom VC4 GPU
3315b4511aSHans Verkuil	  and want to use CEC.
34