[coreboot-gerrit] Change in coreboot[master]: drivers/spi/cbfs_spi: Provide implementation of boot_device_...
Furquan Shaikh (Code Review)
gerrit at coreboot.org
Fri May 19 21:20:39 CEST 2017
Furquan Shaikh has submitted this change and it was merged. ( https://review.coreboot.org/19726 )
Change subject: drivers/spi/cbfs_spi: Provide implementation of boot_device_spi_flash
......................................................................
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 at chromium.org>
Reviewed-on: https://review.coreboot.org/19726
Tested-by: build bot (Jenkins) <no-reply at coreboot.org>
Reviewed-by: Aaron Durbin <adurbin at chromium.org>
Reviewed-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
M src/drivers/spi/cbfs_spi.c
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Aaron Durbin: Looks good to me, approved
Paul Menzel: Looks good to me, but someone else must approve
build bot (Jenkins): Verified
diff --git a/src/drivers/spi/cbfs_spi.c b/src/drivers/spi/cbfs_spi.c
index 7aeec57..ae2994c 100644
--- a/src/drivers/spi/cbfs_spi.c
+++ b/src/drivers/spi/cbfs_spi.c
@@ -134,3 +134,9 @@
{
return boot_device_ro();
}
+
+const struct spi_flash *boot_device_spi_flash(void)
+{
+ boot_device_init();
+ return spi_flash_info;
+}
--
To view, visit https://review.coreboot.org/19726
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1c07327115e0449cbd84d163218da76a6fa2cea0
Gerrit-PatchSet: 7
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Furquan Shaikh <furquan at google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin at chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan at google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
More information about the coreboot-gerrit
mailing list