Skip to content

Commit

Permalink
net: phy: mediatek: Move some macros to phy-lib for later use
Browse files Browse the repository at this point in the history
Move some macros to phy-lib because MediaTek's 2.5G built-in
ethernet PHY will also use them.

Signed-off-by: Sky Huang <skylake.huang@mediatek.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250213080553.921434-6-SkyLake.Huang@mediatek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Sky Huang authored and Jakub Kicinski committed Feb 18, 2025
1 parent 4786eff commit be378eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/phy/mediatek/mtk-ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
#define MTK_GPHY_ID_MT7530 0x03a29412
#define MTK_GPHY_ID_MT7531 0x03a29441

#define MTK_PHY_PAGE_EXTENDED_1 0x0001
#define MTK_PHY_AUX_CTRL_AND_STATUS 0x14
#define MTK_PHY_ENABLE_DOWNSHIFT BIT(4)

#define MTK_PHY_PAGE_EXTENDED_2 0x0002
#define MTK_PHY_PAGE_EXTENDED_3 0x0003
#define MTK_PHY_RG_LPI_PCS_DSP_CTRL_REG11 0x11
Expand Down
4 changes: 4 additions & 0 deletions drivers/net/phy/mediatek/mtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
#ifndef _MTK_EPHY_H_
#define _MTK_EPHY_H_

#define MTK_PHY_AUX_CTRL_AND_STATUS 0x14
#define MTK_PHY_ENABLE_DOWNSHIFT BIT(4)

#define MTK_EXT_PAGE_ACCESS 0x1f
#define MTK_PHY_PAGE_EXTENDED_1 0x0001
#define MTK_PHY_PAGE_STANDARD 0x0000
#define MTK_PHY_PAGE_EXTENDED_52B5 0x52b5

Expand Down

0 comments on commit be378eb

Please sign in to comment.