intel/kunimitsu: FAB 4 update for Rcomp Target table
Changed index 3 to be an exception of the default Rcomp Value BUG=None BRANCH=None TEST=Tested on FAB 4 SKU 1 Change-Id: I154c254835c4f6995183840cc241feeb9a448cdb Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: f08eba3cf623b5869a7bb03fb3b6ba084cdd1622 Original-Change-Id: I0fbcff2c3526c4ed7cf90088ca23b43774cb9f8f Original-Signed-off-by: Brandon Breitenstein <brandon.breitenstein@intel.com> Original-Reviewed-on: https://chromium-review.googlesource.com/312715 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-by: Freddy Paul <freddy.paul@intel.com> Reviewed-on: https://review.coreboot.org/12591 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
ad77bf9320
commit
e1aceef955
|
@ -23,6 +23,7 @@
|
||||||
/* PCH_MEM_CFG[3:0] */
|
/* PCH_MEM_CFG[3:0] */
|
||||||
#define MAX_MEMORY_CONFIG 0x10
|
#define MAX_MEMORY_CONFIG 0x10
|
||||||
#define RCOMP_TARGET_PARAMS 0x5
|
#define RCOMP_TARGET_PARAMS 0x5
|
||||||
|
#define K4E6E304EE_MEM_ID 0x3
|
||||||
|
|
||||||
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
void mainboard_fill_pei_data(struct pei_data *pei_data)
|
||||||
{
|
{
|
||||||
|
@ -41,19 +42,24 @@ void mainboard_fill_pei_data(struct pei_data *pei_data)
|
||||||
const u16 RcompResistor[3] = { 200, 81, 162 };
|
const u16 RcompResistor[3] = { 200, 81, 162 };
|
||||||
|
|
||||||
/* Rcomp target */
|
/* Rcomp target */
|
||||||
static const u16 RcompTarget[MAX_MEMORY_CONFIG][RCOMP_TARGET_PARAMS] = {
|
static const u16 RcompTarget[RCOMP_TARGET_PARAMS] = {
|
||||||
{ 100, 40, 40, 23, 40 },
|
100, 40, 40, 23, 40 };
|
||||||
{ 100, 40, 40, 23, 40 },
|
|
||||||
{ 100, 40, 40, 23, 40 },
|
|
||||||
/*Strengthen the Rcomp Target Ctrl for 8GB K4E6E304EE -EGCF*/
|
/*Strengthen the Rcomp Target Ctrl for 8GB K4E6E304EE -EGCF*/
|
||||||
{ 100, 40, 40, 21, 40 }, };
|
static const u16 StrengthendRcompTarget[RCOMP_TARGET_PARAMS] = {
|
||||||
|
100, 40, 40, 21, 40 };
|
||||||
|
|
||||||
|
|
||||||
memcpy(pei_data->dq_map, dq_map, sizeof(dq_map));
|
memcpy(pei_data->dq_map, dq_map, sizeof(dq_map));
|
||||||
memcpy(pei_data->dqs_map, dqs_map, sizeof(dqs_map));
|
memcpy(pei_data->dqs_map, dqs_map, sizeof(dqs_map));
|
||||||
memcpy(pei_data->RcompResistor, RcompResistor,
|
memcpy(pei_data->RcompResistor, RcompResistor,
|
||||||
sizeof(RcompResistor));
|
sizeof(RcompResistor));
|
||||||
memcpy(pei_data->RcompTarget, &RcompTarget[pei_data->mem_cfg_id][0],
|
if (pei_data->mem_cfg_id == K4E6E304EE_MEM_ID) {
|
||||||
sizeof(RcompTarget[pei_data->mem_cfg_id]));
|
memcpy(pei_data->RcompTarget, StrengthendRcompTarget,
|
||||||
|
sizeof(StrengthendRcompTarget));
|
||||||
|
} else {
|
||||||
|
memcpy(pei_data->RcompTarget, RcompTarget,
|
||||||
|
sizeof(RcompTarget));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue