Philipp Deppenwiese submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved Christian Walter: Looks good to me, approved
vendorcode/intel/fsp/fsp2_0/cpx_sp: Update to FSP ww26 release and adapt soc

CPX-SP FSP ww26 release added UPDs to allow FSP serial redirection. Also
update memory map HOB definition file accordingly.

The CPX-SP soc code is updated to direct FSP log to SOL.

Signed-off-by: Jonathan Zhang <jonzhang@fb.com>
Change-Id: Ifd86fb710a0b2bdc8a43225b50b24f585d320caf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42840
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
M src/mainboard/ocp/deltalake/romstage.c
M src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/FspmUpd.h
M src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h
3 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/src/mainboard/ocp/deltalake/romstage.c b/src/mainboard/ocp/deltalake/romstage.c
index 35c7e2d..fb9a549 100644
--- a/src/mainboard/ocp/deltalake/romstage.c
+++ b/src/mainboard/ocp/deltalake/romstage.c
@@ -14,7 +14,9 @@

static void mainboard_config_iio(FSPM_UPD *mupd)
{
- /* To be implemented */
+ /* Send FSP log message to SOL */
+ mupd->FspmConfig.SerialIoUartDebugEnable = 1;
+ mupd->FspmConfig.SerialIoUartDebugIoBase = 0x2f8;
}

void mainboard_memory_init_params(FSPM_UPD *mupd)
diff --git a/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/FspmUpd.h b/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/FspmUpd.h
index fd84f1a..18f8167 100644
--- a/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/FspmUpd.h
+++ b/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/FspmUpd.h
@@ -594,7 +594,7 @@
**/
UINT8 NtbXlinkCtlOverride;

-/** Offset 0x0100 - PchAdrEn
+/** Offset 0x0100 - PchSirqMode
Enable or Disable PchSirqMode
**/
UINT8 PchSirqMode;
@@ -633,7 +633,23 @@
**/
UINT8 PchPciePortLinkSpeed[20];

-/** Offset 0x0140
+/** Offset 0x0140 - SerialIoUartDebugEnable
+ Enable SerialIo Uart debug library in FSP.
+ 0:Disable, 1:Enable
+**/
+ UINT8 SerialIoUartDebugEnable;
+
+/** Offset 0x0141
+**/
+ UINT8 UnusedUpdSpace3;
+
+/** Offset 0x0142 - ISA Serial Base selection
+ Select ISA Serial Base address could be initialized by boot loader. Default is 0x3F8
+ 0x3F8, 0x2F8
+**/
+ UINT16 SerialIoUartDebugIoBase;
+
+/** Offset 0x0144
**/
UINT8 ReservedMemoryInitUpd[16];
} FSP_M_CONFIG;
@@ -654,9 +670,9 @@
**/
FSP_M_CONFIG FspmConfig;

-/** Offset 0x0150
+/** Offset 0x0154
**/
- UINT8 UnusedUpdSpace3[6];
+ UINT8 UnusedUpdSpace4[2];

/** Offset 0x0156
**/
diff --git a/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h b/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h
index e9c7dbf..ee86a6d 100644
--- a/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h
+++ b/src/vendorcode/intel/fsp/fsp2_0/cooperlake_sp/hob_memmap.h
@@ -85,7 +85,7 @@

/* NOTE - Reserved sizes need to be calibrated if any of the above #define values change */
typedef struct SystemMemoryMapHob {
- UINT8 reserved1[61];
+ UINT8 reserved1[58];

UINT32 lowMemBase; // Mem base in 64MB units for below 4GB mem.
UINT32 lowMemSize; // Mem size in 64MB units for below 4GB mem.
@@ -99,11 +99,11 @@
UINT8 numberEntries; // Number of Memory Map Elements
SYSTEM_MEMORY_MAP_ELEMENT Element[MAX_SOCKET * MAX_DRAM_CLUSTERS * MAX_SAD_RULES];

- UINT8 reserved3[24417];
+ UINT8 reserved3[24514];

UINT32 MmiohBase; // MMIOH base in 64MB granularity

- UINT8 reserved4[10];
+ UINT8 reserved4[2];

} SYSTEM_MEMORY_MAP_HOB;


To view, visit change 42840. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ifd86fb710a0b2bdc8a43225b50b24f585d320caf
Gerrit-Change-Number: 42840
Gerrit-PatchSet: 5
Gerrit-Owner: Jonathan Zhang <jonzhang@fb.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com>
Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-MessageType: merged