nb/intel/x4x: Clean up cosmetics of raminit tables

Consistently use commas after the last element of arrays, and also align
columns of values and comments. Remove `MHz` units from DDR speed values
to avoid confusion, as the memory's actual clock speed is half of these.

Tested with BUILD_TIMELESS=1, Asus P5QL PRO remains identical.

Change-Id: Id13022483c6221ce87d21dd21a5cfe4317a55ccd
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49390
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Angel Pons
2021-01-13 13:50:41 +01:00
committed by Patrick Georgi
parent 32f9bcaa91
commit b99d592752

View File

@@ -33,7 +33,7 @@ const struct dll_setting default_ddr2_667_dq[TOTAL_BYTELANES] = {
{9, 1, 0, 0, 1, 0},
{6, 4, 0, 0, 1, 0},
{6, 2, 0, 0, 1, 0},
{5, 4, 0, 0, 1, 0}
{5, 4, 0, 0, 1, 0},
};
const struct dll_setting default_ddr2_800_ctrl[7] = {
@@ -66,7 +66,7 @@ const struct dll_setting default_ddr2_800_dq[TOTAL_BYTELANES] = {
{10, 0, 0, 0, 1, 0},
{8, 1, 0, 0, 1, 0},
{7, 5, 0, 0, 1, 0},
{6, 2, 0, 0, 1, 0}
{6, 2, 0, 0, 1, 0},
};
const struct dll_setting default_ddr3_800_ctrl[2][7] = {
@@ -78,7 +78,8 @@ const struct dll_setting default_ddr3_800_ctrl[2][7] = {
{6, 1, 0, 0, 0, 0},
{8, 4, 0, 0, 0, 0},
{10, 0, 0, 0, 0, 0},
{10, 0, 0, 0, 0, 0}, },
{10, 0, 0, 0, 0, 0},
},
{ /* 2N */
{2, 2, 1, 1, 0, 0},
{2, 4, 1, 1, 0, 0},
@@ -86,7 +87,8 @@ const struct dll_setting default_ddr3_800_ctrl[2][7] = {
{3, 2, 1, 1, 0, 0},
{2, 4, 1, 1, 0, 0},
{3, 6, 0, 0, 0, 0},
{3, 6, 0, 0, 0, 0}, }
{3, 6, 0, 0, 0, 0},
},
};
const struct dll_setting default_ddr3_800_dqs[2][TOTAL_BYTELANES] = {
@@ -98,7 +100,8 @@ const struct dll_setting default_ddr3_800_dqs[2][TOTAL_BYTELANES] = {
{4, 3, 0, 0, 1, 0},
{5, 2, 0, 0, 1, 0},
{6, 1, 0, 0, 1, 0},
{6, 4, 0, 0, 1, 0}, },
{6, 4, 0, 0, 1, 0},
},
{ /* 2N */
{5, 6, 0, 0, 0, 0},
{8, 0, 0, 0, 0, 0},
@@ -107,7 +110,8 @@ const struct dll_setting default_ddr3_800_dqs[2][TOTAL_BYTELANES] = {
{11, 3, 1, 0, 0, 0},
{12, 1, 1, 0, 0, 0},
{0, 1, 1, 1, 1, 0},
{0, 3, 1, 1, 1, 0}, }
{0, 3, 1, 1, 1, 0},
},
};
const struct dll_setting default_ddr3_800_dq[2][TOTAL_BYTELANES] = {
@@ -119,7 +123,8 @@ const struct dll_setting default_ddr3_800_dq[2][TOTAL_BYTELANES] = {
{9, 5, 0, 0, 1, 0},
{10, 2, 0, 0, 1, 0},
{10, 6, 1, 0, 1, 0},
{11, 4, 1, 0, 1, 0} },
{11, 4, 1, 0, 1, 0},
},
{ /* 2N */
{11, 0, 1, 0, 0, 0},
{0, 3, 1, 1, 1, 0},
@@ -128,7 +133,8 @@ const struct dll_setting default_ddr3_800_dq[2][TOTAL_BYTELANES] = {
{3, 5, 0, 0, 1, 0},
{4, 2, 0, 0, 1, 0},
{4, 6, 0, 0, 1, 0},
{5, 4, 0, 0, 1, 0}, }
{5, 4, 0, 0, 1, 0},
},
};
const struct dll_setting default_ddr3_1067_ctrl[2][7] = {
@@ -139,7 +145,8 @@ const struct dll_setting default_ddr3_1067_ctrl[2][7] = {
{4, 4, 0, 0, 0, 0},
{7, 6, 0, 0, 0, 0},
{9, 2, 1, 0, 0, 0},
{9, 2, 1, 0, 0, 0}, },
{9, 2, 1, 0, 0, 0},
},
{ /* 2N */
{1, 5, 1, 1, 0, 0},
{0, 6, 1, 1, 0, 0},
@@ -147,7 +154,8 @@ const struct dll_setting default_ddr3_1067_ctrl[2][7] = {
{2, 6, 1, 1, 0, 0},
{0, 6, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0}, }
{2, 2, 1, 1, 0, 0},
},
};
const struct dll_setting default_ddr3_1067_dqs[2][TOTAL_BYTELANES] = {
@@ -159,7 +167,8 @@ const struct dll_setting default_ddr3_1067_dqs[2][TOTAL_BYTELANES] = {
{8, 6, 0, 0, 1, 0},
{9, 6, 1, 0, 1, 0},
{10, 6, 1, 0, 1, 0},
{0, 1, 1, 1, 0, 1}, },
{0, 1, 1, 1, 0, 1},
},
{ /* 2N */
{6, 4, 0, 0, 0, 0},
{9, 1, 1, 0, 0, 0},
@@ -169,7 +178,7 @@ const struct dll_setting default_ddr3_1067_dqs[2][TOTAL_BYTELANES] = {
{2, 5, 1, 1, 1, 0},
{3, 5, 0, 0, 1, 0},
{4, 1, 0, 0, 1, 0},
}
},
};
const struct dll_setting default_ddr3_1067_dq[2][TOTAL_BYTELANES] = {
@@ -181,7 +190,8 @@ const struct dll_setting default_ddr3_1067_dq[2][TOTAL_BYTELANES] = {
{2, 0, 1, 1, 0, 1},
{2, 5, 1, 1, 0, 1},
{3, 2, 0, 0, 0, 1},
{4, 1, 0, 0, 0, 1}, },
{4, 1, 0, 0, 0, 1},
},
{ /* 2N */
{10, 5, 1, 0, 0, 0},
{2, 3, 1, 1, 1, 0},
@@ -191,7 +201,7 @@ const struct dll_setting default_ddr3_1067_dq[2][TOTAL_BYTELANES] = {
{6, 5, 0, 0, 1, 0},
{7, 2, 0, 0, 1, 0},
{8, 1, 0, 0, 1, 0},
}
},
};
const struct dll_setting default_ddr3_1333_ctrl[2][7] = {
@@ -202,7 +212,8 @@ const struct dll_setting default_ddr3_1333_ctrl[2][7] = {
{0, 0, 1, 1, 0, 0},
{9, 0, 1, 0, 0, 0},
{10, 4, 1, 0, 0, 0},
{10, 4, 1, 0, 0, 0}, },
{10, 4, 1, 0, 0, 0},
},
{ /* 2N */
{1, 6, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0},
@@ -210,7 +221,8 @@ const struct dll_setting default_ddr3_1333_ctrl[2][7] = {
{3, 1, 1, 1, 0, 0},
{2, 2, 1, 1, 0, 0},
{4, 5, 0, 0, 0, 0},
{4, 5, 0, 0, 0, 0}, }
{4, 5, 0, 0, 0, 0},
},
};
const struct dll_setting default_ddr3_1333_dqs[2][TOTAL_BYTELANES] = {
@@ -222,7 +234,8 @@ const struct dll_setting default_ddr3_1333_dqs[2][TOTAL_BYTELANES] = {
{8, 6, 0, 0, 1, 0},
{9, 5, 1, 0, 1, 0},
{10, 6, 1, 0, 1, 0},
{0, 1, 1, 1, 0, 1}, },
{0, 1, 1, 1, 0, 1},
},
{ /* 2N */
{10, 4, 0, 0, 0, 0},
{0, 3, 1, 1, 1, 0},
@@ -231,7 +244,8 @@ const struct dll_setting default_ddr3_1333_dqs[2][TOTAL_BYTELANES] = {
{6, 1, 0, 0, 1, 0},
{7, 4, 0, 0, 1, 0},
{9, 2, 0, 0, 1, 0},
{9, 6, 0, 0, 1, 0}, }
{9, 6, 0, 0, 1, 0},
},
};
const struct dll_setting default_ddr3_1333_dq[2][TOTAL_BYTELANES] = {
@@ -243,7 +257,8 @@ const struct dll_setting default_ddr3_1333_dq[2][TOTAL_BYTELANES] = {
{2, 0, 1, 1, 0, 1},
{2, 5, 1, 1, 0, 1},
{3, 2, 0, 0, 0, 1},
{4, 1, 0, 0, 0, 1}, },
{4, 1, 0, 0, 0, 1},
},
{ /* 2N */
{1, 3, 1, 1, 1, 0},
{5, 6, 0, 0, 1, 0},
@@ -252,7 +267,8 @@ const struct dll_setting default_ddr3_1333_dq[2][TOTAL_BYTELANES] = {
{11, 1, 0, 0, 1, 0},
{12, 3, 1, 0, 1, 0},
{13, 6, 1, 0, 1, 0},
{0, 3, 1, 1, 0, 1}, }
{0, 3, 1, 1, 0, 1},
},
};
const u8 ddr3_emrs1_rtt_nom_config[16][4] = { /* [Config][Rank] */
@@ -274,35 +290,38 @@ const u8 ddr3_emrs1_rtt_nom_config[16][4] = { /* [Config][Rank] */
{0x81, 0x00, 0x81, 0x00}, /* 16S_16S */
};
const u8 post_jedec_tab[3][4][2]= /* [FSB][DDR freq][17:13 or 12:8] */
const u8 post_jedec_tab[3][4][2] = { /* [FSB][DDR freq][17:13 or 12:8] */
{ /* FSB DDR */
{{0x3, 0x5}, /* 800 667 */
{0x3, 0x5}, /* 800 667 */
{0x3, 0x4}, /* 800 800 */
},
{{0x4, 0x8}, /* 1067 667 */
{
{0x4, 0x8}, /* 1067 667 */
{0x4, 0x6}, /* 1067 800 */
{0x3, 0x5}, /* 1067 1066 */
},
{{0x5, 0x9}, /* 1333 667 */
{
{0x5, 0x9}, /* 1333 667 */
{0x4, 0x7}, /* 1333 800 */
{0x4, 0x7}, /* 1333 1066 */
{0x4, 0x7} /* 1333 1333 */
{0x4, 0x7}, /* 1333 1333 */
},
};
const u32 ddr3_c2_tab[2][3][6][2] = { /* [n-mode][ddr3 freq][CAS][reg] */
/* 115h[15:0] 117h[23:0] */
{ /* 1N mode */
{ /* DDR3 800MHz */
{ /* DDR3 800 */
{0x0189, 0x000aaa}, /* CAS = 5 */
{0x0189, 0x101aaa}, /* CAS = 6 */
},
{ /* DDR3 1067MHz */
{ /* DDR3 1067 */
{0x0000, 0x000000}, /* CAS = 5 - Not supported */
{0x0089, 0x000bbb}, /* CAS = 6 */
{0x0099, 0x101bbb}, /* CAS = 7 */
{0x0099, 0x202bbb} /* CAS = 8 */
},{ /* DDR3 1333 */
{0x0099, 0x202bbb}, /* CAS = 8 */
},
{ /* DDR3 1333 */
{0x0000, 0x000000}, /* CAS = 5 - Not supported */
{0x0000, 0x000000}, /* CAS = 6 - Not supported */
{0x0000, 0x000000}, /* CAS = 7 - Not supported */
@@ -312,18 +331,17 @@ const u32 ddr3_c2_tab[2][3][6][2] = { /* [n-mode][ddr3 freq][CAS][reg] */
},
},
{ /* 2N mode */
{ /* DDR3 800MHz */
{ /* DDR3 800 */
{0x0189, 0x000aaa}, /* CAS = 5 */
{0x0189, 0x101aaa}, /* CAS = 6 */
{0x0000, 0x000000}, /* CAS = 7 - Not supported */
{0x0000, 0x000000} /* CAS = 8 - Not supported */
},
{ /* DDR3 1067 */
{0x0000, 0x000000}, /* CAS = 5 - Not supported */
{0x0089, 0x000bbb}, /* CAS = 6 */
{0x0099, 0x101bbb}, /* CAS = 7 */
{0x0099, 0x202bbb} /* CAS = 8 */
},{ /* DDR3 1333MHz */
{0x0099, 0x202bbb}, /* CAS = 8 */
},
{ /* DDR3 1333 */
{0x0000, 0x000000}, /* CAS = 5 - Not supported */
{0x0000, 0x000000}, /* CAS = 6 - Not supported */
{0x0000, 0x000000}, /* CAS = 7 - Not supported */
@@ -331,42 +349,47 @@ const u32 ddr3_c2_tab[2][3][6][2] = { /* [n-mode][ddr3 freq][CAS][reg] */
{0x019a, 0x1088dc}, /* CAS = 9 */
{0x019a, 0x2098dc}, /* CAS = 10 */
},
}
},
};
const u8 ddr3_c2_x264[3][6] = { /* [freq][cas] */
/* DDR3 800MHz */
{0x78, /* CAS = 5 */
0x89}, /* CAS = 6 */
/* DDR3 1066 */
{0x00, /* CAS = 5 - Not supported */
{ /* DDR3 800 */
0x78, /* CAS = 5 */
0x89, /* CAS = 6 */
},
{ /* DDR3 1066 */
0x00, /* CAS = 5 - Not supported */
0xff, /* CAS = 6 */
0x8a, /* CAS = 7 */
0x9a}, /* CAS = 8 */
/* DDR3 1333 */
{0x00, /* CAS = 5 - Not supported */
0x9a, /* CAS = 8 */
},
{ /* DDR3 1333 */
0x00, /* CAS = 5 - Not supported */
0x00, /* CAS = 6 - Not supported */
0xff, /* CAS = 7 - Not supported */
0xff, /* CAS = 8 */
0xff, /* CAS = 9 */
0xff}, /* CAS = 10 */
0xff, /* CAS = 10 */
},
};
const u16 ddr3_c2_x23c[3][6]={ /* [freq][cas] */
/* DDR3 800MHz */
{0x9bbb, /* CAS = 5 */
0x8bbb}, /* CAS = 6 */
/* DDR3 1066MHz */
{0x0000, /* CAS = 5 - Not supported */
{ /* DDR3 800 */
0x9bbb, /* CAS = 5 */
0x8bbb, /* CAS = 6 */
},
{ /* DDR3 1066 */
0x0000, /* CAS = 5 - Not supported */
0x9baa, /* CAS = 6 */
0x8caa, /* CAS = 7 */
0x7daa}, /* CAS = 8 */
/* DDR3 1333MHz */
{0x0000, /* CAS = 5 - Not supported */
0x7daa, /* CAS = 8 */
},
{ /* DDR3 1333 */
0x0000, /* CAS = 5 - Not supported */
0x0000, /* CAS = 6 - Not supported */
0x0000, /* CAS = 7 - Not supported */
0xaecb, /* CAS = 8 */
0x9fcb, /* CAS = 9 */
0x8fcb}, /* CAS = 10 */
0x8fcb, /* CAS = 10 */
},
};