From 6754dcda744c7ff7850024b4da1990475b0dfa7f Mon Sep 17 00:00:00 2001 From: Michael Niewöhner Date: Mon, 4 Nov 2019 22:07:29 +0100 Subject: soc/intel/quark: make use of common cbmem_top_chipset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces quark's own implementation of cbmem_top_chipset and selects the common code one. Change-Id: I445c471b654abfa922b20215e52a2794529be120 Signed-off-by: Michael Niewöhner Reviewed-on: https://review.coreboot.org/c/coreboot/+/36621 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Nico Huber --- src/soc/intel/quark/Kconfig | 2 ++ src/soc/intel/quark/memmap.c | 17 ----------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/soc/intel/quark/Kconfig b/src/soc/intel/quark/Kconfig index 461d230371..6938431728 100644 --- a/src/soc/intel/quark/Kconfig +++ b/src/soc/intel/quark/Kconfig @@ -32,6 +32,8 @@ config CPU_SPECIFIC_OPTIONS select PLATFORM_USES_FSP2_0 select SOC_INTEL_COMMON select SOC_INTEL_COMMON_RESET + select SOC_INTEL_COMMON_BLOCK + select SOC_INTEL_COMMON_BLOCK_SA_FSP_TOLUM select SOC_SETS_MSRS select SPI_FLASH select UART_OVERRIDE_REFCLK diff --git a/src/soc/intel/quark/memmap.c b/src/soc/intel/quark/memmap.c index 9ccaf55a1f..6cd2c9a73c 100644 --- a/src/soc/intel/quark/memmap.c +++ b/src/soc/intel/quark/memmap.c @@ -18,23 +18,6 @@ #include #include -void *cbmem_top_chipset(void) -{ - uint32_t top_of_memory; - - /* Determine the TSEG base */ - top_of_memory = reg_host_bridge_unit_read(QNC_MSG_FSBIC_REG_HSMMC); - top_of_memory &= SMM_START_MASK; - top_of_memory <<= 16; - - /* Reserve 64 KiB for RMU firmware */ - if (top_of_memory) - top_of_memory -= 0x10000; - - /* Return the top of memory */ - return (void *)top_of_memory; -} - void fill_postcar_frame(struct postcar_frame *pcf) { uintptr_t top_of_ram; -- cgit v1.2.3