aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge/raminit_common.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-13 14:35:29 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-11-22 20:30:33 +0000
commit58b609bf30b98a2fe63d1aac17923359c7d11157 (patch)
tree0f53458f4a070cd6fb1a82ed131376369efb685b /src/northbridge/intel/sandybridge/raminit_common.h
parent737f111d2c5b981b3fe9bca03105fb79ceea1e81 (diff)
nb/intel/sandybridge: Use bitfield for GDCRTRAININGMOD register
Tested on Asus P8H61-M PRO, still boots. Change-Id: Ie4b5777dd3789d4cd818ee66bdf3074ad055c818 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47572 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/sandybridge/raminit_common.h')
-rw-r--r--src/northbridge/intel/sandybridge/raminit_common.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.h b/src/northbridge/intel/sandybridge/raminit_common.h
index 798b4828e5..4a7e8065c2 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.h
+++ b/src/northbridge/intel/sandybridge/raminit_common.h
@@ -117,6 +117,29 @@ union gdcr_cmd_pi_coding_reg {
u32 raw;
};
+union gdcr_training_mod_reg {
+ struct {
+ u32 receive_enable_mode : 1; /* [ 0.. 0] */
+ u32 write_leveling_mode : 1; /* [ 1.. 1] */
+ u32 training_rank_sel : 2; /* [ 3.. 2] */
+ u32 enable_dqs_wl : 4; /* [ 7.. 4] */
+ u32 dqs_logic_delay_wl : 1; /* [ 8.. 8] */
+ u32 dq_dqs_training_res : 1; /* [ 9.. 9] */
+ u32 : 4;
+ u32 delay_dq : 1; /* [14..14] */
+ u32 odt_always_on : 1; /* [15..15] */
+ u32 : 4;
+ u32 force_drive_enable : 1; /* [20..20] */
+ u32 dft_tx_pi_clk_view : 1; /* [21..21] */
+ u32 dft_tx_pi_clk_swap : 1; /* [22..22] */
+ u32 early_odt_en : 1; /* [23..23] */
+ u32 vref_gen_ctl : 6; /* [29..24] */
+ u32 ext_vref_sel : 1; /* [30..30] */
+ u32 tx_fifo_always_on : 1; /* [31..31] */
+ };
+ u32 raw;
+};
+
union tc_dbp_reg {
struct {
u32 tRCD : 4; /* [ 3.. 0] */