net/mdio: add mdio bus

Currently the mdio communication is part of the monolithic 'full netdevs'.
This commit serves as an way to add modularity for the netdevs drivers.
A new upperhalf/lowerhalf mdio device comes with this commit that manages the data transfer ofer mdio interface.

Signed-off-by: Luchian Mihai <luchiann.mihai@gmail.com>
This commit is contained in:
LuchianMihai
2025-09-06 23:38:30 +03:00
committed by Xiang Xiao
parent c8b7950bd4
commit 95efa6f7cf
12 changed files with 881 additions and 165 deletions
+4
View File
@@ -29,6 +29,10 @@ if(CONFIG_NET)
list(APPEND SRCS netdev_upperhalf.c)
endif()
if(CONFIG_MDIO_BUS)
list(APPEND SRCS mdio.c)
endif()
if(CONFIG_NET_LOOPBACK)
list(APPEND SRCS loopback.c)
endif()