Skip to content

Commit

Permalink
board/device: adding broadcom specific bluetooth config
Browse files Browse the repository at this point in the history
msm8660 devices have not all the same bluetooth vendor.
adding doubleshot specific configuration into device
tree.

Change-Id: I06e215babee99486a671d8ceb45348e8d6619d87
  • Loading branch information
tbalden committed Apr 14, 2013
1 parent 360c8db commit edf7a4f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16776192
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 838859776
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1252770816
BOARD_FLASH_BLOCK_SIZE := 262144

# bluetooth
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUEDROID_VENDOR_CONF := device/htc/msm8660-common/bluetooth/vnd_msm8660.txt
14 changes: 14 additions & 0 deletions bluetooth/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := bt_vendor.conf
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/bluetooth

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

5 changes: 5 additions & 0 deletions bluetooth/bt_vendor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# UART device port where Bluetooth controller is attached
UartPort = /dev/ttyHS0

# Firmware patch file location
FwPatchFilePath = /system/vendor/firmware/
4 changes: 4 additions & 0 deletions device_doubleshot.mk
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ PRODUCT_COPY_FILES += \
# Bluetooth firmware
$(call inherit-product, device/htc/msm8660-common/bcm_hcd.mk)

# Bluetooth vendor conf
PRODUCT_COPY_FILES += \
device/htc/doubleshot/bluetooth/bt_vendor.conf:/system/etc/bluetooth/bt_vendor.conf

## misc
PRODUCT_PROPERTY_OVERRIDES += \
ro.setupwizard.enable_bypass=1 \
Expand Down

0 comments on commit edf7a4f

Please sign in to comment.