summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Laufenböck <florian@laufenbock.de>2021-07-22 09:47:03 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-23 13:17:49 +0000
commite85b6de80430b3598423a4ef75f9e50d1a303199 (patch)
treef3da0897a30284bdb1627d4cf7340b46d0415ce9
parentdee281d03f090b81ba848713be6e864beb7f79d7 (diff)
mainboard/up/squared: Add one more DRAM configuration
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 <florian@laufenbock.de> Change-Id: I217b04be94e913b75e2bac0a4ae1c43f2411a044 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56509 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
-rw-r--r--src/mainboard/up/squared/romstage.c14
1 files changed, 13 insertions, 1 deletions
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;