]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: move Global2 code
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 2 Sep 2016 18:45:33 +0000 (14:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 19:58:14 +0000 (12:58 -0700)
commit08c2400367235bbb78387709d32d039089ac6903
treef4e99272b1c5d308b4ddec829afbe2fc1273d4ef
parent46f59baa7b818081d70fb7561f104795220997b8
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>
drivers/net/dsa/mv88e6xxx/Makefile
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/global2.c [new file with mode: 0644]
drivers/net/dsa/mv88e6xxx/global2.h [new file with mode: 0644]
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h