Add device tangorpro
based on two sources: 1. 52e030ecef8a2debcd0a7cebb0b2cddc50e8e4e6 (ChangeId: Ieba6a75fe45595592c61dc5ad4e0c723adccaf35) 2. 3164f3d31b1197f305d968027f2e6f18663f1382 (ChangeId: Ic517f1cd5462f3653de3742834ec251362e7849d) No-Typo-Check: based on above commit Bug: 220073297 Change-Id: I244f73dc8485045e1bc4605a2701a1e4d32139b0
This commit is contained in:
parent
4ae33650d8
commit
dd5f546264
69 changed files with 149136 additions and 0 deletions
4
bluetooth/bt_vendor_overlay.conf
Normal file
4
bluetooth/bt_vendor_overlay.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# This is BTBCM HAL overlay configuration file.
|
||||
|
||||
# Uart port name
|
||||
UartPort = /dev/ttySAC18
|
38
bluetooth/manifest_bluetooth.xml
Normal file
38
bluetooth/manifest_bluetooth.xml
Normal file
|
@ -0,0 +1,38 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.bluetooth</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>IBluetoothHci</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>hardware.google.bluetooth.bt_channel_avoidance</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IBTChannelAvoidance</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>hardware.google.bluetooth.sar</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>IBluetoothSar</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>hardware.google.bluetooth.ccc</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IBluetoothCcc</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
57
bluetooth/qti_default.mk
Normal file
57
bluetooth/qti_default.mk
Normal file
|
@ -0,0 +1,57 @@
|
|||
#
|
||||
# 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/tangorpro/bluetooth/manifest_bluetooth.xml
|
||||
|
||||
BOARD_SEPOLICY_DIRS += device/google/tangorpro-sepolicy/bluetooth
|
||||
|
||||
BOARD_HAVE_BLUETOOTH_QCOM = true
|
||||
BOARD_USES_COMMON_BLUETOOTH_HAL = true
|
||||
QCOM_BLUETOOTH_USING_DIAG = false
|
||||
TARGET_BLUETOOTH_HCI_V1_1 = true
|
||||
TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
|
||||
UART_USE_TERMIOS_AFC = true
|
||||
TARGET_USE_QTI_BT_IBS = false
|
||||
TARGET_USE_QTI_BT_OBS = true
|
||||
TARGET_USE_QTI_BT_SAR = true
|
||||
TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
|
||||
ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
|
||||
PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-impl-qti
|
||||
else
|
||||
PRODUCT_PACKAGES += android.hardware.bluetooth@1.0-impl-qti
|
||||
endif
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.bluetooth@1.0-service-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
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.bluetooth.a2dp_offload.supported=true \
|
||||
persist.bluetooth.a2dp_offload.disabled=true \
|
||||
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
|
Loading…
Add table
Add a link
Reference in a new issue