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@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 +}