From 78bc6ddfd0be8e88d589b51a8c5f2e240804266c Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 16 May 2017 13:32:34 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/19726 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/drivers/spi/cbfs_spi.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/drivers/spi') 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; +} -- cgit v1.2.3