qti_default.mk 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Copyright (C) 2021 The Android Open-Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # Bluetooth HAL and Pixel extension
  17. DEVICE_MANIFEST_FILE += \
  18. device/google/lynx/bluetooth/manifest_bluetooth.xml
  19. BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth
  20. BOARD_HAVE_BLUETOOTH_QCOM = true
  21. BOARD_USES_COMMON_BLUETOOTH_HAL = true
  22. QCOM_BLUETOOTH_USING_DIAG = false
  23. TARGET_BLUETOOTH_HCI_V1_1 = true
  24. TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
  25. UART_USE_TERMIOS_AFC = true
  26. TARGET_USE_QTI_BT_IBS = false
  27. TARGET_USE_QTI_BT_OBS = true
  28. TARGET_USE_QTI_BT_SAR = true
  29. TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
  30. ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
  31. PRODUCT_PACKAGES += [email protected]
  32. else
  33. PRODUCT_PACKAGES += [email protected]
  34. endif
  35. PRODUCT_PACKAGES += \
  36. [email protected] \
  37. [email protected] \
  38. [email protected]
  39. # Bluetooth SAR test tools
  40. PRODUCT_PACKAGES_DEBUG += \
  41. bluetooth_sar_test
  42. # Bluetooth SoC, BDA in device tree, and WiPower
  43. PRODUCT_PROPERTY_OVERRIDES += \
  44. vendor.qcom.bluetooth.soc=hastings \
  45. ro.vendor.bt.bdaddr_path=/proc/device-tree/chosen/config/bt_addr \
  46. ro.vendor.bluetooth.emb_wp_mode=false \
  47. ro.vendor.bluetooth.wipower=false
  48. PRODUCT_PROPERTY_OVERRIDES += \
  49. ro.bluetooth.a2dp_offload.supported=true \
  50. persist.bluetooth.a2dp_offload.disabled=true \
  51. persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac