aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge/raminit_common.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-19 12:02:07 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-22 22:13:18 +0000
commit09fc4b90ebfdb81914f6b89b676db101a417414a (patch)
tree83bc2c85c49be6c2327a6bb0764306eb4ce844e3 /src/northbridge/intel/sandybridge/raminit_common.h
parent2ad03a43ecf0c97634f27ebcc2132b8e4286ceb3 (diff)
nb/intel/sandybridge: Refine power-down mode logic
When memory is running at fast frequencies, power-down modes can lessen system stability. Check tXP and tXPDLL values and use safer power down modes if their values are high. Do not use APD with DLL-off on mobile: vendor firmware does not use it, and it can influence system stability. Change-Id: Ic8e98162ca86ae454a8c951be163d58960940e0e Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47746 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/northbridge/intel/sandybridge/raminit_common.h')
-rw-r--r--src/northbridge/intel/sandybridge/raminit_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.h b/src/northbridge/intel/sandybridge/raminit_common.h
index 050aa7047c..80d30744a2 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.h
+++ b/src/northbridge/intel/sandybridge/raminit_common.h
@@ -273,6 +273,15 @@ void iosav_write_memory_test_sequence(ramctr_timing *ctrl, int channel, int slot
*/
#define MRC_CACHE_VERSION 5
+enum pdwm_mode {
+ PDM_NONE = 0,
+ PDM_APD = 1,
+ PDM_PPD = 2,
+ PDM_APD_PPD = 3,
+ PDM_DLL_OFF = 6,
+ PDM_APD_DLL_OFF = 7,
+};
+
typedef struct odtmap_st {
u16 rttwr;
u16 rttnom;