summaryrefslogtreecommitdiff
path: root/src/soc/intel/fsp_broadwell_de/fsp
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-19 18:50:20 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-21 06:43:29 +0000
commitf67c81fc7030e278cf3dbc906f9ba5e265d843f0 (patch)
treec89f4856690b80e8aa3c53a51ff2e4dfd553c84f /src/soc/intel/fsp_broadwell_de/fsp
parent433471244b7313dde6bb07d58943bfd0d9957c59 (diff)
downloadcoreboot-f67c81fc7030e278cf3dbc906f9ba5e265d843f0.tar.xz
soc/intel/fsp_broadwell_de: Drop support
Relocatable ramstage, postcar stage and C_ENVIRONMENT_BOOTBLOCK are now mandatory features, which this platform lacks. Change-Id: I8b6502b0894f9e2b8b1334871d7b6cde65cba7d4 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36984 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/fsp')
-rw-r--r--src/soc/intel/fsp_broadwell_de/fsp/Kconfig140
-rw-r--r--src/soc/intel/fsp_broadwell_de/fsp/Makefile.inc17
-rw-r--r--src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c142
-rw-r--r--src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.h35
4 files changed, 0 insertions, 334 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/fsp/Kconfig b/src/soc/intel/fsp_broadwell_de/fsp/Kconfig
deleted file mode 100644
index f958e7194f..0000000000
--- a/src/soc/intel/fsp_broadwell_de/fsp/Kconfig
+++ /dev/null
@@ -1,140 +0,0 @@
-config BROADWELL_DE_FSP_SPECIFIC_OPTIONS
- def_bool y
- select PLATFORM_USES_FSP1_0
- select USE_GENERIC_FSP_CAR_INC
- select FSP_USES_UPD
-
-config FSP_FILE
- string
- default "3rdparty/fsp/BroadwellDEFspBinPkg/FspBin/BROADWELLDE_FSP.bin"
- help
- The path and filename of the Intel FSP binary for this platform.
-
-config FSP_HEADER_PATH
- string
- default "$(top)/3rdparty/fsp/BroadwellDEFspBinPkg/include/"
-
-config FSP_SRC_PATH
- string
- default "$(top)/3rdparty/fsp/BroadwellDEFspBinPkg/include/fspsupport.c"
-
-config FSP_LOC
- hex
- default 0xffeb0000
- help
- The location in CBFS that the FSP is located. This must match the
- value that is set in the FSP binary. If the FSP needs to be moved,
- rebase the FSP with Intel's BCT (tool).
-
- The Broadwell-DE FSP is built with a preferred base address of
- 0xffeb0000.
-
-config DCACHE_RAM_BASE
- hex
- default 0xfe100000
- help
- This address needs to match the setup performed inside FSP.
- On Broadwell-DE the FSP allocates temporary RAM starting at 0xfe100000.
-
-config DCACHE_RAM_SIZE
- hex
- default 0x8000
- help
- The DCACHE is shared between FSP itself and the rest of the coreboot
- stages. A size of 0x8000 works fine while providing enough space for
- features like VBOOT in verstage. Further increase to a power of two
- aligned value leads to errors in FSP.
-
-config FSP_MEMORY_DOWN
- bool "Enable Memory Down"
- default n
- help
- Load SPD data from ROM instead of trying to read from SMBus.
-
- If the platform has DIMM sockets, say N. If memory is down, say Y and
- supply the appropriate SPD data for each Channel/DIMM.
-
-config FSP_MEMORY_DOWN_CH0DIMM0_SPD_PRESENT
- bool "Channel 0, DIMM 0 Present"
- default n
- depends on FSP_MEMORY_DOWN
- help
- Select Y if Channel 0, DIMM 0 is present.
-
-config FSP_MEMORY_DOWN_CH0DIMM0_SPD_FILE
- string "Channel 0, DIMM 0 SPD File"
- default "spd_ch0_dimm0.bin"
- depends on FSP_MEMORY_DOWN_CH0DIMM0_SPD_PRESENT
- help
- Path to the file which contains the SPD data for Channel 0, DIMM 0.
-
-config FSP_MEMORY_DOWN_CH0DIMM1_SPD_PRESENT
- bool "Channel 0, DIMM 1 Present"
- default n
- depends on FSP_MEMORY_DOWN
- help
- Select Y if Channel 0, DIMM 1 is present.
-
-config FSP_MEMORY_DOWN_CH0DIMM1_SPD_FILE
- string "Channel 0, DIMM 1 SPD File"
- default "spd_ch0_dimm1.bin"
- depends on FSP_MEMORY_DOWN_CH0DIMM1_SPD_PRESENT
- help
- Path to the file which contains the SPD data for Channel 0, DIMM 1.
-
-config FSP_MEMORY_DOWN_CH1DIMM0_SPD_PRESENT
- bool "Channel 1, DIMM 0 Present"
- default n
- depends on FSP_MEMORY_DOWN
- help
- Select Y if Channel 1, DIMM 0 is present.
-
-config FSP_MEMORY_DOWN_CH1DIMM0_SPD_FILE
- string "Channel 1, DIMM 0 SPD File"
- default "spd_ch1_dimm0.bin"
- depends on FSP_MEMORY_DOWN_CH1DIMM0_SPD_PRESENT
- help
- Path to the file which contains the SPD data for Channel 1, DIMM 0.
-
-config FSP_MEMORY_DOWN_CH1DIMM1_SPD_PRESENT
- bool "Channel 1, DIMM 1 Present"
- default n
- depends on FSP_MEMORY_DOWN
- help
- Select Y if Channel 1, DIMM 1 is present.
-
-config FSP_MEMORY_DOWN_CH1DIMM1_SPD_FILE
- string "Channel 1, DIMM 1 SPD File"
- default "spd_ch1_dimm1.bin"
- depends on FSP_MEMORY_DOWN_CH1DIMM1_SPD_PRESENT
- help
- Path to the file which contains the SPD data for Channel 1, DIMM 1.
-
-config FSP_HYPERTHREADING
- bool "Enable Hyper-Threading"
- default y
- help
- Enable Intel(r) Hyper-Threading Technology for the Broadwell-DE SoC.
-
-config FSP_EHCI1_ENABLE
- bool "EHCI1 Enable"
- default n
- help
- Enable EHCI controller 1
-
-config FSP_EHCI2_ENABLE
- bool "EHCI2 Enable"
- default n
- help
- Enable EHCI controller 2
-
-config FSP_DEBUG_LEVEL
- int "FSP debug level (0-3)"
- default 0
- range 0 3
- help
- Select the debug level, where:
- 0: DISABLED
- 1: MINIMUM
- 2: NORMAL
- 3: MAXIMUM
diff --git a/src/soc/intel/fsp_broadwell_de/fsp/Makefile.inc b/src/soc/intel/fsp_broadwell_de/fsp/Makefile.inc
deleted file mode 100644
index 651976483e..0000000000
--- a/src/soc/intel/fsp_broadwell_de/fsp/Makefile.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-romstage-y += chipset_fsp_util.c
-
-cbfs-files-$(CONFIG_FSP_MEMORY_DOWN_CH0DIMM0_SPD_PRESENT) += spd_ch0_dimm0.bin
-spd_ch0_dimm0.bin-file := $(call strip_quotes,$(CONFIG_FSP_MEMORY_DOWN_CH0DIMM0_SPD_FILE))
-spd_ch0_dimm0.bin-type := spd
-
-cbfs-files-$(CONFIG_FSP_MEMORY_DOWN_CH0DIMM1_SPD_PRESENT) += spd_ch0_dimm1.bin
-spd_ch0_dimm1.bin-file := $(call strip_quotes,$(CONFIG_FSP_MEMORY_DOWN_CH0DIMM1_SPD_FILE))
-spd_ch0_dimm1.bin-type := spd
-
-cbfs-files-$(CONFIG_FSP_MEMORY_DOWN_CH1DIMM0_SPD_PRESENT) += spd_ch1_dimm0.bin
-spd_ch1_dimm0.bin-file := $(call strip_quotes,$(CONFIG_FSP_MEMORY_DOWN_CH1DIMM0_SPD_FILE))
-spd_ch1_dimm0.bin-type := spd
-
-cbfs-files-$(CONFIG_FSP_MEMORY_DOWN_CH1DIMM1_SPD_PRESENT) += spd_ch1_dimm1.bin
-spd_ch1_dimm1.bin-file := $(call strip_quotes,$(CONFIG_FSP_MEMORY_DOWN_CH1DIMM1_SPD_FILE))
-spd_ch1_dimm1.bin-type := spd
diff --git a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c b/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
deleted file mode 100644
index edb313e7d5..0000000000
--- a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.c
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2013-2014 Sage Electronic Engineering, LLC.
- * Copyright (C) 2015-2016 Intel Corporation. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include <types.h>
-#include <string.h>
-#include <console/console.h>
-#include <bootstate.h>
-#include <cbfs.h>
-#include <cbmem.h>
-#include <device/device.h>
-#include <device/pci_def.h>
-#include <drivers/intel/fsp1_0/fsp_util.h>
-#include <soc/pci_devs.h>
-#include <soc/romstage.h>
-#include <fsp.h>
-
-#include "../chip.h"
-
-/* Copy the default UPD region and settings to a buffer for modification */
-static void GetUpdDefaultFromFsp (FSP_INFO_HEADER *FspInfo, UPD_DATA_REGION *UpdData)
-{
- VPD_DATA_REGION *VpdDataRgnPtr;
- UPD_DATA_REGION *UpdDataRgnPtr;
- VpdDataRgnPtr = (VPD_DATA_REGION *)(UINT32)(FspInfo->CfgRegionOffset + FspInfo->ImageBase);
- UpdDataRgnPtr = (UPD_DATA_REGION *)(UINT32)(VpdDataRgnPtr->PcdUpdRegionOffset + FspInfo->ImageBase);
- memcpy((void *)UpdData, (void *)UpdDataRgnPtr, sizeof(UPD_DATA_REGION));
-}
-
-typedef struct soc_intel_fsp_broadwell_de_config config_t;
-
-/**
- * Update the UPD data based on values from devicetree.cb
- *
- * @param UpdData Pointer to the UPD Data structure
- */
-static void ConfigureDefaultUpdData(UPD_DATA_REGION *UpdData)
-{
- /*
- * Serial Port
- */
- if (CONFIG(INTEGRATED_UART)) {
- UpdData->SerialPortConfigure = 1;
- /* values are from FSP .bsf file */
- if (CONFIG(CONSOLE_SERIAL_9600))
- UpdData->SerialPortBaudRate = 8;
- else if (CONFIG(CONSOLE_SERIAL_19200))
- UpdData->SerialPortBaudRate = 9;
- else if (CONFIG(CONSOLE_SERIAL_38400))
- UpdData->SerialPortBaudRate = 10;
- else if (CONFIG(CONSOLE_SERIAL_57600))
- UpdData->SerialPortBaudRate = 11;
- else if (CONFIG(CONSOLE_SERIAL_115200))
- UpdData->SerialPortBaudRate = 12;
- }
-
- if (!CONFIG(CONSOLE_SERIAL))
- UpdData->SerialPortType = 0;
-
- UpdData->DebugOutputLevel = CONFIG_FSP_DEBUG_LEVEL;
-
- /*
- * Memory Down
- */
- if (CONFIG(FSP_MEMORY_DOWN)) {
- UpdData->MemDownEnable = 1;
-
- if (CONFIG(FSP_MEMORY_DOWN_CH0DIMM0_SPD_PRESENT))
- UpdData->MemDownCh0Dimm0SpdPtr
- = (UINT32)cbfs_boot_map_with_leak("spd_ch0_dimm0.bin", CBFS_TYPE_SPD, NULL);
- if (CONFIG(FSP_MEMORY_DOWN_CH0DIMM1_SPD_PRESENT))
- UpdData->MemDownCh0Dimm1SpdPtr
- = (UINT32)cbfs_boot_map_with_leak("spd_ch0_dimm1.bin", CBFS_TYPE_SPD, NULL);
- if (CONFIG(FSP_MEMORY_DOWN_CH1DIMM0_SPD_PRESENT))
- UpdData->MemDownCh1Dimm0SpdPtr
- = (UINT32)cbfs_boot_map_with_leak("spd_ch1_dimm0.bin", CBFS_TYPE_SPD, NULL);
- if (CONFIG(FSP_MEMORY_DOWN_CH1DIMM1_SPD_PRESENT))
- UpdData->MemDownCh1Dimm1SpdPtr
- = (UINT32)cbfs_boot_map_with_leak("spd_ch1_dimm1.bin", CBFS_TYPE_SPD, NULL);
- } else {
- UpdData->MemDownEnable = 0;
- }
- printk(FSP_INFO_LEVEL, "Memory Down Support: %s\n",
- UpdData->MemDownEnable ? "Enabled" : "Disabled");
-
- /*
- * Fast Boot
- */
- if (CONFIG(ENABLE_MRC_CACHE))
- UpdData->MemFastBoot = 1;
- else
- UpdData->MemFastBoot = 0;
-
- /*
- * Hyper-Threading
- */
- if (CONFIG(FSP_HYPERTHREADING))
- UpdData->HyperThreading = 1;
- else
- UpdData->HyperThreading = 0;
-
- /* Enable USB */
- if (CONFIG(FSP_EHCI1_ENABLE))
- UpdData->Ehci1Enable = 1;
- else
- UpdData->Ehci1Enable = 0;
-
- if (CONFIG(FSP_EHCI2_ENABLE))
- UpdData->Ehci2Enable = 1;
- else
- UpdData->Ehci2Enable = 0;
-}
-
-/* Set up the Broadwell-DE specific structures for the call into the FSP */
-void chipset_fsp_early_init(FSP_INIT_PARAMS *pFspInitParams, FSP_INFO_HEADER *fsp_ptr)
-{
- FSP_INIT_RT_BUFFER *pFspRtBuffer = pFspInitParams->RtBufferPtr;
-
- /* Initialize the UPD Data */
- GetUpdDefaultFromFsp (fsp_ptr, pFspRtBuffer->Common.UpdDataRgnPtr);
- ConfigureDefaultUpdData(pFspRtBuffer->Common.UpdDataRgnPtr);
- pFspInitParams->NvsBufferPtr = NULL;
-
-#if CONFIG(ENABLE_MRC_CACHE)
- /* Find the fastboot cache that was saved in the ROM */
- pFspInitParams->NvsBufferPtr = find_and_set_fastboot_cache();
-#endif
-
- return;
-}
diff --git a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.h b/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.h
deleted file mode 100644
index 057d7fda0d..0000000000
--- a/src/soc/intel/fsp_broadwell_de/fsp/chipset_fsp_util.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2013-2014 Sage Electronic Engineering, LLC.
- * Copyright (C) 2015-2016 Intel Corporation
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#ifndef CHIPSET_FSP_UTIL_H
-#define CHIPSET_FSP_UTIL_H
-
-#include <fsp.h>
-
-#define FSP_INFO_HEADER_GUID \
- { \
- 0x912740BE, 0x2284, 0x4734, {0xB9, 0x71, 0x84, 0xB0, 0x27, 0x35, 0x3F, 0x0C} \
- }
-
-/*
- * The FSP Image ID is different for each platform's FSP and
- * can be used to verify that the right FSP binary is loaded.
- * For the Broadwell-DE FSP, the Image Id is "BDX-DE".
- */
-#define FSP_IMAGE_ID_DWORD0 ((unsigned int)(FSP_IMAGE_ID))
-#define FSP_IMAGE_ID_DWORD1 ((unsigned int)(FSP_IMAGE_ID >> 32))
-
-#endif /* CHIPSET_FSP_UTIL_H */