net: mvpp2: handle misc PPv2.1/PPv2.2 differences
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 20 Feb 2017 10:42:51 +0000 (11:42 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:41:17 +0000 (07:41 +0200)
commit7c7311f1a28ec05caf4b6a5df9d817e502e793dd
tree8673f18ccee7998773578d9c4d055dbafe505f9f
parent26a5278c9e6f0aa477f14dc38ccbf8dc30fe9cb3
net: mvpp2: handle misc PPv2.1/PPv2.2 differences

This commit handles a few miscellaneous differences between PPv2.1 and
PPv2.2 in different areas, where code done for PPv2.1 doesn't apply for
PPv2.2 or needs to be adjusted (getting the MAC address, disabling PHY
polling, etc.).

Changed by Stefan for U-Boot:
Since mvpp2_port_power_up() has multiple callers in U-Boot, the U-Boot
version of this patch does not remove this function but simply adds the
check for MVPP21 before the mvpp2_port_fc_adv_enable() call.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvpp2.c