aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btmtk.h
diff options
context:
space:
mode:
authorMark Chen <mark-yw.chen@mediatek.com>2022-01-10 03:23:58 +0800
committerMarcel Holtmann <marcel@holtmann.org>2022-01-10 17:41:38 +0100
commitce64b3e949195768361b0e4111e0837e5e46930d (patch)
tree68b403daac1757b9f75019b760010518d6fbbeef /drivers/bluetooth/btmtk.h
parentBluetooth: btmtksdio: rename btsdio_mtk_reg_read (diff)
downloadlinux-dev-ce64b3e949195768361b0e4111e0837e5e46930d.tar.xz
linux-dev-ce64b3e949195768361b0e4111e0837e5e46930d.zip
Bluetooth: mt7921s: Support wake on bluetooth
Enable wake on bluetooth on mt7921s that can be supported since the firmware with version 20211129211059 was added, and the patch would not cause any harm even when the old firmware is applied. The patch was tested by setting up an HID or HOGP profile to connect a Bluetooth keyboard and mouse, then putting the system to suspend, then trying to wake up the system by moving the Bluetooth keyboard or mouse, and then checking if the system can wake up and be brought back to the normal state. Co-developed-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Mark Chen <mark-yw.chen@mediatek.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btmtk.h')
-rw-r--r--drivers/bluetooth/btmtk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bluetooth/btmtk.h b/drivers/bluetooth/btmtk.h
index 6e7b0c7567c0..2be1d2680ad8 100644
--- a/drivers/bluetooth/btmtk.h
+++ b/drivers/bluetooth/btmtk.h
@@ -68,6 +68,14 @@ struct btmtk_tci_sleep {
u8 time_compensation;
} __packed;
+struct btmtk_wakeon {
+ u8 mode;
+ u8 gpo;
+ u8 active_high;
+ __le16 enable_delay;
+ __le16 wakeup_delay;
+} __packed;
+
struct btmtk_hci_wmt_params {
u8 op;
u8 flag;