universal7580: add common bluetooth configuration
authorStricted <info@stricted.net>
Sun, 23 Sep 2018 00:46:37 +0000 (02:46 +0200)
committerJan Altensen <info@stricted.net>
Thu, 15 Aug 2019 09:11:30 +0000 (11:11 +0200)
Change-Id: Ibf15cda6cfd34f44d9aa210369e5bfd9891b5c47

BoardConfigCommon.mk
bluetooth/libbt_vndcfg.txt [new file with mode: 0644]
device-common.mk

index 783b4a7df3c37cf9ab0202326ea052536c46ec0c..a731017f04b956dc489ce90d0d41b2badda8ffd5 100644 (file)
@@ -130,6 +130,12 @@ WIFI_BAND                        := 802_11_ABG
 # MACLOADER
 BOARD_HAVE_SAMSUNG_WIFI          := true
 
+# Bluetooth
+BOARD_CUSTOM_BT_CONFIG := $(LOCAL_PATH)/bluetooth/libbt_vndcfg.txt
+BOARD_HAVE_BLUETOOTH := true
+BOARD_HAVE_BLUETOOTH_BCM := true
+BOARD_HAVE_SAMSUNG_BLUETOOTH := true
+
 # Lineage Hardware
 BOARD_HARDWARE_CLASS := hardware/samsung/lineagehw $(LOCAL_PATH)/lineagehw
 
diff --git a/bluetooth/libbt_vndcfg.txt b/bluetooth/libbt_vndcfg.txt
new file mode 100644 (file)
index 0000000..2bea300
--- /dev/null
@@ -0,0 +1,11 @@
+BLUETOOTH_UART_DEVICE_PORT = "/dev/ttySAC3"
+FW_PATCHFILE_LOCATION = "/vendor/firmware"
+FW_PATCH_SETTLEMENT_DELAY_MS = 200
+UART_TARGET_BAUD_RATE = 3000000
+LPM_IDLE_TIMEOUT_MULTIPLE = 5
+SCO_USE_I2S_INTERFACE = TRUE
+SCO_I2SPCM_IF_ROLE = 1
+BTVND_DBG = FALSE
+BTHW_DBG = TRUE
+VNDUSERIAL_DBG = FALSE
+UPIO_DBG = FALSE
index 434a344844043914d150e30a1318cf9d7ac96126..94e824d159ea7ec3d00a9e014240e657b8f552ea 100644 (file)
@@ -30,6 +30,11 @@ PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/configs/audio/audio_policy.conf:system/etc/audio_policy.conf \
     $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
 
+# Bluetooth
+PRODUCT_PACKAGES += \
+    android.hardware.bluetooth@1.0-impl \
+    libbt-vendor
+
 # Camera
 PRODUCT_PACKAGES += \
     android.hardware.camera.provider@2.4-impl-legacy \