mb/google/rex/var/deku: Swap LAN device indices for correct MAC address

Deku has two Ethernet ports. Currently both get assigned the wrong
MAC address due to the LAN devices indices being swapped and
vpd ethernet_mac0() affects device eth1 and vpd ethernet_mac1() affects
device eth0.

Correct the device indices for LAN devices so ethernet_mac[0-1] in vpd
can apply to the correct ethernet ports.

BUG=b:320203629
BRANCH=firmware-rex-15709.B
TEST=vpd -s ethernet_mac0=<mac address0>
     vpd -s ethernet_mac1=<mac address1>
     reboot the system and check ifconfig
     eth0 and eth1 MAC addresses are fetched correctly

Change-Id: Id1508104cbb5cf0a234f34f9db19cc535fdb634b
Signed-off-by: Tony Huang <tony-huang@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81564
Reviewed-by: Eric Lai <ericllai@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Derek Huang <derekhuang@google.com>
This commit is contained in:
Tony Huang 2024-04-01 11:11:59 +08:00 committed by Subrata Banik
parent 45348cdf39
commit 42cb9f3de0

View File

@ -83,7 +83,7 @@ chip soc/intel/meteorlake
chip drivers/net
register "customized_leds" = "0x05af"
register "wake" = "GPE0_DW0_01" # GPP_D01
register "device_index" = "0"
register "device_index" = "1"
register "add_acpi_dma_property" = "true"
device pci 00.0 on end
end
@ -98,7 +98,7 @@ chip soc/intel/meteorlake
chip drivers/net
register "customized_leds" = "0x05af"
register "wake" = "GPE0_DW1_04" # GPP_E04
register "device_index" = "1"
register "device_index" = "0"
register "add_acpi_dma_property" = "true"
device pci 00.0 on end
end