net: ethernet: mtk_eth_soc: set MDIO bus clock frequency
[platform/kernel/linux-rpi.git] / drivers / net / ethernet / mediatek / mtk_eth_soc.h
index adf01f8..529c95c 100644 (file)
 #define RX_DMA_VTAG_V2         BIT(0)
 #define RX_DMA_L4_VALID_V2     BIT(2)
 
+/* PHY Polling and SMI Master Control registers */
+#define MTK_PPSC               0x10000
+#define PPSC_MDC_CFG           GENMASK(29, 24)
+#define PPSC_MDC_TURBO         BIT(20)
+#define MDC_MAX_FREQ           25000000
+#define MDC_MAX_DIVIDER                63
+
 /* PHY Indirect Access Control registers */
 #define MTK_PHY_IAC            0x10004
 #define PHY_IAC_ACCESS         BIT(31)