1 # SPDX-License-Identifier: GPL-2.0
16 obj-
$(CONFIG_GREYBUS
) += greybus.o
18 # needed for trace events
22 # Greybus Host controller drivers
25 obj-
$(CONFIG_GREYBUS_ES2
) += gb-es2.o
27 # Greybus class drivers
28 gb-bootrom-y
:= bootrom.o
29 gb-camera-y
:= camera.o
30 gb-firmware-y
:= fw-core.o fw-download.o fw-management.o authentication.o
31 gb-spilib-y
:= spilib.o
35 gb-loopback-y
:= loopback.o
36 gb-power-supply-y
:= power_supply.o
38 gb-vibrator-y
:= vibrator.o
40 obj-
$(CONFIG_GREYBUS_BOOTROM
) += gb-bootrom.o
41 obj-
$(CONFIG_GREYBUS_CAMERA
) += gb-camera.o
42 obj-
$(CONFIG_GREYBUS_FIRMWARE
) += gb-firmware.o gb-spilib.o
43 obj-
$(CONFIG_GREYBUS_HID
) += gb-hid.o
44 obj-
$(CONFIG_GREYBUS_LIGHT
) += gb-light.o
45 obj-
$(CONFIG_GREYBUS_LOG
) += gb-log.o
46 obj-
$(CONFIG_GREYBUS_LOOPBACK
) += gb-loopback.o
47 obj-
$(CONFIG_GREYBUS_POWER
) += gb-power-supply.o
48 obj-
$(CONFIG_GREYBUS_RAW
) += gb-raw.o
49 obj-
$(CONFIG_GREYBUS_VIBRATOR
) += gb-vibrator.o
51 # Greybus Audio is a bunch of modules
52 gb-audio-module-y
:= audio_module.o audio_topology.o
53 gb-audio-codec-y
:= audio_codec.o
54 gb-audio-gb-y
:= audio_gb.o
55 gb-audio-apbridgea-y
:= audio_apbridgea.o
56 gb-audio-manager-y
:= audio_manager.o audio_manager_module.o
58 # Greybus Audio sysfs helpers can be useful when debugging
59 #GB_AUDIO_MANAGER_SYSFS ?= true
60 #ifeq ($(GB_AUDIO_MANAGER_SYSFS),true)
61 #gb-audio-manager-y += audio_manager_sysfs.o
62 #ccflags-y += -DGB_AUDIO_MANAGER_SYSFS
65 obj-
$(CONFIG_GREYBUS_AUDIO_MSM8994
) += gb-audio-codec.o
66 obj-
$(CONFIG_GREYBUS_AUDIO_MSM8994
) += gb-audio-module.o
67 obj-
$(CONFIG_GREYBUS_AUDIO
) += gb-audio-gb.o
68 obj-
$(CONFIG_GREYBUS_AUDIO
) += gb-audio-apbridgea.o
69 obj-
$(CONFIG_GREYBUS_AUDIO
) += gb-audio-manager.o
72 # Greybus Bridged PHY drivers
82 obj-
$(CONFIG_GREYBUS_BRIDGED_PHY
) += gb-gbphy.o
83 obj-
$(CONFIG_GREYBUS_GPIO
) += gb-gpio.o
84 obj-
$(CONFIG_GREYBUS_I2C
) += gb-i2c.o
85 obj-
$(CONFIG_GREYBUS_PWM
) += gb-pwm.o
86 obj-
$(CONFIG_GREYBUS_SDIO
) += gb-sdio.o
87 obj-
$(CONFIG_GREYBUS_SPI
) += gb-spi.o gb-spilib.o
88 obj-
$(CONFIG_GREYBUS_UART
) += gb-uart.o
89 obj-
$(CONFIG_GREYBUS_USB
) += gb-usb.o
92 # Greybus Platform driver
93 gb-arche-y
:= arche-platform.o arche-apb-ctrl.o
95 obj-
$(CONFIG_GREYBUS_ARCHE
) += gb-arche.o