UPSTREAM: 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: Ica5e952ccca4f73dc35bfba31e4f9e0d880f0390
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: 78bc6ddfd0
Original-Change-Id: I1c07327115e0449cbd84d163218da76a6fa2cea0
Original-Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19726
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://chromium-review.googlesource.com/509517
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
Furquan Shaikh 2017-05-16 13:32:34 -07:00 committed by chrome-bot
parent 29047a1835
commit 8f66bc8df7

View file

@ -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;
}