summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx/Makefile
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2016-09-02 14:45:33 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-06 12:58:14 -0700
commitec5612761c47ec7ab91b61df1bbcfd65cb0dbec8 (patch)
treef4e99272b1c5d308b4ddec829afbe2fc1273d4ef /drivers/net/dsa/mv88e6xxx/Makefile
parent6654d0bff91ca090feab4bb2ed94a3a009a03337 (diff)
downloadlinux-stable-ec5612761c47ec7ab91b61df1bbcfd65cb0dbec8.tar.gz
linux-stable-ec5612761c47ec7ab91b61df1bbcfd65cb0dbec8.tar.bz2
linux-stable-ec5612761c47ec7ab91b61df1bbcfd65cb0dbec8.zip
net: dsa: mv88e6xxx: move Global2 code
Marvell chips are composed of multiple SMI devices. One of them at address 0x1C is called Global2. It provides an extended set of registers, used for interrupt control, EEPROM access, indirect PHY access (to bypass the PHY Polling Unit) and cross-chip related setup. Most chips have it, but some others don't (older ones such as 6060). Now that its related code is isolated in mv88e6xxx_g2_* functions, move it to its own global2.c file, making most of its setup code static. Document each registers in the meantime. Its compilation can be later avoided for chips without such registers. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/Makefile')
-rw-r--r--drivers/net/dsa/mv88e6xxx/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/Makefile b/drivers/net/dsa/mv88e6xxx/Makefile
index e58b745c3c4d..5a4206652e92 100644
--- a/drivers/net/dsa/mv88e6xxx/Makefile
+++ b/drivers/net/dsa/mv88e6xxx/Makefile
@@ -1,2 +1,3 @@
obj-$(CONFIG_NET_DSA_MV88E6XXX) += mv88e6xxx.o
mv88e6xxx-objs := chip.o
+mv88e6xxx-objs += global2.o