net: airoha: configure hw mac address according to the port id
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 21 Aug 2024 07:30:14 +0000 (09:30 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 22 Aug 2024 11:25:02 +0000 (13:25 +0200)
commit812a2751e827fa1eb01f3bd268b4d74c23f4226a
treefdc08c3c0ab542c74b4edf123bc96f50d26a2cae
parentbcc3773c49af2426093645473fe02a5a8e765587
net: airoha: configure hw mac address according to the port id

GDM1 port on EN7581 SoC is connected to the lan dsa switch.
GDM{2,3,4} can be used as wan port connected to an external
phy module. Configure hw mac address registers according to the port id.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20240821-airoha-eth-wan-mac-addr-v2-1-8706d0cd6cd5@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/airoha_eth.c