[coreboot-gerrit] Change in coreboot[master]: common/block/fast_spi: Add function to get BIOS_CONTROL (BC)...

Subrata Banik (Code Review) gerrit at coreboot.org
Mon Jul 17 13:43:34 CEST 2017


Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/20615


Change subject: common/block/fast_spi: Add function to get BIOS_CONTROL (BC) register
......................................................................

common/block/fast_spi: Add function to get BIOS_CONTROL (BC) register

This patch is to provide API to read SPI pci offset register
BIOS_CONTROL (BC) - offset 0xDC.

Change-Id: I3b36c1a51ac059227631a04eb62b9a6807ed37b1
Signed-off-by: Subrata Banik <subrata.banik at intel.com>
---
M src/soc/intel/common/block/fast_spi/fast_spi.c
M src/soc/intel/common/block/include/intelblocks/fast_spi.h
2 files changed, 13 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/20615/1

diff --git a/src/soc/intel/common/block/fast_spi/fast_spi.c b/src/soc/intel/common/block/fast_spi/fast_spi.c
index 1ef929c..9639ed1 100644
--- a/src/soc/intel/common/block/fast_spi/fast_spi.c
+++ b/src/soc/intel/common/block/fast_spi/fast_spi.c
@@ -118,6 +118,14 @@
 }
 
 /*
+ * Get FAST_SPIBAR BIOS Control Register
+ */
+uintptr_t fast_spi_get_bios_control_reg(void)
+{
+	return pci_read_config8(PCH_DEV_SPI, SPIBAR_BIOS_CONTROL);
+}
+
+/*
  * Lock FAST_SPIBAR.
  */
 void fast_spi_lock_bar(void)
diff --git a/src/soc/intel/common/block/include/intelblocks/fast_spi.h b/src/soc/intel/common/block/include/intelblocks/fast_spi.h
index b399e4d..eb778aa 100644
--- a/src/soc/intel/common/block/include/intelblocks/fast_spi.h
+++ b/src/soc/intel/common/block/include/intelblocks/fast_spi.h
@@ -44,6 +44,11 @@
  * Set FAST_SPI opcode menu.
  */
 void fast_spi_set_opcode_menu(void);
+
+/*
+ * Get FAST_SPIBAR BIOS Control Register
+ */
+uintptr_t fast_spi_get_bios_control_reg(void);
 /*
  * Lock FAST_SPIBAR.
  */

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b36c1a51ac059227631a04eb62b9a6807ed37b1
Gerrit-Change-Number: 20615
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170717/8aa362da/attachment-0001.html>


More information about the coreboot-gerrit mailing list