summaryrefslogtreecommitdiffstats
path: root/src/include/boot_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/boot_device.h')
-rw-r--r--src/include/boot_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/boot_device.h b/src/include/boot_device.h
index 31464624b931..d5237cd45a7a 100644
--- a/src/include/boot_device.h
+++ b/src/include/boot_device.h
@@ -65,7 +65,7 @@ void boot_device_init(void);
/*
* Restrict read/write access to the bootmedia using platform defined rules.
*/
-#if CONFIG(BOOTMEDIA_LOCK_NONE)
+#if CONFIG(BOOTMEDIA_LOCK_NONE) || (CONFIG(BOOTMEDIA_LOCK_IN_VERSTAGE) && ENV_RAMSTAGE)
static inline void boot_device_security_lockdown(void) {}
#else
void boot_device_security_lockdown(void);