summaryrefslogtreecommitdiffstats
path: root/libbt/include/bt_vendor_brcm.h
diff options
context:
space:
mode:
authorYK Jeffrey Chao <jechao@broadcom.com>2012-10-15 00:48:52 -0700
committerMatthew Xie <mattx@google.com>2012-10-16 16:27:56 -0700
commit5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04 (patch)
treeb1621d164b3a8a46cbfe349d63d333446ca3dd53 /libbt/include/bt_vendor_brcm.h
parent0a793bd9730722fd79fe34a939bae1e9fc1bc1af (diff)
downloaddevice_common-5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04.zip
device_common-5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04.tar.gz
device_common-5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04.tar.bz2
Add support of getting factory BDADDR from Controller's non-volatile memory(2/2)
When factory Bluetooth device address is stored in the BT Controller's non-volatile memory (e.g. BCM4330 OTP memory) instead of devices's file system, the BDADDR will be retrieved from the Controller while enabling Bluedroid core stack. Introduce USE_CONTROLLER_BDADDR preprocessor directive in the vendor lib. After patchram download, check whether the BT Controller has a non-zero's BDADDR stored in its non-volatile memory. If not, write BTIF's init BDADDR to the Controller. bug 7340441 Change-Id: I2414b9479d4ef93ffd20c7ccc4875aab009e7cc8
Diffstat (limited to 'libbt/include/bt_vendor_brcm.h')
-rw-r--r--libbt/include/bt_vendor_brcm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libbt/include/bt_vendor_brcm.h b/libbt/include/bt_vendor_brcm.h
index 2ecc21e..fff1925 100644
--- a/libbt/include/bt_vendor_brcm.h
+++ b/libbt/include/bt_vendor_brcm.h
@@ -82,6 +82,24 @@
#define FW_PATCH_SETTLEMENT_DELAY_MS 0
#endif
+/* The Bluetooth Device Aaddress source switch:
+ *
+ * -FALSE- (default value)
+ * Get the factory BDADDR from device's file system. Normally the BDADDR is
+ * stored in the location pointed by the PROPERTY_BT_BDADDR_PATH (defined in
+ * btif_common.h file) property.
+ *
+ * -TRUE-
+ * If the Bluetooth Controller has equipped with a non-volatile memory (such
+ * as BCM4330's OTP memory), the factory BDADDR can be stored in there and
+ * retrieved by the stack while enabling BT.
+ * !!! WARNING !!! Make sure that the OTP feature has been enabled in the
+ * firmware patchram (.hcd) file.
+ */
+#ifndef USE_CONTROLLER_BDADDR
+#define USE_CONTROLLER_BDADDR FALSE
+#endif
+
/* sleep mode
0: disable