aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge/raminit_common.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-13 14:07:30 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-11-22 20:22:38 +0000
commit737f111d2c5b981b3fe9bca03105fb79ceea1e81 (patch)
tree35ad422561888f6c64dfab154626c8b6249901f8 /src/northbridge/intel/sandybridge/raminit_common.h
parent8137806326a22fcff2a2029245e415117df77c38 (diff)
nb/intel/sandybridge: Use bitfield for GDCRCMDPICODING
This register's layout makes no sense, so use bitfields for clarity. Tested on Asus P8H61-M PRO, still boots. Change-Id: I61efc7349badc2c3297c9b71535dceecaba509d0 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47571 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.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.h b/src/northbridge/intel/sandybridge/raminit_common.h
index 0aa687da70..798b4828e5 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.h
+++ b/src/northbridge/intel/sandybridge/raminit_common.h
@@ -98,6 +98,25 @@ struct iosav_ssq {
} addr_update;
};
+union gdcr_cmd_pi_coding_reg {
+ struct {
+ u32 cmd_pi_code : 6; /* [ 5.. 0] */
+ u32 ctl_pi_code_d0 : 6; /* [11.. 6] */
+ u32 cmd_logic_delay : 1; /* [12..12] */
+ u32 cmd_phase_delay : 1; /* [13..13] */
+ u32 cmd_xover_enable : 1; /* [14..14] */
+ u32 ctl_logic_delay_d0 : 1; /* [15..15] */
+ u32 ctl_phase_delay_d0 : 1; /* [16..16] */
+ u32 ctl_xover_enable_d0 : 1; /* [17..17] */
+ u32 ctl_pi_code_d1 : 6; /* [23..18] */
+ u32 ctl_logic_delay_d1 : 1; /* [24..24] */
+ u32 ctl_phase_delay_d1 : 1; /* [25..25] */
+ u32 ctl_xover_enable_d1 : 1; /* [26..26] */
+ u32 : 5;
+ };
+ u32 raw;
+};
+
union tc_dbp_reg {
struct {
u32 tRCD : 4; /* [ 3.. 0] */