soc/intel/tigerlake: Replace Reserved9 usage with DisableDimmCh# UPD.
This change updates memory configuration on Tiger Lake Platform to replace "Reserved9" with "DisableDimmCh#" UPD in init_spd_upds(). For reference https://review.coreboot.org/c/coreboot/+/39797 added "DisableDimmCh#" UPD. BUG=b:152000235 BRANCH=none TEST= build volteer and boot to kernel Signed-off-by: Srinidhi N Kaushik <srinidhi.n.kaushik@intel.com> Change-Id: Ie0b5783a8bef02ec8c265fa5b47ce532a77b9675 Reviewed-on: https://review.coreboot.org/c/coreboot/+/40061 Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Nick Vaccaro <nvaccaro@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e67ab180fb
commit
a5c27096a4
|
@ -40,45 +40,53 @@ static uint8_t get_dimm_cfg(uintptr_t dimm0, uintptr_t dimm1)
|
||||||
static void init_spd_upds(FSP_M_CONFIG *mem_cfg, int channel, uintptr_t spd_dimm0,
|
static void init_spd_upds(FSP_M_CONFIG *mem_cfg, int channel, uintptr_t spd_dimm0,
|
||||||
uintptr_t spd_dimm1)
|
uintptr_t spd_dimm1)
|
||||||
{
|
{
|
||||||
mem_cfg->Reserved9[channel] = get_dimm_cfg(spd_dimm0, spd_dimm1);
|
uint8_t dimm_cfg = get_dimm_cfg(spd_dimm0, spd_dimm1);
|
||||||
|
|
||||||
switch (channel) {
|
switch (channel) {
|
||||||
case 0:
|
case 0:
|
||||||
|
mem_cfg->DisableDimmCh0 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr00 = spd_dimm0;
|
mem_cfg->MemorySpdPtr00 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr01 = spd_dimm1;
|
mem_cfg->MemorySpdPtr01 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
|
mem_cfg->DisableDimmCh1 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr02 = spd_dimm0;
|
mem_cfg->MemorySpdPtr02 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr03 = spd_dimm1;
|
mem_cfg->MemorySpdPtr03 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
mem_cfg->DisableDimmCh2 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr04 = spd_dimm0;
|
mem_cfg->MemorySpdPtr04 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr05 = spd_dimm1;
|
mem_cfg->MemorySpdPtr05 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
|
mem_cfg->DisableDimmCh3 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr06 = spd_dimm0;
|
mem_cfg->MemorySpdPtr06 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr07 = spd_dimm1;
|
mem_cfg->MemorySpdPtr07 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
|
mem_cfg->DisableDimmCh4 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr08 = spd_dimm0;
|
mem_cfg->MemorySpdPtr08 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr09 = spd_dimm1;
|
mem_cfg->MemorySpdPtr09 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
|
mem_cfg->DisableDimmCh5 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr10 = spd_dimm0;
|
mem_cfg->MemorySpdPtr10 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr11 = spd_dimm1;
|
mem_cfg->MemorySpdPtr11 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
|
mem_cfg->DisableDimmCh6 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr12 = spd_dimm0;
|
mem_cfg->MemorySpdPtr12 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr13 = spd_dimm1;
|
mem_cfg->MemorySpdPtr13 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 7:
|
case 7:
|
||||||
|
mem_cfg->DisableDimmCh7 = dimm_cfg;
|
||||||
mem_cfg->MemorySpdPtr14 = spd_dimm0;
|
mem_cfg->MemorySpdPtr14 = spd_dimm0;
|
||||||
mem_cfg->MemorySpdPtr15 = spd_dimm1;
|
mem_cfg->MemorySpdPtr15 = spd_dimm1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue