summaryrefslogtreecommitdiffstats
path: root/libbt/src/bt_vendor_brcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbt/src/bt_vendor_brcm.c')
-rw-r--r--libbt/src/bt_vendor_brcm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libbt/src/bt_vendor_brcm.c b/libbt/src/bt_vendor_brcm.c
index 9bd8922..eb9856d 100644
--- a/libbt/src/bt_vendor_brcm.c
+++ b/libbt/src/bt_vendor_brcm.c
@@ -53,6 +53,9 @@ void hw_lpm_set_wake_state(uint8_t wake_assert);
void hw_sco_config(void);
#endif
void vnd_load_conf(const char *p_path);
+#if (USE_AXI_BRIDGE_LOCK == TRUE)
+void axi_bridge_lock(int locked);
+#endif
/******************************************************************************
** Variables
@@ -137,8 +140,12 @@ static int op(bt_vendor_opcode_t opcode, void *param)
int *state = (int *) param;
if (*state == BT_VND_PWR_OFF)
upio_set_bluetooth_power(UPIO_BT_POWER_OFF);
- else if (*state == BT_VND_PWR_ON)
+ else if (*state == BT_VND_PWR_ON) {
+#if (USE_AXI_BRIDGE_LOCK == TRUE)
+ axi_bridge_lock(1);
+#endif
upio_set_bluetooth_power(UPIO_BT_POWER_ON);
+ }
}
break;