[coreboot-gerrit] Change in coreboot[master]: drivers/spi/cbfs_spi: Provide implementation of boot_device_...

Furquan Shaikh (Code Review) gerrit at coreboot.org
Wed May 17 00:54:38 CEST 2017


Furquan Shaikh has uploaded a new change for review. ( 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>
---
M src/drivers/spi/cbfs_spi.c
1 file changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/19726/1

diff --git a/src/drivers/spi/cbfs_spi.c b/src/drivers/spi/cbfs_spi.c
index 7aeec57..50e6b92 100644
--- a/src/drivers/spi/cbfs_spi.c
+++ b/src/drivers/spi/cbfs_spi.c
@@ -134,3 +134,13 @@
 {
 	return boot_device_ro();
 }
+
+const struct spi_flash *boot_device_spi_flash(void)
+{
+	boot_device_init();
+
+	if (spi_flash_init_done != true)
+		return NULL;
+
+	return &spi_flash_info;
+}

-- 
To view, visit https://review.coreboot.org/19726
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1c07327115e0449cbd84d163218da76a6fa2cea0
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Furquan Shaikh <furquan at google.com>



More information about the coreboot-gerrit mailing list