[nxp] move phy driver into drivers folder

This commit is contained in:
Meco Man 2022-08-14 21:31:12 -04:00 committed by Man, Jianting (Meco)
parent 4537d06afb
commit ff310443b8
3 changed files with 3 additions and 19 deletions

View File

@ -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']

View File

@ -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 */

View File

@ -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')