mb/google/brox/var/greenbayupoc: Configure board for SODIMM use
Configure SODIMM settings for greenbayupoc. The SODIMM settings are copied from mainboard/google/brya/variants/baseboard/brask/memory.c. BUG=b:336955026, b:332230842 TEST=emerge-brox coreboot chromeos-bootimage, flash and boot to OS using Hynix HMAG56EXNSA051N 4G and Micron MTA8AFT1G64HZ-3G2R1 8G SODIMM. Change-Id: I1552cadfa81c48fe561947ded078bcca2e6bc6ad Signed-off-by: Eren Peng <peng.eren@inventec.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82085 Reviewed-by: Derek Huang <derekhuang@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
@@ -44,7 +44,7 @@ config BOARD_GOOGLE_BASEBOARD_BROX
|
||||
select DRIVERS_AUDIO_SOF
|
||||
select DRIVERS_GFX_GENERIC
|
||||
select HAVE_SLP_S0_GATE
|
||||
select MEMORY_SOLDERDOWN
|
||||
select MEMORY_SOLDERDOWN if !BOARD_GOOGLE_GREENBAYUPOC
|
||||
select SOC_INTEL_COMMON_BLOCK_IPU
|
||||
select SOC_INTEL_CRASHLOG
|
||||
select SOC_INTEL_RAPTORLAKE
|
||||
@@ -70,6 +70,7 @@ config BOARD_GOOGLE_LOTSO
|
||||
|
||||
config BOARD_GOOGLE_GREENBAYUPOC
|
||||
select BOARD_GOOGLE_BASEBOARD_BROX
|
||||
select MEMORY_SODIMM
|
||||
|
||||
if BOARD_GOOGLE_BROX_COMMON
|
||||
|
||||
|
@@ -0,0 +1,3 @@
|
||||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
romstage-y += memory.c
|
42
src/mainboard/google/brox/variants/greenbayupoc/memory.c
Normal file
42
src/mainboard/google/brox/variants/greenbayupoc/memory.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#include <baseboard/variants.h>
|
||||
#include <soc/romstage.h>
|
||||
|
||||
static const struct mb_cfg ddr4_mem_config = {
|
||||
.type = MEM_TYPE_DDR4,
|
||||
|
||||
.rcomp = {
|
||||
.resistor = 100,
|
||||
.targets = {50, 20, 25, 25, 25},
|
||||
},
|
||||
|
||||
.LpDdrDqDqsReTraining = 1,
|
||||
|
||||
.ect = 1,
|
||||
|
||||
.UserBd = BOARD_TYPE_MOBILE,
|
||||
|
||||
.ddr_config = {
|
||||
.dq_pins_interleaved = 0,
|
||||
},
|
||||
};
|
||||
|
||||
const struct mb_cfg *variant_memory_params(void)
|
||||
{
|
||||
return &ddr4_mem_config;
|
||||
}
|
||||
|
||||
bool variant_is_half_populated(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void variant_get_spd_info(struct mem_spd *spd_info)
|
||||
{
|
||||
spd_info->topo = MEM_TOPO_DIMM_MODULE;
|
||||
spd_info->smbus[0].addr_dimm[0] = 0x50;
|
||||
spd_info->smbus[0].addr_dimm[1] = 0x51;
|
||||
spd_info->smbus[1].addr_dimm[0] = 0x52;
|
||||
spd_info->smbus[1].addr_dimm[1] = 0x53;
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# This is an auto-generated file. Do not edit!!
|
||||
# Add memory parts in mem_parts_used.txt and run spd_tools to regenerate.
|
||||
|
||||
SPD_SOURCES = placeholder
|
@@ -1,6 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# This is an auto-generated file. Do not edit!!
|
||||
# Generated by:
|
||||
# ./util/spd_tools/bin/part_id_gen ADL lp5 src/mainboard/google/brox/variants/brox/memory src/mainboard/google/brox/variants/brox/memory/mem_parts_used.txt
|
||||
|
||||
DRAM Part Name ID to assign
|
@@ -1,11 +0,0 @@
|
||||
# This is a CSV file containing a list of memory parts used by this variant.
|
||||
# One part per line with an optional fixed ID in column 2.
|
||||
# Only include a fixed ID if it is required for legacy reasons!
|
||||
# Generated IDs are dependent on the order of parts in this file,
|
||||
# so new parts must always be added at the end of the file!
|
||||
#
|
||||
# Generate an updated Makefile.mk and dram_id.generated.txt by running the
|
||||
# part_id_gen tool from util/spd_tools.
|
||||
# See util/spd_tools/README.md for more details and instructions.
|
||||
|
||||
# Part Name
|
@@ -9,6 +9,7 @@ end
|
||||
chip soc/intel/alderlake
|
||||
|
||||
device domain 0 on
|
||||
device ref smbus on end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user