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>
This commit is contained in:
parent
dee281d03f
commit
e85b6de804
|
@ -83,7 +83,7 @@ static const uint8_t ch3_bit_swizzling[] = {
|
||||||
* 0 0 2 GiB
|
* 0 0 2 GiB
|
||||||
* 0 1 4 GiB
|
* 0 1 4 GiB
|
||||||
* 1 0 8 GiB
|
* 1 0 8 GiB
|
||||||
* 1 1 Reserved
|
* 1 1 8 GiB
|
||||||
*/
|
*/
|
||||||
static uint8_t get_memory_skuid(void)
|
static uint8_t get_memory_skuid(void)
|
||||||
{
|
{
|
||||||
|
@ -142,6 +142,18 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
|
||||||
config->Ch3_DramDensity = 2;
|
config->Ch3_DramDensity = 2;
|
||||||
printk(BIOS_INFO, "MAINBOARD: Found supported memory: 8GB\n");
|
printk(BIOS_INFO, "MAINBOARD: Found supported memory: 8GB\n");
|
||||||
break;
|
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:
|
default:
|
||||||
printk(BIOS_INFO, "MAINBOARD: No supported memory found!\n");
|
printk(BIOS_INFO, "MAINBOARD: No supported memory found!\n");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue