net: dsa: mv88e6xxx: Add helper for accessing port registers
authorAndrew Lunn <andrew@lunn.ch>
Tue, 20 Sep 2016 23:40:31 +0000 (01:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 06:20:12 +0000 (02:20 -0400)
commit0e7b99257be4b596d9fdd435698c0bfdb0b38d91
treead7448f57b66eeef98d9297a43c8c91713de9d44
parentefee95f42b5dddedcaff0a0eaa44e170fc7522e8
net: dsa: mv88e6xxx: Add helper for accessing port registers

There is a device coming soon which places its port registers
somewhere different to all other Marvell switches supported so far.
Add helper functions for reading/writing port registers, making it
easier to handle this new device.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h