summaryrefslogtreecommitdiff
path: root/bluetooth
diff options
context:
space:
mode:
authorCheney Ni <cheneyni@google.com>2021-09-15 10:57:36 +0800
committerTreeHugger Robot <treehugger-gerrit@google.com>2021-12-16 02:12:32 +0000
commit7dbebb7ab42ad6df0d97757fc0ea7e5539bcd41c (patch)
treee82df1e306e92af01d485ca184506a0ce3c57de0 /bluetooth
parent830872632c33fed0eb5df79801e6bc1b7a259181 (diff)
Bluetooth: Bring up QCOM Bluetooth HAL
Specify all configurations on qti_default.mk, and here are some important items: * QCOM_BLUETOOTH_USING_DIAG = false * TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18" * UART_USE_TERMIOS_AFC = true * TARGET_USE_QTI_BT_OBS = true Bug: 202113218 Test: Build pass Change-Id: I444d64e7413d1b08aff295e3ad64238cbaec1286
Diffstat (limited to 'bluetooth')
-rw-r--r--bluetooth/qti_default.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/bluetooth/qti_default.mk b/bluetooth/qti_default.mk
new file mode 100644
index 0000000..e139279
--- /dev/null
+++ b/bluetooth/qti_default.mk
@@ -0,0 +1,45 @@
+#
+# Copyright (C) 2021 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.
+#
+
+# Bluetooth HAL and Pixel extension
+DEVICE_MANIFEST_FILE += \
+ device/google/lynx/bluetooth/manifest_bluetooth.xml
+
+BOARD_HAVE_BLUETOOTH_QCOM = true
+BOARD_USES_COMMON_BLUETOOTH_HAL = true
+QCOM_BLUETOOTH_USING_DIAG = false
+TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
+UART_USE_TERMIOS_AFC = true
+TARGET_USE_QTI_BT_OBS = true
+TARGET_USE_QTI_BT_SAR = true
+TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
+PRODUCT_PACKAGES += \
+ android.hardware.bluetooth@1.0-service-qti \
+ android.hardware.bluetooth@1.0-impl-qti \
+ hardware.google.bluetooth.sar@1.0-impl \
+ hardware.google.bluetooth.bt_channel_avoidance@1.0-impl
+
+# Bluetooth SAR test tools
+PRODUCT_PACKAGES_DEBUG += \
+ bluetooth_sar_test
+
+# Bluetooth SoC, BDA in device tree, and WiPower
+PRODUCT_PROPERTY_OVERRIDES += \
+ vendor.qcom.bluetooth.soc=hastings \
+ ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
+ ro.vendor.bluetooth.emb_wp_mode=false \
+ ro.vendor.bluetooth.wipower=false
+