summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2016-05-05 20:59:54 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-05-05 20:59:54 +0000
commitcde13827095393ffa3ea13898194c0ad477c94ce (patch)
tree78c4c6c7523532d61e3568aeaf05b3b9e43f2717
parent77e8694d5fa556f1a70a51d7cef02d9d7207e298 (diff)
parentfb052a4ae895aca3e2735cb39517bc59480a22b5 (diff)
downloadintel-cde13827095393ffa3ea13898194c0ad477c94ce.tar.gz
peripheral: Add support for Broadcom USB Bluetooth am: 80aa74eba6
am: fb052a4ae8 * commit 'fb052a4ae895aca3e2735cb39517bc59480a22b5': peripheral: Add support for Broadcom USB Bluetooth Change-Id: I49da2797c78ebec5f8b5423e020ecee74d23cefe
-rw-r--r--peripheral/bluetooth/btusbbcm/bt_usbbcm.rc24
-rw-r--r--peripheral/bluetooth/btusbbcm/btusbbcm.kconf13
-rw-r--r--peripheral/bluetooth/btusbbcm/hal.mk27
-rw-r--r--peripheral/bluetooth/btusbbcm/peripheral.mk21
4 files changed, 85 insertions, 0 deletions
diff --git a/peripheral/bluetooth/btusbbcm/bt_usbbcm.rc b/peripheral/bluetooth/btusbbcm/bt_usbbcm.rc
new file mode 100644
index 0000000..0bc5c07
--- /dev/null
+++ b/peripheral/bluetooth/btusbbcm/bt_usbbcm.rc
@@ -0,0 +1,24 @@
+##############################################################
+# BLUETOOTH CONFIGURATION - Broadcom USB BT SPECIFIC
+##############################################################
+
+on post-fs-data
+ # Bluetooth
+ write /sys/class/rfkill/rfkill1/state 1
+ chmod 0660 /sys/class/rfkill/rfkill1/state
+ chown bluetooth net_bt_stack /sys/class/rfkill/rfkill1/state
+ chown bluetooth net_bt_stack /sys/class/rfkill/rfkill1/type
+
+########################################################
+
+service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL
+ class main
+ group bluetooth wifi system dhcp
+ disabled
+ oneshot
+
+service iprenew_bt-pan /system/bin/dhcpcd -n
+ group bluetooth system dhcp
+ disabled
+ oneshot
+
diff --git a/peripheral/bluetooth/btusbbcm/btusbbcm.kconf b/peripheral/bluetooth/btusbbcm/btusbbcm.kconf
new file mode 100644
index 0000000..c685277
--- /dev/null
+++ b/peripheral/bluetooth/btusbbcm/btusbbcm.kconf
@@ -0,0 +1,13 @@
+CONFIG_BT=y
+CONFIG_BT_RFCOMM=y
+CONFIG_BT_RFCOMM_TTY=y
+CONFIG_BT_BNEP=y
+CONFIG_BT_BNEP_MC_FILTER=y
+CONFIG_BT_BNEP_PROTO_FILTER=y
+CONFIG_BT_HIDP=y
+CONFIG_BT_HCIBTUSB=y
+CONFIG_BT_BCM=y
+CONFIG_BT_HCIUART=y
+CONFIG_BT_HCIUART_BCM=y
+CONFIG_BT_INTEL=y
+CONFIG_BT_HCIBTUSB_BCM=y
diff --git a/peripheral/bluetooth/btusbbcm/hal.mk b/peripheral/bluetooth/btusbbcm/hal.mk
new file mode 100644
index 0000000..15c1f29
--- /dev/null
+++ b/peripheral/bluetooth/btusbbcm/hal.mk
@@ -0,0 +1,27 @@
+# Copyright (C) 2016 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.
+
+LOCAL_PATH := $(my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := btusbbcm
+LOCAL_MODULE_TAGS := optional
+LOCAL_REQUIRED_MODULES := \
+ libbt-vendor \
+ bluetooth.default \
+ bluetooth-cli \
+ bluetoothtbd \
+ net_bdtool
+LOCAL_INIT_RC := bt_usbbcm.rc
+include $(BUILD_PHONY_PACKAGE)
diff --git a/peripheral/bluetooth/btusbbcm/peripheral.mk b/peripheral/bluetooth/btusbbcm/peripheral.mk
new file mode 100644
index 0000000..6096c5e
--- /dev/null
+++ b/peripheral/bluetooth/btusbbcm/peripheral.mk
@@ -0,0 +1,21 @@
+#
+# Copyright 2016 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.
+#
+
+TARGET_KERNEL_CONFIGS += $(realpath hardware/bsp/intel/peripheral/bluetooth/btusbbcm/btusbbcm.kconf)
+
+# Bluetooth product packages
+DEVICE_PACKAGES += \
+ btusbbcm