drivers: net: fsl_enetc: add write_hwaddr() for LS1028A
authorMichael Walle <michael@walle.cc>
Fri, 20 Dec 2019 13:16:48 +0000 (14:16 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 24 Jan 2020 08:58:26 +0000 (14:28 +0530)
commit42c66f057f6f35b4e3463a4ba37c7460cab48964
treeb82a64e78ce99d0c4400f2c12f88e5454ac98e29
parentee5c70b8f74e4676327c9415cb8a36a7a7f35d8f
drivers: net: fsl_enetc: add write_hwaddr() for LS1028A

The LS1028A SoC is special in the handling of the MAC addresses. We need
to write to the IERB version of the PSIPMAR0/1 register. This value will
be sampled into the corresponding port PSIPMAR0/1 register if the PCI
memory access is enabled.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fsl_enetc.c