mb/google/brya/var/banshee: Add SODIMM support
Banshee will use SODIMM. Add memory.c to override baseboard. BUG=b:208910227 BRANCH=None TEST=util/abuild/abuild -p none -t google/brya -x -a Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: I4d2fe986b786b3553b67910b589fce12647ee69a Reviewed-on: https://review.coreboot.org/c/coreboot/+/61192 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
parent
47486b92ce
commit
85f691ab8d
|
@ -40,7 +40,7 @@ config BOARD_GOOGLE_BRYA_COMMON
|
|||
config BOARD_GOOGLE_BASEBOARD_BRYA
|
||||
def_bool n
|
||||
select BOARD_GOOGLE_BRYA_COMMON
|
||||
select MEMORY_SOLDERDOWN
|
||||
select MEMORY_SOLDERDOWN if !BOARD_GOOGLE_BANSHEE
|
||||
select SOC_INTEL_ALDERLAKE_PCH_P
|
||||
select SYSTEM_TYPE_LAPTOP
|
||||
|
||||
|
|
|
@ -154,3 +154,4 @@ config BOARD_GOOGLE_VOLMAR
|
|||
config BOARD_GOOGLE_BANSHEE
|
||||
bool "-> Banshee"
|
||||
select BOARD_GOOGLE_BASEBOARD_BRYA
|
||||
select MEMORY_SODIMM
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
romstage-y += memory.c
|
|
@ -0,0 +1,37 @@
|
|||
/* 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 = {
|
||||
/* Baseboard uses only 100ohm Rcomp resistors */
|
||||
.resistor = 100,
|
||||
|
||||
/* Baseboard Rcomp target values */
|
||||
.targets = {50, 20, 25, 25, 25},
|
||||
},
|
||||
|
||||
.ect = 1, /* Early Command Training */
|
||||
|
||||
.UserBd = BOARD_TYPE_MOBILE,
|
||||
};
|
||||
|
||||
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[1].addr_dimm[0] = 0x52;
|
||||
}
|
Loading…
Reference in New Issue