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>
This commit is contained in:
parent
82c9b703ea
commit
d1b3f241b1
@ -119,7 +119,7 @@ static void program_mac_address(u16 io_base)
|
||||
u32 high_dword = 0xD0BA00A0; /* high dword of mac address */
|
||||
u32 low_dword = 0x0000AD0B; /* low word of mac address as a dword */
|
||||
|
||||
if (CONFIG(CHROMEOS)) {
|
||||
if (CONFIG(VPD)) {
|
||||
struct region_device rdev;
|
||||
|
||||
if (fmap_locate_area_as_rdev("RO_VPD", &rdev) == 0) {
|
||||
|
@ -100,7 +100,7 @@ static void program_mac_address(u16 io_base)
|
||||
u32 high_dword = 0xD0BA00A0; /* high dword of mac address */
|
||||
u32 low_dword = 0x0000AD0B; /* low word of mac address as a dword */
|
||||
|
||||
if (CONFIG(CHROMEOS)) {
|
||||
if (CONFIG(VPD)) {
|
||||
struct region_device rdev;
|
||||
|
||||
if (fmap_locate_area_as_rdev("RO_VPD", &rdev) == 0) {
|
||||
|
@ -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) {
|
||||
|
@ -100,7 +100,7 @@ static void program_mac_address(u16 io_base)
|
||||
u32 high_dword = 0xD0BA00A0; /* high dword of mac address */
|
||||
u32 low_dword = 0x0000AD0B; /* low word of mac address as a dword */
|
||||
|
||||
if (CONFIG(CHROMEOS)) {
|
||||
if (CONFIG(VPD)) {
|
||||
struct region_device rdev;
|
||||
|
||||
if (fmap_locate_area_as_rdev("RO_VPD", &rdev) == 0) {
|
||||
|
@ -99,7 +99,7 @@ static void program_mac_address(u16 io_base)
|
||||
u32 high_dword = 0xD0BA00A0; /* high dword of mac address */
|
||||
u32 low_dword = 0x0000AD0B; /* low word of mac address as a dword */
|
||||
|
||||
if (CONFIG(CHROMEOS)) {
|
||||
if (CONFIG(VPD)) {
|
||||
struct region_device rdev;
|
||||
|
||||
if (fmap_locate_area_as_rdev("RO_VPD", &rdev) == 0) {
|
||||
|
@ -99,7 +99,7 @@ static void program_mac_address(u16 io_base)
|
||||
u32 high_dword = 0xD0BA00A0; /* high dword of mac address */
|
||||
u32 low_dword = 0x0000AD0B; /* low word of mac address as a dword */
|
||||
|
||||
if (CONFIG(CHROMEOS)) {
|
||||
if (CONFIG(VPD)) {
|
||||
struct region_device rdev;
|
||||
|
||||
if (fmap_locate_area_as_rdev("RO_VPD", &rdev) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user