[coreboot-gerrit] Change in coreboot[master]: google/cheza: Read MAC addresses from the VPD

Matthias Kaehlcke (Code Review) gerrit at coreboot.org
Sat Sep 22 00:43:26 CEST 2018


Matthias Kaehlcke has uploaded this change for review. ( https://review.coreboot.org/28712


Change subject: google/cheza: Read MAC addresses from the VPD
......................................................................

google/cheza: Read MAC addresses from the VPD

The Bluetooth/WiFi module on cheza isn't pre-programmed with MAC
addresses. Read the MAC addresses from the VPD and add them the
coreboot tables.

BUG=b:113114217

Change-Id: I35a6c343e60d3ff76610a7e1eec38b8e53644eec
Signed-off-by: Matthias Kaehlcke <mka at chromium.org>
---
M src/mainboard/google/cheza/mainboard.c
1 file changed, 9 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/12/28712/1

diff --git a/src/mainboard/google/cheza/mainboard.c b/src/mainboard/google/cheza/mainboard.c
index fdec3fb..e2c7ecb 100644
--- a/src/mainboard/google/cheza/mainboard.c
+++ b/src/mainboard/google/cheza/mainboard.c
@@ -13,6 +13,7 @@
  * GNU General Public License for more details.
  */
 
+#include <boot/coreboot_tables.h>
 #include <device/device.h>
 #include <bootblock_common.h>
 #include <gpio.h>
@@ -37,3 +38,11 @@
 	.name = CONFIG_MAINBOARD_PART_NUMBER,
 	.enable_dev = mainboard_enable,
 };
+
+void lb_board(struct lb_header *header)
+{
+#if IS_ENABLED(CONFIG_CHROMEOS)
+	/* Retrieve WiFi and Bluetooth MAC addresses. */
+	lb_table_add_macs_from_vpd(header);
+#endif
+}

-- 
To view, visit https://review.coreboot.org/28712
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I35a6c343e60d3ff76610a7e1eec38b8e53644eec
Gerrit-Change-Number: 28712
Gerrit-PatchSet: 1
Gerrit-Owner: Matthias Kaehlcke <mka at chromium.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180921/f316cc21/attachment.html>


More information about the coreboot-gerrit mailing list