[coreboot-gerrit] Change in coreboot[master]: drivers/spi/cbfs_spi: Provide implementation of boot_device_...
Furquan Shaikh (Code Review)
gerrit at coreboot.org
Tue May 16 10:15:12 CEST 2017
Furquan Shaikh has uploaded a new change for review. ( https://review.coreboot.org/19702 )
Change subject: drivers/spi/cbfs_spi: Provide implementation of boot_device_get_info
......................................................................
drivers/spi/cbfs_spi: Provide implementation of boot_device_get_info
Implement boot_device_get_info that returns pointer to spi_flash
structure initialized by boot_device_init.
BUG=b:38330715
Change-Id: I16252d6077ada1beff10e246139086dbcd6b4285
Signed-off-by: Furquan Shaikh <furquan at chromium.org>
---
M src/drivers/spi/cbfs_spi.c
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/19702/1
diff --git a/src/drivers/spi/cbfs_spi.c b/src/drivers/spi/cbfs_spi.c
index 7aeec57..0e004b4 100644
--- a/src/drivers/spi/cbfs_spi.c
+++ b/src/drivers/spi/cbfs_spi.c
@@ -120,6 +120,13 @@
mmap_helper_device_init(&mdev, _cbfs_cache, _cbfs_cache_size);
}
+/* Returns pointer to spi flash info, initialized by boot_device_init. */
+void *boot_device_get_info(void)
+{
+ boot_device_init();
+ return spi_flash_info;
+}
+
/* Return the CBFS boot device. */
const struct region_device *boot_device_ro(void)
{
--
To view, visit https://review.coreboot.org/19702
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I16252d6077ada1beff10e246139086dbcd6b4285
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