Kconfig 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # SPDX-License-Identifier: GPL-2.0
  2. menuconfig BCM_VIDEOCORE
  3. tristate "Broadcom VideoCore support"
  4. depends on OF
  5. depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
  6. default y
  7. help
  8. Support for Broadcom VideoCore services including
  9. the BCM2835 family of products which is used
  10. by the Raspberry PI.
  11. if BCM_VIDEOCORE
  12. config BCM2835_VCHIQ
  13. tristate "BCM2835 VCHIQ"
  14. depends on HAS_DMA
  15. imply VCHIQ_CDEV
  16. help
  17. Broadcom BCM2835 and similar SoCs have a VPU called VideoCore.
  18. This config enables the VCHIQ driver, which implements a
  19. messaging interface between the kernel and the firmware running
  20. on VideoCore. Other drivers use this interface to communicate to
  21. the VPU. More specifically, the VCHIQ driver is used by
  22. audio/video and camera drivers as well as for implementing MMAL
  23. API, which is in turn used by several multimedia services on the
  24. BCM2835 family of SoCs.
  25. Defaults to Y when the Broadcom Videocore services are included
  26. in the build, N otherwise.
  27. if BCM2835_VCHIQ
  28. config VCHIQ_CDEV
  29. bool "VCHIQ Character Driver"
  30. help
  31. Enable the creation of VCHIQ character driver. The cdev exposes
  32. ioctls used by userspace libraries and testing tools to interact
  33. with VideoCore, via the VCHIQ core driver (Check BCM2835_VCHIQ
  34. for more info).
  35. This can be set to 'N' if the VideoCore communication is not
  36. needed by userspace but only by other kernel modules
  37. (like bcm2835-audio).
  38. If not sure, set this to 'Y'.
  39. endif
  40. source "drivers/platform/raspberrypi/vchiq-mmal/Kconfig"
  41. endif