Skip to content
Permalink
Browse files
mt6625l: add wifi-driver from 5.9
  • Loading branch information
frank-w committed Dec 12, 2020
1 parent e06d481 commit f43ce62478a0f245f0fcc53c073b54c31786f15e
Show file tree
Hide file tree
Showing 280 changed files with 213,232 additions and 0 deletions.
@@ -481,4 +481,5 @@ source "drivers/misc/ocxl/Kconfig"
source "drivers/misc/cardreader/Kconfig"
source "drivers/misc/habanalabs/Kconfig"
source "drivers/misc/uacce/Kconfig"
source "drivers/misc/mediatek/Kconfig"
endmenu
@@ -57,3 +57,4 @@ obj-$(CONFIG_HABANA_AI) += habanalabs/
obj-$(CONFIG_UACCE) += uacce/
obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o
obj-$(CONFIG_HISI_HIKEY_USB) += hisi_hikey_usb.o
obj-$(CONFIG_MTK_COMBO) += mediatek/
@@ -0,0 +1,11 @@
menu "Mediatek Peripherals "
depends on ARM
config MTK_PLATFORM
string "MTK platform name"
source "drivers/misc/mediatek/btif/Kconfig"

menu "Modem & Connectivity related configs"
source "drivers/misc/mediatek/connectivity/Kconfig"
endmenu

endmenu # CONN
@@ -0,0 +1,27 @@
#
# Copyright (C) 2015 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

#$(call all-subdir-src-or-makefile)
ifeq ($(subst ",,$(CONFIG_MTK_PLATFORM)),)
$(info CONFIG_MTK_PLATFORM empty...try to set it)
CONFIG_MTK_PLATFORM = "mt7623"
$(info CONFIG_MTK_PLATFORM: $(CONFIG_MTK_PLATFORM))
endif

export MTK_PLATFORM = $(subst ",,$(CONFIG_MTK_PLATFORM))

subdir-ccflags-y += -Werror
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/

obj-$(CONFIG_MTK_COMBO) += connectivity/
obj-$(CONFIG_MTK_BTIF) += btif/
@@ -0,0 +1,4 @@
config MTK_BTIF
tristate"MediaTek BTIF Driver"
help
MTK connectivity BTIF driver for A/D die
@@ -0,0 +1,34 @@
#
# Copyright (C) 2015 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

# BTIF driver for AD DIE
# If KERNELRELEASE is defined, we've been invoked from the
# kernel build system and can use its language.
ifneq ($(KERNELRELEASE),)
#subdir-ccflags-y can be used in 2.6.34 in the future
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat

obj-y += common/

# Otherwise we were called directly from the command
# line; invoke the kernel build system.
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
kernel:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
endif
@@ -0,0 +1,33 @@
#
# Copyright (C) 2015 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

# BTIF driver for AD DIE
# If KERNELRELEASE is defined, we've been invoked from the
# kernel build system and can use its language.
ifneq ($(KERNELRELEASE),)
ccflags-y += -I$(srctree)/$(src)/inc
ccflags-y += -I$(srctree)/$(src)/plat_inc

obj-$(CONFIG_MTK_BTIF) += btif.o
btif-objs := mtk_btif.o mtk_btif_exp.o btif_dma_plat.o btif_plat.o

# Otherwise we were called directly from the command
# line; invoke the kernel build system.
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
endif

0 comments on commit f43ce62

Please sign in to comment.