]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blob - drivers/staging/greybus/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-kernels.git] / drivers / staging / greybus / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 # Greybus core
3 greybus-y := core.o \
4 debugfs.o \
5 hd.o \
6 manifest.o \
7 module.o \
8 interface.o \
9 bundle.o \
10 connection.o \
11 control.o \
12 svc.o \
13 svc_watchdog.o \
14 operation.o
15
16 obj-$(CONFIG_GREYBUS) += greybus.o
17
18 # needed for trace events
19 ccflags-y += -I$(src)
20
21
22 # Greybus Host controller drivers
23 gb-es2-y := es2.o
24
25 obj-$(CONFIG_GREYBUS_ES2) += gb-es2.o
26
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
32 gb-hid-y := hid.o
33 gb-light-y := light.o
34 gb-log-y := log.o
35 gb-loopback-y := loopback.o
36 gb-power-supply-y := power_supply.o
37 gb-raw-y := raw.o
38 gb-vibrator-y := vibrator.o
39
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
50
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
57
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
63 #endif
64
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
70
71
72 # Greybus Bridged PHY drivers
73 gb-gbphy-y := gbphy.o
74 gb-gpio-y := gpio.o
75 gb-i2c-y := i2c.o
76 gb-pwm-y := pwm.o
77 gb-sdio-y := sdio.o
78 gb-spi-y := spi.o
79 gb-uart-y := uart.o
80 gb-usb-y := usb.o
81
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
90
91
92 # Greybus Platform driver
93 gb-arche-y := arche-platform.o arche-apb-ctrl.o
94
95 obj-$(CONFIG_GREYBUS_ARCHE) += gb-arche.o