From e85b6de80430b3598423a4ef75f9e50d1a303199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Laufenb=C3=B6ck?= Date: Thu, 22 Jul 2021 09:47:03 +0200 Subject: [PATCH] mainboard/up/squared: Add one more DRAM configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a new configuration option with more density for 8GB variants of the up squared board. Settings are taken from slimbootloader. Signed-off-by: Florian Laufenböck Change-Id: I217b04be94e913b75e2bac0a4ae1c43f2411a044 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56509 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/mainboard/up/squared/romstage.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mainboard/up/squared/romstage.c b/src/mainboard/up/squared/romstage.c index f43df48673..a7dc0a1704 100644 --- a/src/mainboard/up/squared/romstage.c +++ b/src/mainboard/up/squared/romstage.c @@ -83,7 +83,7 @@ static const uint8_t ch3_bit_swizzling[] = { * 0 0 2 GiB * 0 1 4 GiB * 1 0 8 GiB - * 1 1 Reserved + * 1 1 8 GiB */ static uint8_t get_memory_skuid(void) { @@ -142,6 +142,18 @@ void mainboard_memory_init_params(FSPM_UPD *memupd) config->Ch3_DramDensity = 2; printk(BIOS_INFO, "MAINBOARD: Found supported memory: 8GB\n"); break; + case 3: /* 8GB */ + config->DualRankSupportEnable = 1; + config->Ch0_RankEnable = 1; + config->Ch0_DramDensity = 4; + config->Ch1_RankEnable = 1; + config->Ch1_DramDensity = 4; + config->Ch2_RankEnable = 1; + config->Ch2_DramDensity = 4; + config->Ch3_RankEnable = 1; + config->Ch3_DramDensity = 4; + printk(BIOS_INFO, "MAINBOARD: Found supported memory: 8GB\n"); + break; default: printk(BIOS_INFO, "MAINBOARD: No supported memory found!\n"); break;