summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSourabh Banerjee <sbanerje@codeaurora.org>2015-10-02 06:17:09 -0700
committerLee Campbell <leecam@google.com>2015-11-11 10:19:31 -0800
commit2ff1a6496068c7f0b2b21de1e2f74adffc4371d3 (patch)
tree59b923a6374c07bea9edd5bb78f4976a1a4e5087
parent2eae537016fa68e2db19c171fa85305150f9ae94 (diff)
downloaddragonboard-2ff1a6496068c7f0b2b21de1e2f74adffc4371d3.tar.gz
enable bluetooth hal for dragonboard
Change-Id: I7aa3dfa67b83d8da43562a2d21bcb0e0c055c378 Signed-off-by: Sourabh Banerjee <sbanerje@codeaurora.org>
-rw-r--r--BoardConfig.mk8
-rw-r--r--bluetooth/bdroid_buildcfg.h34
2 files changed, 41 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 07f278c..64743ec 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -35,7 +35,7 @@ BOARD_SEPOLICY_DIRS += \
TARGET_BOARD_PLATFORM := msm8916
-#Audio feature flags
+# Audio feature flags
BOARD_USES_ALSA_AUDIO := true
AUDIO_FEATURE_ENABLED_EXTN_RESAMPLER := true
AUDIO_FEATURE_ENABLED_HFP := true
@@ -50,3 +50,9 @@ DOLBY_UDC_MULTICHANNEL_PCM_OFFLOAD := false
MM_AUDIO_ENABLED_FTM := true
MM_AUDIO_ENABLED_SAFX := true
TARGET_USES_QCOM_MM_AUDIO := true
+
+# Enable bluetooth
+BOARD_HAVE_BLUETOOTH_QCOM := true
+QCOM_BT_USE_SMD_TTY := true
+BLUETOOTH_HCI_USE_MCT := true
+BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/qcom/dragonboard/bluetooth
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
new file mode 100644
index 0000000..3e8dd7c
--- /dev/null
+++ b/bluetooth/bdroid_buildcfg.h
@@ -0,0 +1,34 @@
+/*
+ *
+ * Copyright (c) 2013, 2015 The Linux Foundation. All rights reserved.
+ * Not a Contribution, Apache license notifications and license are retained
+ * for attribution purposes only.
+ *
+ * Copyright (C) 2012 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _BDROID_BUILDCFG_H
+#define _BDROID_BUILDCFG_H
+#define BTM_DEF_LOCAL_NAME "QCOM-BTD"
+// Disables read remote device feature
+#define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE
+#define MAX_ACL_CONNECTIONS 7
+#define MAX_L2CAP_CHANNELS 16
+#define BLE_VND_INCLUDED TRUE
+// skips conn update at conn completion
+#define BTA_BLE_SKIP_CONN_UPD FALSE
+#define BLE_PERIPHERAL_ADV_NAME FALSE
+#define BTM_LE_SECURE_CONN TRUE
+#endif