mb/google/brya: Enable SKIP_RAM_ID_STRAPS for TRULO variant

This change enables SKIP_RAM_ID_STRAPS for the TRULO board variant as
this board design won't stuff MEM strap GPIO hence, sets the static
SPD ID to 0 for the MT62F512M32D2DR-031 DRAM part.

BUG=b:351976770
TEST=Able to build google/trulo.

Change-Id: I1acb4680a143611c55f4fa6e032fde38c62af054
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83543
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Dinesh Gehlot <digehlot@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
Subrata Banik 2024-07-18 15:12:49 +05:30
parent 0ec0f02e42
commit 1cefae23f8
2 changed files with 16 additions and 0 deletions

View File

@ -550,6 +550,7 @@ config BOARD_GOOGLE_TIVVIKS
config BOARD_GOOGLE_TRULO
select BOARD_GOOGLE_BASEBOARD_TRULO
select SKIP_RAM_ID_STRAPS
select SOC_INTEL_TWINLAKE
select SOC_INTEL_COMMON_BLOCK_HDA_VERB
select SOC_INTEL_TCSS_USE_PDC_PMC_USBC_MUX_CONFIGURATION
@ -1000,4 +1001,16 @@ config PCIEXP_DEFAULT_MAX_RESIZABLE_BAR_BITS
int
default 33
config SKIP_RAM_ID_STRAPS
bool
default n
help
Enable this option if the board variant does not rely on MEM Strap GPIOs to determine the SPD ID.
This is typically the case when the DRAM part is fixed (only one type is used).
In such board designs, enabling this option will bypass the reading of MEM Strap GPIOs
and instead use a static SPD ID number.
If unsure, leave this option disabled.
endif # BOARD_GOOGLE_BRYA_COMMON

View File

@ -76,6 +76,9 @@ const struct mb_cfg *variant_memory_params(void)
int variant_memory_sku(void)
{
if (CONFIG(SKIP_RAM_ID_STRAPS))
return 0; /* SPD ID: 0 - MT62F512M32D2DR-031 WT:B */
/*
* Memory configuration board straps
* GPIO_MEM_CONFIG_0 GPP_E2