From 8fafe702253d50bf90daf324ae86b5ad5ac8a5e1 Mon Sep 17 00:00:00 2001 From: Chih-Ying Chiang Date: Wed, 9 Feb 2022 02:17:40 +0800 Subject: Bluetooth: mt7921s: support bluetooth reset mechanism Implement .cmd_timeout to reset the MT7921s device via a dedicated GPIO pin when the firmware hang or the command has no response. Co-developed-by: Mark Chen Signed-off-by: Mark Chen Co-developed-by: Sean Wang Signed-off-by: Sean Wang Signed-off-by: Chih-Ying Chiang Signed-off-by: Marcel Holtmann --- drivers/bluetooth/btmtk.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/bluetooth/btmtk.h') diff --git a/drivers/bluetooth/btmtk.h b/drivers/bluetooth/btmtk.h index fb76d9765ce0..8960a5f89d48 100644 --- a/drivers/bluetooth/btmtk.h +++ b/drivers/bluetooth/btmtk.h @@ -10,9 +10,15 @@ #define BTMTK_WMT_REG_WRITE 0x1 #define BTMTK_WMT_REG_READ 0x2 +#define MT7921_BTSYS_RST 0x70002610 +#define MT7921_BTSYS_RST_WITH_GPIO BIT(7) + #define MT7921_PINMUX_0 0x70005050 #define MT7921_PINMUX_1 0x70005054 +#define MT7921_DLSTATUS 0x7c053c10 +#define BT_DL_STATE BIT(1) + enum { BTMTK_WMT_PATCH_DWNLD = 0x1, BTMTK_WMT_TEST = 0x2, -- cgit v1.2.3