Skip to content

Commit 9aebfd4

Browse files
moore-brosholtmann
authored andcommitted
Bluetooth: mediatek: add support for MediaTek MT7663S and MT7668S SDIO devices
This adds the support of enabling MT7663S and MT7668S SDIO-based Bluetooth function. There are quite many differences between MT766[3,8]S and standard Bluetooth SDIO devices such as Type-A and Type-B devices. For example, MT766[3,8]S have its own SDIO registers layout, definition, SDIO packet format, and the specific flow should be programmed on them to complete the device initialization and low power control and so on. Currently, there are many independent programming sequences from the transport which are exactly the same as the ones in btusb.c about MediaTek support [1] and btmtkuart.c. We can try to split the transport independent Bluetooth setups on the advance, place them into the common files and allow varous transport drivers to reuse them in the future. [1] http://lists.infradead.org/pipermail/linux-mediatek/2019-January/017074.html Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 756e161 commit 9aebfd4

3 files changed

Lines changed: 991 additions & 0 deletions

File tree

‎drivers/bluetooth/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,17 @@ config BT_WILINK
379379
Say Y here to compile support for Texas Instrument's WiLink7 driver
380380
into the kernel or say M to compile it as module (btwilink).
381381

382+
config BT_MTKSDIO
383+
tristate "MediaTek HCI SDIO driver"
384+
depends on MMC
385+
help
386+
MediaTek Bluetooth HCI SDIO driver.
387+
This driver is required if you want to use MediaTek Bluetooth
388+
with SDIO interface.
389+
390+
Say Y here to compile support for MediaTek Bluetooth SDIO devices
391+
into the kernel or say M to compile it as module (btmtksdio).
392+
382393
config BT_MTKUART
383394
tristate "MediaTek HCI UART driver"
384395
depends on SERIAL_DEV_BUS

‎drivers/bluetooth/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_BT_ATH3K) += ath3k.o
2020
obj-$(CONFIG_BT_MRVL) += btmrvl.o
2121
obj-$(CONFIG_BT_MRVL_SDIO) += btmrvl_sdio.o
2222
obj-$(CONFIG_BT_WILINK) += btwilink.o
23+
obj-$(CONFIG_BT_MTKSDIO) += btmtksdio.o
2324
obj-$(CONFIG_BT_MTKUART) += btmtkuart.o
2425
obj-$(CONFIG_BT_QCOMSMD) += btqcomsmd.o
2526
obj-$(CONFIG_BT_BCM) += btbcm.o

0 commit comments

Comments
 (0)