summaryrefslogtreecommitdiff
path: root/src/console/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/init.c')
-rw-r--r--src/console/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/console/init.c b/src/console/init.c
index 8f71b09881..f35dd51beb 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -72,8 +72,9 @@ asmlinkage void console_init(void)
{
init_log_level();
-#if IS_ENABLED(CONFIG_EARLY_PCI_BRIDGE) && !defined(__SMM__)
- pci_early_bridge_init();
+#if IS_ENABLED(CONFIG_EARLY_PCI_BRIDGE)
+ if (!ENV_SMM && !ENV_RAMSTAGE)
+ pci_early_bridge_init();
#endif
console_hw_init();