summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-05-16 13:32:34 -0700
committerFurquan Shaikh <furquan@google.com>2017-05-19 21:20:37 +0200
commit78bc6ddfd0be8e88d589b51a8c5f2e240804266c (patch)
tree00cdec80b8c0931dc922b51005a01d89e6d0e16d /src/drivers
parent714baa119b2ded203e148b381a4a3d1a74a91a68 (diff)
downloadcoreboot-78bc6ddfd0be8e88d589b51a8c5f2e240804266c.tar.xz
drivers/spi/cbfs_spi: Provide implementation of boot_device_spi_flash
This allows callers to retrieve handle to the boot device spi_flash structure. BUG=b:38330715 Change-Id: I1c07327115e0449cbd84d163218da76a6fa2cea0 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/19726 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/cbfs_spi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/spi/cbfs_spi.c b/src/drivers/spi/cbfs_spi.c
index 7aeec57cf6..ae2994c257 100644
--- a/src/drivers/spi/cbfs_spi.c
+++ b/src/drivers/spi/cbfs_spi.c
@@ -134,3 +134,9 @@ const struct region_device *boot_device_rw(void)
{
return boot_device_ro();
}
+
+const struct spi_flash *boot_device_spi_flash(void)
+{
+ boot_device_init();
+ return spi_flash_info;
+}