Angel Pons has uploaded this change for review.

View Change

nb/intel/sandybridge: Add comments to `struct iosav_ssq`

Add the ranges of bitfields as comments on the struct.

Change-Id: Ib20a233806bfbdc9a81a77f4ef10f67a3cd2dc0e
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
---
M src/northbridge/intel/sandybridge/raminit_common.h
1 file changed, 18 insertions(+), 18 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/44338/1
diff --git a/src/northbridge/intel/sandybridge/raminit_common.h b/src/northbridge/intel/sandybridge/raminit_common.h
index 3f31950..32f2b44 100644
--- a/src/northbridge/intel/sandybridge/raminit_common.h
+++ b/src/northbridge/intel/sandybridge/raminit_common.h
@@ -45,8 +45,8 @@
/* IOSAV_n_SP_CMD_CTRL */
union {
struct {
- u32 command : 16;
- u32 ranksel_ap : 2;
+ u32 command : 16; /* [15.. 0] */
+ u32 ranksel_ap : 2; /* [17..16] */
u32 : 14;
};
u32 raw;
@@ -55,13 +55,13 @@
/* IOSAV_n_SUBSEQ_CTRL */
union {
struct {
- u32 cmd_executions : 9;
+ u32 cmd_executions : 9; /* [ 8.. 0] */
u32 : 1;
- u32 cmd_delay_gap : 5;
+ u32 cmd_delay_gap : 5; /* [14..10] */
u32 : 1;
- u32 post_ssq_wait : 9;
+ u32 post_ssq_wait : 9; /* [24..16] */
u32 : 1;
- u32 data_direction : 2;
+ u32 data_direction : 2; /* [27..26] */
u32 : 4;
};
u32 raw;
@@ -70,12 +70,12 @@
/* IOSAV_n_SP_CMD_ADDR */
union {
struct {
- u32 address : 16;
- u32 rowbits : 3;
+ u32 address : 16; /* [15.. 0] */
+ u32 rowbits : 3; /* [18..16] */
u32 : 1;
- u32 bank : 3;
+ u32 bank : 3; /* [22..20] */
u32 : 1;
- u32 rank : 2;
+ u32 rank : 2; /* [25..24] */
u32 : 6;
};
u32 raw;
@@ -84,14 +84,14 @@
/* IOSAV_n_ADDR_UPDATE */
union {
struct {
- u32 inc_addr_1 : 1;
- u32 inc_addr_8 : 1;
- u32 inc_bank : 1;
- u32 inc_rank : 2;
- u32 addr_wrap : 5;
- u32 lfsr_upd : 2;
- u32 upd_rate : 4;
- u32 lfsr_xors : 2;
+ u32 inc_addr_1 : 1; /* [ 0.. 0] */
+ u32 inc_addr_8 : 1; /* [ 1.. 1] */
+ u32 inc_bank : 1; /* [ 2.. 2] */
+ u32 inc_rank : 2; /* [ 4.. 3] */
+ u32 addr_wrap : 5; /* [ 9.. 5] */
+ u32 lfsr_upd : 2; /* [11..10] */
+ u32 upd_rate : 4; /* [15..12] */
+ u32 lfsr_xors : 2; /* [17..16] */
u32 : 14;
};
u32 raw;

To view, visit change 44338. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib20a233806bfbdc9a81a77f4ef10f67a3cd2dc0e
Gerrit-Change-Number: 44338
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newchange