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>
This commit is contained in:
Furquan Shaikh 2017-05-16 13:32:34 -07:00 committed by Furquan Shaikh
parent 714baa119b
commit 78bc6ddfd0
1 changed files with 6 additions and 0 deletions

View File

@ -134,3 +134,9 @@ const struct region_device *boot_device_rw(void)
{ {
return boot_device_ro(); return boot_device_ro();
} }
const struct spi_flash *boot_device_spi_flash(void)
{
boot_device_init();
return spi_flash_info;
}