aboutsummaryrefslogtreecommitdiffstats
path: root/board/Marvell/mvebu_armada-37xx/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/Marvell/mvebu_armada-37xx/board.c')
-rw-r--r--board/Marvell/mvebu_armada-37xx/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c
index 3fe5319437e..04124d8014d 100644
--- a/board/Marvell/mvebu_armada-37xx/board.c
+++ b/board/Marvell/mvebu_armada-37xx/board.c
@@ -307,7 +307,8 @@ static int last_stage_init(void)
struct udevice *bus;
ofnode node;
- if (!of_machine_is_compatible("globalscale,espressobin"))
+ if (!CONFIG_IS_ENABLED(DM_MDIO) ||
+ !of_machine_is_compatible("globalscale,espressobin"))
return 0;
node = ofnode_by_compatible(ofnode_null(), "marvell,orion-mdio");