xref: /linux/drivers/staging/greybus/Makefile (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1# SPDX-License-Identifier: GPL-2.0
2# needed for trace events
3ccflags-y += -I$(src)
4
5# Greybus class drivers
6gb-bootrom-y		:= bootrom.o
7gb-camera-y		:= camera.o
8gb-firmware-y		:= fw-core.o fw-download.o fw-management.o authentication.o
9gb-spilib-y		:= spilib.o
10gb-hid-y		:= hid.o
11gb-light-y		:= light.o
12gb-log-y		:= log.o
13gb-loopback-y		:= loopback.o
14gb-power-supply-y	:= power_supply.o
15gb-raw-y		:= raw.o
16gb-vibrator-y		:= vibrator.o
17
18obj-$(CONFIG_GREYBUS_BOOTROM)	+= gb-bootrom.o
19obj-$(CONFIG_GREYBUS_CAMERA)	+= gb-camera.o
20obj-$(CONFIG_GREYBUS_FIRMWARE)	+= gb-firmware.o gb-spilib.o
21obj-$(CONFIG_GREYBUS_HID)	+= gb-hid.o
22obj-$(CONFIG_GREYBUS_LIGHT)	+= gb-light.o
23obj-$(CONFIG_GREYBUS_LOG)	+= gb-log.o
24obj-$(CONFIG_GREYBUS_LOOPBACK)	+= gb-loopback.o
25obj-$(CONFIG_GREYBUS_POWER)	+= gb-power-supply.o
26obj-$(CONFIG_GREYBUS_RAW)	+= gb-raw.o
27obj-$(CONFIG_GREYBUS_VIBRATOR)	+= gb-vibrator.o
28
29# Greybus Audio is a bunch of modules
30gb-audio-module-y	:= audio_module.o audio_topology.o
31gb-audio-codec-y	:= audio_codec.o audio_helper.o
32gb-audio-gb-y		:= audio_gb.o
33gb-audio-apbridgea-y	:= audio_apbridgea.o
34gb-audio-manager-y	:= audio_manager.o audio_manager_module.o
35
36# Greybus Audio sysfs helpers can be useful when debugging
37#GB_AUDIO_MANAGER_SYSFS ?= true
38#ifeq ($(GB_AUDIO_MANAGER_SYSFS),true)
39#gb-audio-manager-y += audio_manager_sysfs.o
40#ccflags-y += -DGB_AUDIO_MANAGER_SYSFS
41#endif
42
43obj-$(CONFIG_GREYBUS_AUDIO_APB_CODEC)  	+= gb-audio-codec.o
44obj-$(CONFIG_GREYBUS_AUDIO_APB_CODEC)	+= gb-audio-module.o
45obj-$(CONFIG_GREYBUS_AUDIO)		+= gb-audio-gb.o
46obj-$(CONFIG_GREYBUS_AUDIO)		+= gb-audio-apbridgea.o
47obj-$(CONFIG_GREYBUS_AUDIO)		+= gb-audio-manager.o
48
49
50# Greybus Bridged PHY drivers
51gb-gbphy-y := gbphy.o
52gb-gpio-y := gpio.o
53gb-i2c-y := i2c.o
54gb-pwm-y := pwm.o
55gb-sdio-y := sdio.o
56gb-spi-y := spi.o
57gb-uart-y := uart.o
58gb-usb-y := usb.o
59
60obj-$(CONFIG_GREYBUS_BRIDGED_PHY)	+= gb-gbphy.o
61obj-$(CONFIG_GREYBUS_GPIO)		+= gb-gpio.o
62obj-$(CONFIG_GREYBUS_I2C)		+= gb-i2c.o
63obj-$(CONFIG_GREYBUS_PWM)		+= gb-pwm.o
64obj-$(CONFIG_GREYBUS_SDIO)		+= gb-sdio.o
65obj-$(CONFIG_GREYBUS_SPI)		+= gb-spi.o gb-spilib.o
66obj-$(CONFIG_GREYBUS_UART)		+= gb-uart.o
67obj-$(CONFIG_GREYBUS_USB)		+= gb-usb.o
68
69
70# Greybus Platform driver
71gb-arche-y	:= arche-platform.o arche-apb-ctrl.o
72
73obj-$(CONFIG_GREYBUS_ARCHE)	+= gb-arche.o
74