diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2017-11-05 05:56:34 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-17 10:41:14 +0000 |
commit | 276049f9eeb5a53d1f83ee0fb6876e965a6b7ca4 (patch) | |
tree | 072a0feb2740ad6d7202bc3c8c386c1c2fde9be0 /src/northbridge/intel/x4x/raminit_tables.c | |
parent | 1994e448be8e843716173dc7149c8644cfd9ebc5 (diff) | |
download | coreboot-276049f9eeb5a53d1f83ee0fb6876e965a6b7ca4.tar.xz |
nb/intel/x4x: Add a convenient macro to loop over bytelanes
During raminit a lot of procedures need to be done for each bytelane.
Change-Id: Ib9a30ffabaf5c845e962e3e79cf4a20faa1d9857
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/22347
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/northbridge/intel/x4x/raminit_tables.c')
-rw-r--r-- | src/northbridge/intel/x4x/raminit_tables.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/northbridge/intel/x4x/raminit_tables.c b/src/northbridge/intel/x4x/raminit_tables.c index f386b6bc00..9a39b28046 100644 --- a/src/northbridge/intel/x4x/raminit_tables.c +++ b/src/northbridge/intel/x4x/raminit_tables.c @@ -29,7 +29,7 @@ const struct dll_setting default_ddr2_667_ctrl[7] = { {4, 1, 0, 0, 0, 0}, /* ctrl3 */ }; -const struct dll_setting default_ddr2_667_dqs[8] = { +const struct dll_setting default_ddr2_667_dqs[TOTAL_BYTELANES] = { {1, 5, 1, 1, 1, 0}, {1, 6, 1, 1, 1, 0}, {2, 0, 1, 1, 1, 0}, @@ -40,7 +40,7 @@ const struct dll_setting default_ddr2_667_dqs[8] = { {14, 0, 1, 0, 0, 0}, }; -const struct dll_setting default_ddr2_667_dq[8] = { +const struct dll_setting default_ddr2_667_dq[TOTAL_BYTELANES] = { {9, 0, 0, 0, 1, 0}, {9, 1, 0, 0, 1, 0}, {9, 2, 0, 0, 1, 0}, @@ -62,7 +62,7 @@ const struct dll_setting default_ddr2_800_ctrl[7] = { {0, 5, 1, 1, 0, 0}, }; -const struct dll_setting default_ddr2_800_dqs[8] = { +const struct dll_setting default_ddr2_800_dqs[TOTAL_BYTELANES] = { {2, 5, 1, 1, 1, 0}, {2, 6, 1, 1, 1, 0}, {3, 0, 1, 1, 1, 0}, @@ -73,7 +73,7 @@ const struct dll_setting default_ddr2_800_dqs[8] = { {0, 3, 1, 1, 1, 0}, }; -const struct dll_setting default_ddr2_800_dq[8] = { +const struct dll_setting default_ddr2_800_dq[TOTAL_BYTELANES] = { {9, 3, 0, 0, 1, 0}, {9, 4, 0, 0, 1, 0}, {9, 5, 0, 0, 1, 0}, @@ -104,7 +104,7 @@ const struct dll_setting default_ddr3_800_ctrl[2][7] = { {3, 6, 0, 0, 0, 0}, } }; -const struct dll_setting default_ddr3_800_dqs[2][8] = { +const struct dll_setting default_ddr3_800_dqs[2][TOTAL_BYTELANES] = { { /* 1N */ {12, 0, 1, 0, 0, 0}, {1, 1, 1, 1, 1, 0}, @@ -125,7 +125,7 @@ const struct dll_setting default_ddr3_800_dqs[2][8] = { {0, 3, 1, 1, 1, 0}, } }; -const struct dll_setting default_ddr3_800_dq[2][8] = { +const struct dll_setting default_ddr3_800_dq[2][TOTAL_BYTELANES] = { { /* 1N */ {4, 1, 0, 0, 1, 0}, {6, 4, 0, 0, 1, 0}, @@ -165,7 +165,7 @@ const struct dll_setting default_ddr3_1067_ctrl[2][7] = { {2, 2, 1, 1, 0, 0}, } }; -const struct dll_setting default_ddr3_1067_dqs[2][8] = { +const struct dll_setting default_ddr3_1067_dqs[2][TOTAL_BYTELANES] = { { /* 1N */ {2, 5, 1, 1, 1, 0}, {5, 1, 0, 0, 1, 0}, @@ -187,7 +187,7 @@ const struct dll_setting default_ddr3_1067_dqs[2][8] = { } }; -const struct dll_setting default_ddr3_1067_dq[2][8] = { +const struct dll_setting default_ddr3_1067_dq[2][TOTAL_BYTELANES] = { { /* 1N */ {6, 5, 0, 0, 1, 0}, {9, 3, 1, 0, 1, 0}, @@ -228,7 +228,7 @@ const struct dll_setting default_ddr3_1333_ctrl[2][7] = { {4, 5, 0, 0, 0, 0}, } }; -const struct dll_setting default_ddr3_1333_dqs[2][8] = { +const struct dll_setting default_ddr3_1333_dqs[2][TOTAL_BYTELANES] = { { /* 1N */ {2, 4, 1, 1, 1, 0}, {5, 1, 0, 0, 1, 0}, @@ -249,7 +249,7 @@ const struct dll_setting default_ddr3_1333_dqs[2][8] = { {9, 6, 0, 0, 1, 0}, } }; -const struct dll_setting default_ddr3_1333_dq[2][8] = { +const struct dll_setting default_ddr3_1333_dq[2][TOTAL_BYTELANES] = { { /* 1N */ {6, 5, 0, 0, 1, 0}, {9, 3, 1, 0, 1, 0}, |