net: bcmgenet: add support for new GENET PHY revision scheme
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 3 Dec 2014 17:56:59 +0000 (09:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 02:33:29 +0000 (21:33 -0500)
Starting with GPHY revision G0, the GENET register layout has changed to
use the same numbering scheme as the Starfighter 2 switch. This means
that GPHY major revision is in bits 15:12, minor in bits 11:8 and patch
level is in bits 7:4.

Introduce a small heuristic which checks for the old scheme first, tests
for the new scheme and finally attempts to catch reserved values and
aborts.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found