1# SPDX-License-Identifier: GPL-2.0
2menuconfig 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
12if BCM_VIDEOCORE
13
14config BCM2835_VCHIQ
15	tristate "BCM2835 VCHIQ"
16	imply VCHIQ_CDEV
17	help
18		Broadcom BCM2835 and similar SoCs have a VPU called VideoCore. This config
19		enables the VCHIQ driver, which implements a messaging interface between
20		the kernel and the firmware running on VideoCore. Other drivers use this
21		interface to communicate to the VPU. More specifically, the VCHIQ driver is
22		used by audio/video and camera drivers as well as for implementing MMAL
23		API, which is in turn used by several multimedia services on the BCM2835
24		family of SoCs.
25		Defaults to Y when the Broadcom Videocore services are included in
26		the build, N otherwise.
27
28if BCM2835_VCHIQ
29
30config VCHIQ_CDEV
31	bool "VCHIQ Character Driver"
32	help
33		Enable the creation of VCHIQ character driver. The cdev exposes ioctls used
34		by userspace libraries and testing tools to interact with VideoCore, via
35		the VCHIQ core driver (Check BCM2835_VCHIQ for more info).
36		This can be set to 'N' if the VideoCore communication is not needed by
37		userspace but only by other kernel modules (like bcm2835-audio).  If not
38		sure, set this to 'Y'.
39
40endif
41
42source "drivers/staging/vc04_services/bcm2835-audio/Kconfig"
43
44source "drivers/staging/vc04_services/bcm2835-camera/Kconfig"
45
46source "drivers/staging/vc04_services/vchiq-mmal/Kconfig"
47
48endif
49
50