net: dsa: mv88e6xxx: move PHY macros
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 2 Jun 2017 21:06:16 +0000 (17:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 00:07:41 +0000 (20:07 -0400)
Move the PHY_* macros where they belong, in the related phy.h header.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/phy.h

index ae7aed533aa52707a848ff65a0c54be840fe8457..2929132fb52dc50ddb19aab90f0cc6b8a983009b 100644 (file)
 #define SMI_CMD_OP_45_READ_DATA_INC    ((3 << 10) | SMI_CMD_BUSY)
 #define SMI_DATA               0x01
 
-/* PHY Registers */
-#define PHY_PAGE               0x16
-#define PHY_PAGE_COPPER                0x00
-
 #define PORT_STATUS            0x00
 #define PORT_STATUS_PAUSE_EN   BIT(15)
 #define PORT_STATUS_MY_PAUSE   BIT(14)
index 91fe3c3e9aea115697ef9a71d4ced4fa546abfd9..4131a4e8206a3437dff57c1710e7d7be0deef7bd 100644 (file)
@@ -14,6 +14,9 @@
 #ifndef _MV88E6XXX_PHY_H
 #define _MV88E6XXX_PHY_H
 
+#define PHY_PAGE               0x16
+#define PHY_PAGE_COPPER                0x00
+
 /* PHY Registers accesses implementations */
 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
                       int addr, int reg, u16 *val);