summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/boot_device_rw_nommap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/spi/boot_device_rw_nommap.c b/src/drivers/spi/boot_device_rw_nommap.c
index a52a7befd2..e7d9b9a944 100644
--- a/src/drivers/spi/boot_device_rw_nommap.c
+++ b/src/drivers/spi/boot_device_rw_nommap.c
@@ -95,3 +95,9 @@ const struct region_device *boot_device_rw(void)
return &spi_rw;
}
+
+const struct spi_flash *boot_device_spi_flash(void)
+{
+ boot_device_rw_init();
+ return car_get_var(sfg);
+}