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