GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef __REALTEK_PHY_H
|
||||
#define __REALTEK_PHY_H
|
||||
|
||||
#define PHY_REALTEK 0X1c
|
||||
|
||||
#define PHY_RTL8211F 0Xc916
|
||||
|
||||
#define RTL821x_PAGE_SELECT 0x1f
|
||||
|
||||
#define RTL8211F_PHYCR1 0x18
|
||||
|
||||
#define RTL8211F_MDI_MODE BIT(8)
|
||||
#define RTL8211F_MDI_MODE_EN BIT(9)
|
||||
|
||||
#define RTL8211F_TX_DELAY BIT(8)
|
||||
#define RTL8211F_RX_DELAY BIT(3)
|
||||
|
||||
#define RTL8211F_ALDPS_PLL_OFF BIT(1)
|
||||
#define RTL8211F_ALDPS_ENABLE BIT(2)
|
||||
#define RTL8211F_ALDPS_XTAL_OFF BIT(12)
|
||||
|
||||
int realtek_phy_init(struct eth_device *dev, int phy_addr);
|
||||
|
||||
#endif /* __REALTEK_PHY_H */
|
||||
Reference in New Issue
Block a user