diff options
author | YK Jeffrey Chao <jechao@broadcom.com> | 2012-10-15 00:48:52 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-10-16 16:27:56 -0700 |
commit | 5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04 (patch) | |
tree | b1621d164b3a8a46cbfe349d63d333446ca3dd53 /libbt/include | |
parent | 0a793bd9730722fd79fe34a939bae1e9fc1bc1af (diff) | |
download | device_common-5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04.tar.gz device_common-5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04.tar.bz2 device_common-5bbc94767d1a11f8b3b1ffeaddf98f91ee38bc04.zip |
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')
-rw-r--r-- | libbt/include/bt_vendor_brcm.h | 18 | ||||
-rwxr-xr-x | libbt/include/vnd_grouper.txt | 1 | ||||
-rwxr-xr-x | libbt/include/vnd_tilapia.txt | 1 |
3 files changed, 20 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 diff --git a/libbt/include/vnd_grouper.txt b/libbt/include/vnd_grouper.txt index 3667e65..65ef840 100755 --- a/libbt/include/vnd_grouper.txt +++ b/libbt/include/vnd_grouper.txt @@ -7,3 +7,4 @@ BTHW_DBG = TRUE VNDUSERIAL_DBG = FALSE UPIO_DBG = FALSE SCO_PCM_IF_CLOCK_RATE = 2 +USE_CONTROLLER_BDADDR = TRUE diff --git a/libbt/include/vnd_tilapia.txt b/libbt/include/vnd_tilapia.txt index 3667e65..65ef840 100755 --- a/libbt/include/vnd_tilapia.txt +++ b/libbt/include/vnd_tilapia.txt @@ -7,3 +7,4 @@ BTHW_DBG = TRUE VNDUSERIAL_DBG = FALSE UPIO_DBG = FALSE SCO_PCM_IF_CLOCK_RATE = 2 +USE_CONTROLLER_BDADDR = TRUE |