Kconfig 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config 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_HDMI_STATE_HELPER
  14. select DRM_DISPLAY_HELPER
  15. select DRM_KMS_HELPER
  16. select DRM_GEM_DMA_HELPER
  17. select DRM_PANEL_BRIDGE
  18. select SND_PCM
  19. select SND_PCM_ELD
  20. select SND_SOC_GENERIC_DMAENGINE_PCM
  21. select SND_SOC_HDMI_CODEC
  22. select DRM_MIPI_DSI
  23. help
  24. Choose this option if you have a system that has a Broadcom
  25. VC4 GPU, such as the Raspberry Pi or other BCM2708/BCM2835.
  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. config 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. config DRM_VC4_KUNIT_TEST
  37. tristate "KUnit tests for VC4" if !KUNIT_ALL_TESTS
  38. depends on DRM_VC4 && KUNIT
  39. select DRM_KUNIT_TEST_HELPERS
  40. default KUNIT_ALL_TESTS
  41. help
  42. This builds unit tests for the VC4 DRM/KMS driver. This option is
  43. not useful for distributions or general kernels, but only for kernel
  44. developers working on the VC4 driver.
  45. For more information on KUnit and unit tests in general,
  46. please refer to the KUnit documentation in
  47. Documentation/dev-tools/kunit/.
  48. If in doubt, say "N".