Skip to content

Commit ff31044

Browse files
committed
[nxp] move phy driver into drivers folder
1 parent 4537d06 commit ff31044

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

bsp/imxrt/libraries/drivers/SConscript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ if GetDepend('BSP_USING_ETH'):
5050

5151
if GetDepend('BSP_USING_PHY'):
5252
src += ['drv_mdio.c']
53+
if GetDepend('PHY_USING_KSZ8081'):
54+
src += ['drv_ksz8081.c']
5355

5456
if GetDepend('BSP_USING_AUDIO'):
5557
src += ['drv_sai.c']

bsp/imxrt/libraries/peripherals/phyksz8081.c renamed to bsp/imxrt/libraries/drivers/drv_ksz8081.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,10 @@ static struct rt_phy_ops phy_ops =
358358
static int rt_phy_ksz8081_register( void )
359359
{
360360
phy_ksz8081.ops = &phy_ops;
361-
rt_hw_phy_register(&phy_ksz8081, "rtt-phy");
361+
rt_hw_phy_register(&phy_ksz8081, "ksz8081");
362362
return 1;
363363
}
364364

365365
INIT_DEVICE_EXPORT(rt_phy_ksz8081_register);
366366

367-
368-
369367
#endif /* PHY_USING_KSZ8081 */

bsp/imxrt/libraries/peripherals/SConscript

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)