Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/22395
to look at the new patch set (#2).
Change subject: soc/intel/skylake: Make use of common CSE code for skylake
......................................................................
soc/intel/skylake: Make use of common CSE code for skylake
TEST=Ensures global reset could able to reset system.
Change-Id: I11ce1812a5a0aa2da6b414555374460d606e220e
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
M src/soc/intel/skylake/Kconfig
M src/soc/intel/skylake/bootblock/pch.c
M src/soc/intel/skylake/include/soc/me.h
M src/soc/intel/skylake/me.c
4 files changed, 20 insertions(+), 395 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/22395/2
--
To view, visit https://review.coreboot.org/22395
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I11ce1812a5a0aa2da6b414555374460d606e220e
Gerrit-Change-Number: 22395
Gerrit-PatchSet: 2
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/22394
Change subject: soc/intel/common: Fix CSE common code to accomodate Skylake/Kabylake
......................................................................
soc/intel/common: Fix CSE common code to accomodate Skylake/Kabylake
This patch ensures Skylake/Kabylake soc can make use of common
CSE code in order to perform global reset using HECI interface.
TEST=Build and boot on soraka/eve/reef/cnl-rvp
Change-Id: I49b89be8106a19cde1eb9b488ac660637537ad71
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
M src/soc/intel/common/block/cse/cse.c
1 file changed, 22 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/22394/1
diff --git a/src/soc/intel/common/block/cse/cse.c b/src/soc/intel/common/block/cse/cse.c
index 617684c..6e2468c 100644
--- a/src/soc/intel/common/block/cse/cse.c
+++ b/src/soc/intel/common/block/cse/cse.c
@@ -14,6 +14,7 @@
*/
#include <arch/early_variables.h>
+#include <assert.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <delay.h>
@@ -21,12 +22,10 @@
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <intelblocks/cse.h>
+#include <soc/iomap.h>
#include <soc/pci_devs.h>
#include <string.h>
#include <timer.h>
-
-/* default window for early boot, must be at least 12 bytes in size */
-#define HECI1_BASE_ADDRESS 0xfed1a000
/* Wait up to 15 sec for HECI to get ready */
#define HECI_DELAY_READY (15 * 1000)
@@ -108,15 +107,35 @@
cse->sec_bar = tempbar;
}
+/* Get HECI BAR 0 from PCI configuration space */
+static uint32_t get_cse_bar(void)
+{
+ uintptr_t bar;
+
+ bar = pci_read_config32(PCH_DEV_CSE, PCI_BASE_ADDRESS_0);
+ assert(bar != 0);
+ /*
+ * Bits 31-12 are the base address as per EDS for SPI,
+ * Don't care about 0-11 bit
+ */
+ return (bar & ~PCI_BASE_ADDRESS_MEM_ATTR_MASK);
+}
+
static uint32_t read_bar(uint32_t offset)
{
struct cse_device *cse = car_get_var_ptr(&g_cse);
+ /* Reach PCI config space to get BAR incase CAR global not available */
+ if (!cse->sec_bar)
+ cse->sec_bar = get_cse_bar();
return read32((void *)(cse->sec_bar + offset));
}
static void write_bar(uint32_t offset, uint32_t val)
{
struct cse_device *cse = car_get_var_ptr(&g_cse);
+ /* Reach PCI config space to get BAR incase CAR global not available */
+ if (!cse->sec_bar)
+ cse->sec_bar = get_cse_bar();
return write32((void *)(cse->sec_bar + offset), val);
}
--
To view, visit https://review.coreboot.org/22394
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I49b89be8106a19cde1eb9b488ac660637537ad71
Gerrit-Change-Number: 22394
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>