Skip to content

Commit

Permalink
net: dsa: mv88e6xxx: move PHY macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vivien Didelot authored and David S. Miller committed Jun 5, 2017
1 parent 4d5f2ba commit c4530ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/dsa/mv88e6xxx/chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
#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)
Expand Down
3 changes: 3 additions & 0 deletions drivers/net/dsa/mv88e6xxx/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c4530ee

Please sign in to comment.