summaryrefslogtreecommitdiff
path: root/board/Marvell
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-20 07:29:51 -0600
committerBin Meng <bmeng@tinylab.org>2023-09-22 06:05:40 +0800
commit53fab13a7b11630aeb731c8ef7553cf773311a9f (patch)
tree5bf0b96c59b052f03395c599afe9823de51fff06 /board/Marvell
parent50834884a8159845475fdc28ac196a41fe4d4915 (diff)
downloadu-boot-53fab13a7b11630aeb731c8ef7553cf773311a9f.tar.gz
u-boot-53fab13a7b11630aeb731c8ef7553cf773311a9f.tar.bz2
u-boot-53fab13a7b11630aeb731c8ef7553cf773311a9f.zip
efi: Use the installed SMBIOS tables
U-Boot should set up the SMBIOS tables during startup, as it does on x86. Ensure that it does this correctly on non-x86 machines too, by creating an event spy for last-stage init. Tidy up the installation-condition code while we are here. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'board/Marvell')
-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 3fe5319437..04124d8014 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");