Matthias Kaehlcke has uploaded this change for review. ( https://review.coreboot.org/28711
Change subject: vpd: Add support for reading BD addreses from the VPD ......................................................................
vpd: Add support for reading BD addreses from the VPD
Also scan the VPD for Bluetooth device addresses (BD_ADDR). Add them to the tables after Ethernet and WiFi MACs to avoid mismatches on existing systems that may have 'bluetooth_macX' set.
BUG=b:113114217
Change-Id: Ib290fba2504f6ed80c3a95e24627ae5922e608af Signed-off-by: Matthias Kaehlcke mka@chromium.org --- M src/vendorcode/google/chromeos/vpd_mac.c 1 file changed, 5 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/28711/1
diff --git a/src/vendorcode/google/chromeos/vpd_mac.c b/src/vendorcode/google/chromeos/vpd_mac.c index e3ef04b..08ca58c 100644 --- a/src/vendorcode/google/chromeos/vpd_mac.c +++ b/src/vendorcode/google/chromeos/vpd_mac.c @@ -59,10 +59,12 @@ void lb_table_add_macs_from_vpd(struct lb_header *header) { /* - * Mac addresses in the VPD can be stored in two groups, for ethernet - * and WiFi, with keys 'ethernet_macX and wifi_macX. + * Mac addresses in the VPD can be stored in three groups, for + * ethernet, WiFi and Bluetooh, with keys 'ethernet_macX, + * wifi_macX and bluetooth_macX */ - const char *mac_addr_key_bases[] = {"ethernet_mac0", "wifi_mac0"}; + const char *mac_addr_key_bases[] = {"ethernet_mac0", "wifi_mac0", + "bluetooth_mac0"}; char mac_addr_key[20]; /* large enough for either key */ char mac_addr_str[13]; /* 12 symbols and the trailing zero. */ int i, count;