drivers: Add mdio API
This commit adds support for MDIO bus. The bus is used by Ethernet MACs to communicate with PHYs. Signed-off-by: Arvin Farahmand <arvinf@ip-logix.com>
This commit is contained in:
parent
f0e1823846
commit
419b103dd6
9 changed files with 243 additions and 0 deletions
3
drivers/mdio/CMakeLists.txt
Normal file
3
drivers/mdio/CMakeLists.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_library()
|
30
drivers/mdio/Kconfig
Normal file
30
drivers/mdio/Kconfig
Normal file
|
@ -0,0 +1,30 @@
|
|||
# MDIO configuration options
|
||||
|
||||
# Copyright (c) 2021 IP-Logix Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#
|
||||
# MDIO options
|
||||
#
|
||||
menuconfig MDIO
|
||||
bool "MDIO Drivers"
|
||||
help
|
||||
Enable MDIO Driver Configuration
|
||||
|
||||
if MDIO
|
||||
|
||||
# Include these first so that any properties (e.g. defaults) below can be
|
||||
# overridden (by defining symbols in multiple locations)
|
||||
|
||||
config MDIO_INIT_PRIORITY
|
||||
int "Init priority"
|
||||
default 60
|
||||
help
|
||||
MDIO device driver initialization priority.
|
||||
|
||||
|
||||
module = MDIO
|
||||
module-str = mdio
|
||||
source "subsys/logging/Kconfig.template.log_config"
|
||||
|
||||
endif # MDIO
|
Loading…
Add table
Add a link
Reference in a new issue