summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/butterfly
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2021-04-19 13:14:24 -0500
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:12:31 +0000
commitd1b3f241b1038c30c0cf55178ab4d641b98c4639 (patch)
treef76e913e5944a95cbf02ba7cf5954d1a067273e4 /src/mainboard/google/butterfly
parent82c9b703eaf30d7a69e0a49b602a513e8c1758e0 (diff)
downloadcoreboot-d1b3f241b1038c30c0cf55178ab4d641b98c4639.tar.gz
coreboot-d1b3f241b1038c30c0cf55178ab4d641b98c4639.tar.bz2
coreboot-d1b3f241b1038c30c0cf55178ab4d641b98c4639.zip
mb/google/*: allow LAN MAC to be read from VPD w/o ChromeOS
Condition use of RO_VPD for LAN MAC address on CONFIG_VPD rather than CONFIG_CHROMEOS. Test: build/boot google/{beltino,jecht} with RO_VPD propagated from stock firmware, verify MAC address set correctly. Change-Id: I1606fe1936ccee6e03dee145901767c8e73bfe2d Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52517 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/butterfly')
-rw-r--r--src/mainboard/google/butterfly/mainboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/butterfly/mainboard.c b/src/mainboard/google/butterfly/mainboard.c
index d9cf1b94340f..6759b86a1d35 100644
--- a/src/mainboard/google/butterfly/mainboard.c
+++ b/src/mainboard/google/butterfly/mainboard.c
@@ -168,7 +168,7 @@ static void mainboard_init(struct device *dev)
struct device *ethernet_dev = NULL;
void *vpd_file;
- if (CONFIG(CHROMEOS)) {
+ if (CONFIG(VPD)) {
struct region_device rdev;
if (fmap_locate_area_as_rdev("RO_VPD", &rdev) == 0) {