summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/device/Kconfig7
-rw-r--r--src/device/pci_device.c5
2 files changed, 12 insertions, 0 deletions
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 99eedab108..82caa96be1 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -140,6 +140,13 @@ config ALWAYS_LOAD_OPROM
are needed for the kernel's display driver to know how a piece of
hardware is configured to be used.
+config ALWAYS_RUN_OPROM
+ def_bool n
+ depends on VGA_ROM_RUN && ALWAYS_LOAD_OPROM
+ help
+ Always uncondtionally run the option regardless of other
+ policies.
+
config ON_DEVICE_ROM_LOAD
bool "Load Option ROMs on PCI devices"
default n if PAYLOAD_SEABIOS
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 13ab1127da..02eca66e27 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -671,6 +671,11 @@ static int should_run_oprom(struct device *dev)
if (should_run >= 0)
return should_run;
+ if (IS_ENABLED(CONFIG_ALWAYS_RUN_OPROM)) {
+ should_run = 1;
+ return should_run;
+ }
+
/* Don't run VGA option ROMs, unless we have to print
* something on the screen before the kernel is loaded.
*/