soc/intel/quark: make use of common cbmem_top_chipset
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 <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36621 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
97012bd019
commit
6754dcda74
|
@ -32,6 +32,8 @@ config CPU_SPECIFIC_OPTIONS
|
||||||
select PLATFORM_USES_FSP2_0
|
select PLATFORM_USES_FSP2_0
|
||||||
select SOC_INTEL_COMMON
|
select SOC_INTEL_COMMON
|
||||||
select SOC_INTEL_COMMON_RESET
|
select SOC_INTEL_COMMON_RESET
|
||||||
|
select SOC_INTEL_COMMON_BLOCK
|
||||||
|
select SOC_INTEL_COMMON_BLOCK_SA_FSP_TOLUM
|
||||||
select SOC_SETS_MSRS
|
select SOC_SETS_MSRS
|
||||||
select SPI_FLASH
|
select SPI_FLASH
|
||||||
select UART_OVERRIDE_REFCLK
|
select UART_OVERRIDE_REFCLK
|
||||||
|
|
|
@ -18,23 +18,6 @@
|
||||||
#include <cbmem.h>
|
#include <cbmem.h>
|
||||||
#include <soc/reg_access.h>
|
#include <soc/reg_access.h>
|
||||||
|
|
||||||
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)
|
void fill_postcar_frame(struct postcar_frame *pcf)
|
||||||
{
|
{
|
||||||
uintptr_t top_of_ram;
|
uintptr_t top_of_ram;
|
||||||
|
|
Loading…
Reference in New Issue