diff options
author | Sean Wang <sean.wang@mediatek.com> | 2021-10-19 05:30:21 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-10-25 15:36:24 +0200 |
commit | c603bf1f94d0ef8ce3ef081112eae13cd744ef17 (patch) | |
tree | 24aa4d672be3a73e0180c5389f383555698b7733 /drivers/bluetooth/btmtk.h | |
parent | 1705643faecde95bdeb11bea5ab5baed084e9f91 (diff) | |
download | lwn-c603bf1f94d0ef8ce3ef081112eae13cd744ef17.tar.gz lwn-c603bf1f94d0ef8ce3ef081112eae13cd744ef17.zip |
Bluetooth: btmtksdio: add MT7921s Bluetooth support
add MT7921s Bluetooth support
Co-developed-by: Mark-yw Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Mark-yw Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btmtk.h')
-rw-r--r-- | drivers/bluetooth/btmtk.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/bluetooth/btmtk.h b/drivers/bluetooth/btmtk.h index 18f43c641b3b..6e7b0c7567c0 100644 --- a/drivers/bluetooth/btmtk.h +++ b/drivers/bluetooth/btmtk.h @@ -7,6 +7,8 @@ #define HCI_WMT_MAX_EVENT_SIZE 64 +#define BTMTK_WMT_REG_READ 0x2 + enum { BTMTK_WMT_PATCH_DWNLD = 0x1, BTMTK_WMT_TEST = 0x2, @@ -14,6 +16,7 @@ enum { BTMTK_WMT_HIF = 0x4, BTMTK_WMT_FUNC_CTRL = 0x6, BTMTK_WMT_RST = 0x7, + BTMTK_WMT_REGISTER = 0x8, BTMTK_WMT_SEMAPHORE = 0x17, }; @@ -49,6 +52,14 @@ struct btmtk_hci_wmt_evt_funcc { __be16 status; } __packed; +struct btmtk_hci_wmt_evt_reg { + struct btmtk_hci_wmt_evt hwhdr; + u8 rsv[2]; + u8 num; + __le32 addr; + __le32 val; +} __packed; + struct btmtk_tci_sleep { u8 mode; __le16 duration; |