aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/fsp_broadwell_de/memmap.c
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/memmap.c
parent433471244b7313dde6bb07d58943bfd0d9957c59 (diff)
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/memmap.c')
-rw-r--r--src/soc/intel/fsp_broadwell_de/memmap.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/memmap.c b/src/soc/intel/fsp_broadwell_de/memmap.c
deleted file mode 100644
index 96eb20502c..0000000000
--- a/src/soc/intel/fsp_broadwell_de/memmap.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2013 Google, Inc.
- * Copyright (C) 2015-2016 Intel Corp.
- *
- * 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.
- */
-
-#define __SIMPLE_DEVICE__
-
-#include <cbmem.h>
-#include <cpu/x86/smm.h>
-#include <drivers/intel/fsp1_0/fsp_util.h>
-#include <soc/broadwell_de.h>
-#include <soc/pci_devs.h>
-#include <device/pci_ops.h>
-
-void *cbmem_top_chipset(void)
-{
- return find_fsp_reserved_mem(*(void **)CBMEM_FSP_HOB_PTR);
-}
-
-/*
- * Get TSEG base.
- */
-uintptr_t sa_get_tseg_base(void)
-{
- const pci_devfn_t dev = PCI_DEV(BUS0, VTD_DEV, VTD_FUNC);
-
- /* All regions concerned for have 1 MiB alignment. */
- return ALIGN_DOWN(pci_read_config32(dev, TSEG_BASE), 1 * MiB);
-}
-
-size_t sa_get_tseg_size(void)
-{
- const pci_devfn_t dev = PCI_DEV(BUS0, VTD_DEV, VTD_FUNC);
-
- /* All regions concerned for have 1 MiB alignment. */
- size_t ret = ALIGN_DOWN(pci_read_config32(dev, TSEG_LIMIT), 1 * MiB);
-
- /* Lower 20bit of TSEG_LIMIT are don't care, need to add 1MiB */
- ret += 1 * MiB;
-
- /* Subtract base to get the size */
- return ret - sa_get_tseg_base();
-}
-
-void smm_region(uintptr_t *start, size_t *size)
-{
- *start = sa_get_tseg_base();
- *size = sa_get_tseg_size();
-}