[nxp] move phy driver into drivers folder
This commit is contained in:
parent
4537d06afb
commit
ff310443b8
|
@ -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 */
|
|
@ -1,16 +0,0 @@
|
|||
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')
|
Loading…
Reference in New Issue