mt76: introduce mt76x2-common module

In order to remove usb dependency from pcie code, add mt76x2-common as
a container of shared code between mt76x2 and mt76x2u. Add eeprom code
to mt76x2-common module

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2018-09-11 13:49:19 +02:00
committed by Felix Fietkau
parent 66f394984d
commit d099694a3d
3 changed files with 17 additions and 4 deletions
+5 -2
View File
@@ -1,14 +1,17 @@
EXTRA_CFLAGS += -Werror
obj-m := mt76.o mt76x2e.o mt7603e.o
obj-m := mt76.o mt76x2-common.o mt76x2e.o mt7603e.o
mt76-y := \
mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o tx.o agg-rx.o
mt76x2-common-y := \
mt76x2_eeprom.o
mt76x2e-y := \
mt76x2_pci.o mt76x2_dma.o \
mt76x2_main.o mt76x2_init.o mt76x2_debugfs.o mt76x2_tx.o \
mt76x2_core.o mt76x2_mac.o mt76x2_eeprom.o mt76x2_mcu.o mt76x2_phy.o \
mt76x2_core.o mt76x2_mac.o mt76x2_mcu.o mt76x2_phy.o \
mt76x2_dfs.o mt76x2_trace.o
mt7603e-y := \