xref: /linux/drivers/gpu/drm/vc4/Kconfig (revision b47a72f30768ffe76e105b3e91ad7022003e8504)
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
54dee8eebSZheng Bin	# Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only
64dee8eebSZheng Bin	# happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE.
74dee8eebSZheng 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
11f1bc386bSMaxime Ripard	depends on PM
124fc8cb47SThomas Zimmermann	select DRM_DISPLAY_HDMI_HELPER
13*b47a72f3SMaxime Ripard	select DRM_DISPLAY_HDMI_STATE_HELPER
144fc8cb47SThomas Zimmermann	select DRM_DISPLAY_HELPER
15c8b75bcaSEric Anholt	select DRM_KMS_HELPER
164a83c26aSDanilo Krummrich	select DRM_GEM_DMA_HELPER
17656fa22fSEric Anholt	select DRM_PANEL_BRIDGE
18bb7d7856SEric Anholt	select SND_PCM
19bb7d7856SEric Anholt	select SND_PCM_ELD
20bb7d7856SEric Anholt	select SND_SOC_GENERIC_DMAENGINE_PCM
2191e99e11SMaxime Ripard	select SND_SOC_HDMI_CODEC
224078f575SEric Anholt	select DRM_MIPI_DSI
23c8b75bcaSEric Anholt	help
24c8b75bcaSEric Anholt	  Choose this option if you have a system that has a Broadcom
25c8b75bcaSEric Anholt	  VC4 GPU, such as the Raspberry Pi or other BCM2708/BCM2835.
26c8b75bcaSEric Anholt
27c8b75bcaSEric Anholt	  This driver requires that "avoid_warnings=2" be present in
28c8b75bcaSEric Anholt	  the config.txt for the firmware, to keep it from smashing
29c8b75bcaSEric Anholt	  our display setup.
3015b4511aSHans Verkuil
3115b4511aSHans Verkuilconfig DRM_VC4_HDMI_CEC
3215b4511aSHans Verkuil	bool "Broadcom VC4 HDMI CEC Support"
3315b4511aSHans Verkuil	depends on DRM_VC4
3415b4511aSHans Verkuil	select CEC_CORE
3515b4511aSHans Verkuil	help
3615b4511aSHans Verkuil	  Choose this option if you have a Broadcom VC4 GPU
3715b4511aSHans Verkuil	  and want to use CEC.
38f759f5b5SMaxime Ripard
39f759f5b5SMaxime Ripardconfig DRM_VC4_KUNIT_TEST
40352683eaSArnd Bergmann	tristate "KUnit tests for VC4" if !KUNIT_ALL_TESTS
41f759f5b5SMaxime Ripard	depends on DRM_VC4 && KUNIT
42f759f5b5SMaxime Ripard	select DRM_KUNIT_TEST_HELPERS
43f759f5b5SMaxime Ripard	default KUNIT_ALL_TESTS
44f759f5b5SMaxime Ripard	help
45f759f5b5SMaxime Ripard	  This builds unit tests for the VC4 DRM/KMS driver. This option is
46f759f5b5SMaxime Ripard	  not useful for distributions or general kernels, but only for kernel
47f759f5b5SMaxime Ripard	  developers working on the VC4 driver.
48f759f5b5SMaxime Ripard
49f759f5b5SMaxime Ripard	  For more information on KUnit and unit tests in general,
50f759f5b5SMaxime Ripard	  please refer to the KUnit documentation in
51f759f5b5SMaxime Ripard	  Documentation/dev-tools/kunit/.
52f759f5b5SMaxime Ripard
53f759f5b5SMaxime Ripard	  If in doubt, say "N".
54