soc/intel/{tgl,jsl}: Use soc/intel/jasperlake for Jasper Lake SoC
Switch to using Jasper Lake SoC code from soc/intel/jasperlake and stop referring from soc/intel/tigerlake. Addtionally mainboard changes are done to support build. BUG=b:150217037 TEST=Build and boot waddledoo. Build jasperlake_rvp and volteer board. Change-Id: I39f117bd66cb610a305bcdb8ea65332fd0ff4814 Signed-off-by: Aamir Bohra <aamir.bohra@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39825 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
51ce41c0e6
commit
a23e0c9d74
|
@ -18,7 +18,7 @@ DefinitionBlock(
|
||||||
0x20110725 /* OEM revision */
|
0x20110725 /* OEM revision */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#include <soc/intel/tigerlake/acpi/platform.asl>
|
#include <soc/intel/jasperlake/acpi/platform.asl>
|
||||||
|
|
||||||
/* global NVS and variables */
|
/* global NVS and variables */
|
||||||
#include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
|
#include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
|
||||||
|
@ -30,7 +30,7 @@ DefinitionBlock(
|
||||||
Device (PCI0)
|
Device (PCI0)
|
||||||
{
|
{
|
||||||
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
|
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
|
||||||
#include <soc/intel/tigerlake/acpi/southbridge.asl>
|
#include <soc/intel/jasperlake/acpi/southbridge.asl>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <baseboard/variants.h>
|
#include <baseboard/variants.h>
|
||||||
#include <soc/meminit_jsl.h>
|
#include <soc/meminit.h>
|
||||||
#include <soc/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
void mainboard_memory_init_params(FSPM_UPD *memupd)
|
void mainboard_memory_init_params(FSPM_UPD *memupd)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
chip soc/intel/tigerlake
|
chip soc/intel/jasperlake
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <baseboard/variants.h>
|
#include <baseboard/variants.h>
|
||||||
#include <baseboard/gpio.h>
|
#include <baseboard/gpio.h>
|
||||||
#include <gpio.h>
|
#include <gpio.h>
|
||||||
#include <soc/meminit_jsl.h>
|
#include <soc/meminit.h>
|
||||||
#include <soc/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
static const struct mb_cfg baseboard_memcfg_cfg = {
|
static const struct mb_cfg baseboard_memcfg_cfg = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
chip soc/intel/tigerlake
|
chip soc/intel/jasperlake
|
||||||
|
|
||||||
# Intel Common SoC Config
|
# Intel Common SoC Config
|
||||||
#+-------------------+---------------------------+
|
#+-------------------+---------------------------+
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
chip soc/intel/tigerlake
|
chip soc/intel/jasperlake
|
||||||
|
|
||||||
# Intel Common SoC Config
|
# Intel Common SoC Config
|
||||||
#+-------------------+---------------------------+
|
#+-------------------+---------------------------+
|
||||||
|
|
|
@ -25,7 +25,7 @@ DefinitionBlock(
|
||||||
0x20110725 /* OEM revision */
|
0x20110725 /* OEM revision */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#include <soc/intel/tigerlake/acpi/platform.asl>
|
#include <soc/intel/jasperlake/acpi/platform.asl>
|
||||||
|
|
||||||
/* global NVS and variables */
|
/* global NVS and variables */
|
||||||
#include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
|
#include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
|
||||||
|
@ -37,7 +37,7 @@ DefinitionBlock(
|
||||||
Device (PCI0)
|
Device (PCI0)
|
||||||
{
|
{
|
||||||
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
|
#include <soc/intel/common/block/acpi/acpi/northbridge.asl>
|
||||||
#include <soc/intel/tigerlake/acpi/southbridge.asl>
|
#include <soc/intel/jasperlake/acpi/southbridge.asl>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
#include <baseboard/variants.h>
|
#include <baseboard/variants.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <soc/meminit_jsl.h>
|
#include <soc/meminit.h>
|
||||||
#include <soc/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include "board_id.h"
|
#include "board_id.h"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#define __BASEBOARD_VARIANTS_H__
|
#define __BASEBOARD_VARIANTS_H__
|
||||||
|
|
||||||
#include <soc/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <soc/meminit_jsl.h>
|
#include <soc/meminit.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
chip soc/intel/tigerlake
|
chip soc/intel/jasperlake
|
||||||
|
|
||||||
device cpu_cluster 0 on
|
device cpu_cluster 0 on
|
||||||
device lapic 0 on end
|
device lapic 0 on end
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include <baseboard/variants.h>
|
#include <baseboard/variants.h>
|
||||||
#include <baseboard/gpio.h>
|
#include <baseboard/gpio.h>
|
||||||
#include <gpio.h>
|
#include <gpio.h>
|
||||||
#include <soc/meminit_jsl.h>
|
#include <soc/meminit.h>
|
||||||
#include <soc/romstage.h>
|
#include <soc/romstage.h>
|
||||||
|
|
||||||
static const struct mb_cfg jslrvp_ddr4_memcfg_cfg = {
|
static const struct mb_cfg jslrvp_ddr4_memcfg_cfg = {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
config SOC_INTEL_JASPERLAKE_COPY
|
config SOC_INTEL_JASPERLAKE
|
||||||
bool
|
bool
|
||||||
help
|
help
|
||||||
Intel Jasperlake support
|
Intel Jasperlake support
|
||||||
|
|
||||||
if SOC_INTEL_JASPERLAKE_COPY
|
if SOC_INTEL_JASPERLAKE
|
||||||
|
|
||||||
config CPU_SPECIFIC_OPTIONS
|
config CPU_SPECIFIC_OPTIONS
|
||||||
def_bool y
|
def_bool y
|
||||||
|
@ -192,7 +192,7 @@ config FSP_FD_PATH
|
||||||
depends on FSP_USE_REPO
|
depends on FSP_USE_REPO
|
||||||
default "3rdparty/fsp/JasperLakeFspBinPkg/Fsp.fd"
|
default "3rdparty/fsp/JasperLakeFspBinPkg/Fsp.fd"
|
||||||
|
|
||||||
config SOC_INTEL_JASPERLAKE_COPY_DEBUG_CONSENT
|
config SOC_INTEL_JASPERLAKE_DEBUG_CONSENT
|
||||||
int "Debug Consent for JSL"
|
int "Debug Consent for JSL"
|
||||||
# USB DBC is more common for developers so make this default to 3 if
|
# USB DBC is more common for developers so make this default to 3 if
|
||||||
# SOC_INTEL_DEBUG_CONSENT=y
|
# SOC_INTEL_DEBUG_CONSENT=y
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ifeq ($(CONFIG_SOC_INTEL_JASPERLAKE_COPY),y)
|
ifeq ($(CONFIG_SOC_INTEL_JASPERLAKE),y)
|
||||||
|
|
||||||
subdirs-y += romstage
|
subdirs-y += romstage
|
||||||
subdirs-y += ../../../cpu/intel/microcode
|
subdirs-y += ../../../cpu/intel/microcode
|
||||||
|
|
|
@ -89,7 +89,7 @@ static void soc_memory_init_params(FSP_M_CONFIG *m_cfg,
|
||||||
m_cfg->SmbusEnable = config->SmbusEnable;
|
m_cfg->SmbusEnable = config->SmbusEnable;
|
||||||
|
|
||||||
/* Set debug probe type */
|
/* Set debug probe type */
|
||||||
m_cfg->PlatformDebugConsent = CONFIG_SOC_INTEL_JASPERLAKE_COPY_DEBUG_CONSENT;
|
m_cfg->PlatformDebugConsent = CONFIG_SOC_INTEL_JASPERLAKE_DEBUG_CONSENT;
|
||||||
|
|
||||||
/* VT-d config */
|
/* VT-d config */
|
||||||
m_cfg->VtdDisable = 0;
|
m_cfg->VtdDisable = 0;
|
||||||
|
|
|
@ -1,22 +1,9 @@
|
||||||
config SOC_INTEL_TIGERLAKE_BASE
|
|
||||||
bool
|
|
||||||
|
|
||||||
config SOC_INTEL_TIGERLAKE
|
config SOC_INTEL_TIGERLAKE
|
||||||
bool
|
bool
|
||||||
select SOC_INTEL_TIGERLAKE_BASE
|
|
||||||
#TODO - Enable INTEL_CAR_NEM_ENHANCED
|
|
||||||
select INTEL_CAR_NEM
|
|
||||||
help
|
help
|
||||||
Intel Tigerlake support
|
Intel Tigerlake support
|
||||||
|
|
||||||
config SOC_INTEL_JASPERLAKE
|
if SOC_INTEL_TIGERLAKE
|
||||||
bool
|
|
||||||
select SOC_INTEL_TIGERLAKE_BASE
|
|
||||||
select INTEL_CAR_NEM
|
|
||||||
help
|
|
||||||
Intel Jasperlake support
|
|
||||||
|
|
||||||
if SOC_INTEL_TIGERLAKE_BASE
|
|
||||||
|
|
||||||
config CPU_SPECIFIC_OPTIONS
|
config CPU_SPECIFIC_OPTIONS
|
||||||
def_bool y
|
def_bool y
|
||||||
|
@ -36,6 +23,7 @@ config CPU_SPECIFIC_OPTIONS
|
||||||
select INTEL_DESCRIPTOR_MODE_CAPABLE
|
select INTEL_DESCRIPTOR_MODE_CAPABLE
|
||||||
select HAVE_SMI_HANDLER
|
select HAVE_SMI_HANDLER
|
||||||
select IDT_IN_EVERY_STAGE
|
select IDT_IN_EVERY_STAGE
|
||||||
|
select INTEL_CAR_NEM #TODO - Enable INTEL_CAR_NEM_ENHANCED
|
||||||
select INTEL_GMA_ACPI
|
select INTEL_GMA_ACPI
|
||||||
select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
|
select INTEL_GMA_ADD_VBT if RUN_FSP_GOP
|
||||||
select IOAPIC
|
select IOAPIC
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ifeq ($(CONFIG_SOC_INTEL_TIGERLAKE_BASE),y)
|
ifeq ($(CONFIG_SOC_INTEL_TIGERLAKE),y)
|
||||||
|
|
||||||
subdirs-y += romstage
|
subdirs-y += romstage
|
||||||
subdirs-y += ../../../cpu/intel/microcode
|
subdirs-y += ../../../cpu/intel/microcode
|
||||||
|
|
Loading…
Reference in New Issue