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:
Arvin Farahmand 2021-05-02 20:49:04 -04:00 committed by Anas Nashif
commit 419b103dd6
9 changed files with 243 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()

30
drivers/mdio/Kconfig Normal file
View 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