-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imx8mp_var_dart: Fix Android BT issue for LWB
Signed-off-by: Harshesh Valera <[email protected]>
- Loading branch information
Showing
9 changed files
with
118 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
allow system_server nfc:file write; | ||
dontaudit system_server bluetooth:file write; |
5 changes: 3 additions & 2 deletions
5
...rdware/broadcom/libbt.git/0001-imx8mm_var_som-Support-to-override-BT-uart-and-BT-fi.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
From 98e1c946d562a4453fd344ac7aeb53424ddb3227 Mon Sep 17 00:00:00 2001 | ||
From 4ffe14f692336daf348551ea641c31043486d31c Mon Sep 17 00:00:00 2001 | ||
From: Mohit Singh <[email protected]> | ||
Date: Mon, 17 Feb 2020 14:14:51 -0800 | ||
Subject: [PATCH] imx8mm_var_som: Support to override BT uart and BT fimware. | ||
Subject: [PATCH 1/3] imx8mm_var_som: Support to override BT uart and BT | ||
fimware. | ||
|
||
- Added support to switch between 2.4G and 5G firmware. | ||
--- | ||
|
2 changes: 1 addition & 1 deletion
2
...rdware/broadcom/libbt.git/0002-imx8mp_var_dart-Support-for-dual-band-firmware-loadi.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 0fbb8d6d71c0be53f36bce1453fad2b4aea57384 Mon Sep 17 00:00:00 2001 | ||
From: Harshesh Valera <[email protected]> | ||
Date: Wed, 17 May 2023 21:16:06 -0700 | ||
Subject: [PATCH 2/2] imx8mp_var_dart: Support for dual band firmware loading | ||
Subject: [PATCH 2/3] imx8mp_var_dart: Support for dual band firmware loading | ||
|
||
Signed-off-by: Harshesh Valera <[email protected]> | ||
--- | ||
|
49 changes: 49 additions & 0 deletions
49
...rdware/broadcom/libbt.git/0003-libbt-Instead-of-rfkill-use-the-power-on-properties-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
From b8b75d0f8ecf3e717baffd9f0ea9ec70ca6bd33f Mon Sep 17 00:00:00 2001 | ||
From: Harshesh Valera <[email protected]> | ||
Date: Thu, 8 Jun 2023 13:17:24 -0700 | ||
Subject: [PATCH 3/3] libbt: Instead of rfkill use the power on properties to | ||
trigger BT init scripts | ||
|
||
Signed-off-by: Harshesh Valera <[email protected]> | ||
--- | ||
src/upio.c | 17 +++++++++++++++++ | ||
1 file changed, 17 insertions(+) | ||
|
||
diff --git a/src/upio.c b/src/upio.c | ||
index 6d32a33..ddb65ef 100644 | ||
--- a/src/upio.c | ||
+++ b/src/upio.c | ||
@@ -290,6 +290,22 @@ void upio_cleanup(void) | ||
#endif | ||
} | ||
|
||
+int setprop_brcm(int on) | ||
+{ | ||
+ switch(on) | ||
+ { | ||
+ case UPIO_BT_POWER_ON: | ||
+ property_set("vendor.bluetooth.init", "true"); | ||
+ break; | ||
+ case UPIO_BT_POWER_OFF: | ||
+ property_set("vendor.bluetooth.init", "false"); | ||
+ break; | ||
+ default: | ||
+ property_set("vendor.bluetooth.init", "true"); | ||
+ } | ||
+ sleep(1); | ||
+ return 0; | ||
+} | ||
/******************************************************************************* | ||
** | ||
** Function upio_set_bluetooth_power | ||
@@ -318,6 +334,7 @@ int upio_set_bluetooth_power(int on) | ||
buffer = '1'; | ||
break; | ||
} | ||
+ setprop_brcm(on); | ||
|
||
if (is_emulator_context()) | ||
{ | ||
-- | ||
2.25.1 | ||
|
29 changes: 29 additions & 0 deletions
29
...ts/platform/system/bt.git/0001-system-bt-Revert-bt-initialization-timeout-from-new-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From d5d0418040f38cf12af5b72a1da00eb2a000d174 Mon Sep 17 00:00:00 2001 | ||
From: Harshesh Valera <[email protected]> | ||
Date: Thu, 8 Jun 2023 13:14:35 -0700 | ||
Subject: [PATCH] system/bt: Revert bt initialization timeout from new 2.9 | ||
seconds back to 8 second | ||
|
||
As per Leird Documentation | ||
|
||
Signed-off-by: Harshesh Valera <[email protected]> | ||
--- | ||
hci/src/hci_layer.cc | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/hci/src/hci_layer.cc b/hci/src/hci_layer.cc | ||
index 80f63de..f2a99ad 100644 | ||
--- a/hci/src/hci_layer.cc | ||
+++ b/hci/src/hci_layer.cc | ||
@@ -80,7 +80,7 @@ typedef struct { | ||
// Using a define here, because it can be stringified for the property lookup | ||
// Default timeout should be less than BLE_START_TIMEOUT and | ||
// having less than 3 sec would hold the wakelock for init | ||
-#define DEFAULT_STARTUP_TIMEOUT_MS 2900 | ||
+#define DEFAULT_STARTUP_TIMEOUT_MS 8000 | ||
#define STRING_VALUE_OF(x) #x | ||
|
||
// Abort if there is no response to an HCI command. | ||
-- | ||
2.25.1 | ||
|