提交 ff310443 编写于 作者: mysterywolf's avatar mysterywolf 提交者: mysterywolf

[nxp] move phy driver into drivers folder

上级 4537d06a
......@@ -50,6 +50,8 @@ if GetDepend('BSP_USING_ETH'):
if GetDepend('BSP_USING_PHY'):
src += ['drv_mdio.c']
if GetDepend('PHY_USING_KSZ8081'):
src += ['drv_ksz8081.c']
if GetDepend('BSP_USING_AUDIO'):
src += ['drv_sai.c']
......
......@@ -358,12 +358,10 @@ static struct rt_phy_ops phy_ops =
static int rt_phy_ksz8081_register( void )
{
phy_ksz8081.ops = &phy_ops;
rt_hw_phy_register(&phy_ksz8081, "rtt-phy");
rt_hw_phy_register(&phy_ksz8081, "ksz8081");
return 1;
}
INIT_DEVICE_EXPORT(rt_phy_ksz8081_register);
#endif /* PHY_USING_KSZ8081 */
from building import *
src = []
cwd = []
CPPDEFINES = []
cwd = GetCurrentDir()
if GetDepend('BSP_USING_PHY') and GetDepend('PHY_USING_KSZ8081'):
src += ['phyksz8081.c']
path = [cwd]
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
Return('group')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册