mail.coreboot.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
List overview
Download
coreboot-gerrit
June 2017
----- 2024 -----
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
coreboot-gerrit@coreboot.org
1 participants
2269 discussions
Start a n
N
ew thread
Change in coreboot[master]: soc/intel/common/block/gpio: Port gpio code from Apollolake ...
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/19759
) Change subject: soc/intel/common/block/gpio: Port gpio code from Apollolake to common ...................................................................... Patch Set 30: Build Successful
https://qa.coreboot.org/job/coreboot-checkpatch/10695/
: SUCCESS
https://qa.coreboot.org/job/coreboot-gerrit/55009/
: SUCCESS -- To view, visit
https://review.coreboot.org/19759
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic48401e92103ff0ec278fb69a3d304148a2d79aa Gerrit-Change-Number: 19759 Gerrit-PatchSet: 30 Gerrit-Owner: Hannah Williams <hannah.williams(a)intel.com> Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org> Gerrit-Reviewer: Andrey Petrov <andrey.petrov(a)intel.com> Gerrit-Reviewer: Barnali Sarkar <barnali.sarkar(a)intel.com> Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com> Gerrit-Reviewer: Divya Chellappa <divya.chella(a)gmail.com> Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com> Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com> Gerrit-Reviewer: Martin Roth <martinroth(a)google.com> Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de> Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net> Gerrit-Reviewer: Ravishankar Sarawadi <ravishankar.sarawadi(a)intel.com> Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com> Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com> Gerrit-Reviewer: V Sowmya <v.sowmya(a)intel.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Comment-Date: Tue, 06 Jun 2017 22:58:19 +0000 Gerrit-HasComments: No
1
0
0
0
Change in coreboot[master]: soc/intel/apollolake: Use common gpio for apollolake[WIP]
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/19949
) Change subject: soc/intel/apollolake: Use common gpio for apollolake[WIP] ...................................................................... Patch Set 19: Build Failed
https://qa.coreboot.org/job/coreboot-gerrit/55010/
: FAILURE
https://qa.coreboot.org/job/coreboot-checkpatch/10696/
: SUCCESS -- To view, visit
https://review.coreboot.org/19949
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I0fcc22df5eaec014f3b89755415f051b05aa554a Gerrit-Change-Number: 19949 Gerrit-PatchSet: 19 Gerrit-Owner: Hannah Williams <hannah.williams(a)intel.com> Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org> Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com> Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com> Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net> Gerrit-Reviewer: Ravishankar Sarawadi <ravishankar.sarawadi(a)intel.com> Gerrit-Reviewer: Shaunak Saha <shaunak.saha(a)intel.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Comment-Date: Tue, 06 Jun 2017 22:54:15 +0000 Gerrit-HasComments: No
1
0
0
0
Change in coreboot[master]: device/dram/ddr2.c: Fix is_registered_ddr2
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/20058
) Change subject: device/dram/ddr2.c: Fix is_registered_ddr2 ...................................................................... Patch Set 1: Verified+1 Build Successful
https://qa.coreboot.org/job/coreboot-checkpatch/10694/
: SUCCESS
https://qa.coreboot.org/job/coreboot-gerrit/55008/
: SUCCESS -- To view, visit
https://review.coreboot.org/20058
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I6d35bd74961326ebd9225f044313b107aca24bda Gerrit-Change-Number: 20058 Gerrit-PatchSet: 1 Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Comment-Date: Tue, 06 Jun 2017 22:38:30 +0000 Gerrit-HasComments: No
1
0
0
0
Change in coreboot[master]: nb/intel/i945/raminit.c: Refactor tRD selection
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/18354
) Change subject: nb/intel/i945/raminit.c: Refactor tRD selection ...................................................................... Patch Set 18: Build Successful
https://qa.coreboot.org/job/coreboot-checkpatch/10693/
: SUCCESS
https://qa.coreboot.org/job/coreboot-gerrit/55007/
: SUCCESS -- To view, visit
https://review.coreboot.org/18354
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I8002daf25b7603131b78b01075f43fd23747dd94 Gerrit-Change-Number: 18354 Gerrit-PatchSet: 18 Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de> Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org> Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net> Gerrit-Reviewer: Philippe Mathieu-Daudé <philippe.mathieu.daude(a)gmail.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Comment-Date: Tue, 06 Jun 2017 22:29:00 +0000 Gerrit-HasComments: No
1
0
0
0
Change in coreboot[master]: nb/i945/raminit: Use common ddr2 decode functions
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/18305
) Change subject: nb/i945/raminit: Use common ddr2 decode functions ...................................................................... Patch Set 45: Verified+1 Build Successful
https://qa.coreboot.org/job/coreboot-checkpatch/10692/
: SUCCESS
https://qa.coreboot.org/job/coreboot-gerrit/55006/
: SUCCESS -- To view, visit
https://review.coreboot.org/18305
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I97c93939d11807752797785dd88c70b43a236ee3 Gerrit-Change-Number: 18305 Gerrit-PatchSet: 45 Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de> Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org> Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Reviewer: coreboot org <coreboot.org(a)gmail.com> Gerrit-Comment-Date: Tue, 06 Jun 2017 22:25:04 +0000 Gerrit-HasComments: No
1
0
0
0
Change in coreboot[master]: nb/i945/raminit: Use common ddr2 decode functions
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/18305
) Change subject: nb/i945/raminit: Use common ddr2 decode functions ...................................................................... Patch Set 44: Verified-1 Build Failed
https://qa.coreboot.org/job/coreboot-gerrit/55005/
: ABORTED
https://qa.coreboot.org/job/coreboot-checkpatch/10691/
: SUCCESS -- To view, visit
https://review.coreboot.org/18305
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I97c93939d11807752797785dd88c70b43a236ee3 Gerrit-Change-Number: 18305 Gerrit-PatchSet: 44 Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de> Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org> Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Reviewer: coreboot org <coreboot.org(a)gmail.com> Gerrit-Comment-Date: Tue, 06 Jun 2017 22:19:50 +0000 Gerrit-HasComments: No
1
0
0
0
Change in coreboot[master]: device/dram/ddr2.c: Fix is_registered_ddr2
by Arthur Heymans (Code Review)
06 Jun '17
06 Jun '17
Arthur Heymans has uploaded this change for review. (
https://review.coreboot.org/20058
Change subject: device/dram/ddr2.c: Fix is_registered_ddr2 ...................................................................... device/dram/ddr2.c: Fix is_registered_ddr2 Type 0x10 is mini RDIMM according to JEDEC DDR2 SPD specifications. Change-Id: I6d35bd74961326ebd9225f044313b107aca24bda Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz> --- M src/device/dram/ddr2.c M src/include/device/dram/ddr2.h 2 files changed, 3 insertions(+), 2 deletions(-) git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/20058/1 diff --git a/src/device/dram/ddr2.c b/src/device/dram/ddr2.c index 9eb3873..4d13f94 100644 --- a/src/device/dram/ddr2.c +++ b/src/device/dram/ddr2.c @@ -40,7 +40,8 @@ int spd_dimm_is_registered_ddr2(enum spd_dimm_type type) { if ((type == SPD_DIMM_TYPE_RDIMM) - | (type == SPD_DIMM_TYPE_72B_SO_RDIMM)) + || (type == SPD_DIMM_TYPE_72B_SO_RDIMM) + || (type == SPD_DIMM_TYPE_MINI_RDIMM)) return 1; return 0; diff --git a/src/include/device/dram/ddr2.h b/src/include/device/dram/ddr2.h index a752530..ea9b3ba 100644 --- a/src/include/device/dram/ddr2.h +++ b/src/include/device/dram/ddr2.h @@ -75,7 +75,7 @@ SPD_DIMM_TYPE_72B_SO_CDIMM = 0x06, SPD_DIMM_TYPE_72B_SO_RDIMM = 0x07, SPD_DIMM_TYPE_MICRO_DIMM = 0x08, - SPD_DIMM_TYPE_MINI_DIMM = 0x10, + SPD_DIMM_TYPE_MINI_RDIMM = 0x10, SPD_DIMM_TYPE_MINI_UDIMM = 0x20, /* Masks to bits 5:0 to give the dimm type */ SPD_DIMM_TYPE_MASK = 0x3f, -- To view, visit
https://review.coreboot.org/20058
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I6d35bd74961326ebd9225f044313b107aca24bda Gerrit-Change-Number: 20058 Gerrit-PatchSet: 1 Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
1
0
0
0
Change in coreboot[master]: nb/intel/x4x: Refactor setting default DQ DQS dll settings
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/20057
) Change subject: nb/intel/x4x: Refactor setting default DQ DQS dll settings ...................................................................... Patch Set 1: Verified+1 Build Successful
https://qa.coreboot.org/job/coreboot-checkpatch/10690/
: SUCCESS
https://qa.coreboot.org/job/coreboot-gerrit/55004/
: SUCCESS -- To view, visit
https://review.coreboot.org/20057
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I6b7bf90085bf4ef14bbb6de852b96e04b429fca4 Gerrit-Change-Number: 20057 Gerrit-PatchSet: 1 Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Comment-Date: Tue, 06 Jun 2017 21:30:57 +0000 Gerrit-HasComments: No
1
0
0
0
Change in coreboot[master]: nb/intel/x4x: Refactor setting default DQ DQS dll settings
by Arthur Heymans (Code Review)
06 Jun '17
06 Jun '17
Arthur Heymans has uploaded this change for review. (
https://review.coreboot.org/20057
Change subject: nb/intel/x4x: Refactor setting default DQ DQS dll settings ...................................................................... nb/intel/x4x: Refactor setting default DQ DQS dll settings Makes clear that this sets safe defaults, improves readability, makes it easy to restore previously trained values instead of the safe default ones. Change-Id: I6b7bf90085bf4ef14bbb6de852b96e04b429fca4 Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz> --- M src/northbridge/intel/x4x/dq_dqs_dll.c M src/northbridge/intel/x4x/raminit_ddr23.c M src/northbridge/intel/x4x/x4x.h 3 files changed, 94 insertions(+), 75 deletions(-) git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/20057/1 diff --git a/src/northbridge/intel/x4x/dq_dqs_dll.c b/src/northbridge/intel/x4x/dq_dqs_dll.c index 7741b6f..043f144 100644 --- a/src/northbridge/intel/x4x/dq_dqs_dll.c +++ b/src/northbridge/intel/x4x/dq_dqs_dll.c @@ -649,23 +649,6 @@ 0xdfdfdfdf, 0xbebebebe, 0x7f7f7f7f, 0xfefefefe }; -static void rt_set_dqs(u8 channel, u8 lane, u8 rank, struct rt_dqs_setting *dqs_setting) -{ - u8 saved_tap = MCHBAR16(0x540 + 0x400 * channel + lane * 4); - u8 saved_pi = MCHBAR16(0x542 + 0x400 * channel + lane * 4); - printk(RAM_SPEW, "RT DQS: ch%d, L%d, %d.%d\n", channel, lane, - dqs_setting->tap, - dqs_setting->pi); - - saved_tap &= ~(0xf << (rank * 4)); - saved_tap |= dqs_setting->tap << (rank * 4); - MCHBAR16(0x540 + 0x400 * channel + lane * 4) = saved_tap; - - saved_pi &= ~(0x7 << (rank * 3)); - saved_pi |= dqs_setting->pi << (rank * 4); - MCHBAR16(0x542 + 0x400 * channel + lane * 4) = saved_pi; -} - static int rt_increment_dqs(struct rt_dqs_setting *setting) { if (setting->pi < 7) { diff --git a/src/northbridge/intel/x4x/raminit_ddr23.c b/src/northbridge/intel/x4x/raminit_ddr23.c index b5fcbd8..493867b 100644 --- a/src/northbridge/intel/x4x/raminit_ddr23.c +++ b/src/northbridge/intel/x4x/raminit_ddr23.c @@ -462,6 +462,24 @@ setting->tap; } +void rt_set_dqs(u8 channel, u8 lane, u8 rank, struct rt_dqs_setting *dqs_setting) +{ + u8 saved_tap = MCHBAR16(0x540 + 0x400 * channel + lane * 4); + u8 saved_pi = MCHBAR16(0x542 + 0x400 * channel + lane * 4); + printk(RAM_SPEW, "RT DQS: ch%d, L%d, %d.%d\n", channel, lane, + dqs_setting->tap, + dqs_setting->pi); + + saved_tap &= ~(0xf << (rank * 4)); + saved_tap |= dqs_setting->tap << (rank * 4); + MCHBAR16(0x540 + 0x400 * channel + lane * 4) = saved_tap; + + saved_pi &= ~(0x7 << (rank * 3)); + saved_pi |= dqs_setting->pi << (rank * 4); + MCHBAR16(0x542 + 0x400 * channel + lane * 4) = saved_pi; +} + + static void program_timings(struct sysinfo *s) { u8 i; @@ -762,20 +780,6 @@ cmdset(channel, &dll_settings[CMD]); } -static void program_dq_dqs(struct sysinfo *s, u8 channel, - const struct dll_setting dll_setting[23]) -{ - int lane; - for (lane = 0; lane < 8; lane++) { - s->dqs_settings[channel][lane] = dll_setting[DQS1 + lane]; - dqsset(channel, lane, &dll_setting[DQS1 + lane]); - } - for (lane = 0; lane < 8; lane++) { - s->dq_settings[channel][lane] = dll_setting[DQ1 + lane]; - dqset(channel, lane, &dll_setting[DQ1 + lane]); - } -} - void print_dll_setting(const struct dll_setting *dll_setting, u8 default_verbose) { u8 debug_level; @@ -795,7 +799,6 @@ u8 i, j, r, reg8, clk, async = 0; u16 reg16 = 0; u32 reg32 = 0; - u8 lane; const u8 rank2clken[8] = { 0x04, 0x01, 0x20, 0x08, 0x01, 0x04, 0x08, 0x10 }; @@ -1063,55 +1066,85 @@ if (s->selected_timings.mem_clk == MEM_CLOCK_1333MHz) MCHBAR8(0x18c) = MCHBAR8(0x18c) | 1; +} - // Program DQ/DQS dll settings - reg32 = 0; - FOR_EACH_POPULATED_CHANNEL(s->dimms, i) { - switch (s->selected_timings.mem_clk) { - default: /* Should not happen */ - break; - case MEM_CLOCK_667MHz: - reg32 = 0x06db7777; - break; - case MEM_CLOCK_800MHz: - if (s->spd_type == DDR2) - reg32 = 0x00007777; - else /* DDR3 */ - reg32 = 0x06db6666; - break; - case MEM_CLOCK_1066MHz: - reg32 = 0x06db5555; - break; - case MEM_CLOCK_1333MHz: - reg32 = 0x00007777; - break; +static void select_default_dqdqs_dll_settings(struct sysinfo *s) +{ + int channel, lane; + u8 rt_pi, rt_tap; + const struct dll_setting *dll_settings; + + switch (s->selected_timings.mem_clk) { + default: /* Should not happen */ + case MEM_CLOCK_667MHz: + rt_pi = 3; + rt_tap = 7; + break; + case MEM_CLOCK_800MHz: + if (s->spd_type == DDR2) { + rt_tap = 7; + rt_pi = 0; + } else { /* DDR3 */ + rt_tap = 6; + rt_pi = 3; } + break; + case MEM_CLOCK_1066MHz: + rt_tap = 5; + rt_pi = 3; + break; + case MEM_CLOCK_1333MHz: + rt_tap = 7; + rt_pi = 0; + break; + } + + /* RT DQS: set identical settings for each rank */ + FOR_EACH_POPULATED_CHANNEL(s->dimms, channel) { for (lane = 0; lane < 8; lane++) { - MCHBAR32(0x400*i + 0x540 + lane*4) = - (MCHBAR32(0x400*i + 0x540 + lane*4) & 0x0fffffff) | - reg32; + s->rt_dqs_setting[channel][lane].pi = rt_pi; + s->rt_dqs_setting[channel][lane].tap = rt_tap; } } - FOR_EACH_POPULATED_CHANNEL(s->dimms, i) { - switch (s->selected_timings.mem_clk) { - default: /* Should not happen */ - break; - case MEM_CLOCK_667MHz: - program_dq_dqs(s, i, ddr2_dll_setting_667); - break; - case MEM_CLOCK_800MHz: - if (s->spd_type == DDR2) - program_dq_dqs(s, i, ddr2_dll_setting_800); - else /* DDR3 */ - program_dq_dqs(s, i, ddr3_dll_setting_800[s->nmode - 1]); - break; - case MEM_CLOCK_1066MHz: - program_dq_dqs(s, i, ddr3_dll_setting_1066[s->nmode - 1]); - break; - case MEM_CLOCK_1333MHz: - program_dq_dqs(s, i, ddr3_dll_setting_1333[s->nmode - 1]); - break; + switch (s->selected_timings.mem_clk) { + default: /* Should not happen, but makes compiler happy */ + case MEM_CLOCK_667MHz: + dll_settings = ddr2_dll_setting_667; + break; + case MEM_CLOCK_800MHz: + if (s->spd_type == DDR2) + dll_settings = ddr2_dll_setting_800; + else /* DDR3 */ + dll_settings = ddr3_dll_setting_800[s->nmode - 1]; + break; + case MEM_CLOCK_1066MHz: + dll_settings = ddr3_dll_setting_1066[s->nmode - 1]; + break; + case MEM_CLOCK_1333MHz: + dll_settings = ddr3_dll_setting_1333[s->nmode - 1]; + break; + } + + FOR_EACH_POPULATED_CHANNEL(s->dimms, channel) { + for (lane = 0; lane < 8; lane++) { + s->dqs_settings[channel][lane] = dll_settings[DQS1 + lane]; + s->dqs_settings[channel][lane] = dll_settings[DQ1 + lane]; + } + } +} + +static void program_dqdqs_settings(struct sysinfo *s) +{ + int channel, lane, rank; + /* RT DQS DLL settings */ + FOR_EACH_POPULATED_CHANNEL(s->dimms, channel) { + for (lane = 0; lane < 8; lane++) { + dqsset(channel, lane, &(s->dqs_settings[channel][lane])); + dqset(channel, lane, &(s->dq_settings[channel][lane])); + for (rank = 0; rank < 4; rank++) + rt_set_dqs(channel, lane, rank, + &s->rt_dqs_setting[channel][lane]); } } } @@ -2246,6 +2279,8 @@ // Program DLL program_dll(s); + select_default_dqdqs_dll_settings(s); + program_dqdqs_settings(s); // RCOMP if (s->boot_path != BOOT_PATH_WARM_RESET) { diff --git a/src/northbridge/intel/x4x/x4x.h b/src/northbridge/intel/x4x/x4x.h index 07cc71b..d78a743 100644 --- a/src/northbridge/intel/x4x/x4x.h +++ b/src/northbridge/intel/x4x/x4x.h @@ -367,6 +367,7 @@ void send_jedec_cmd(const struct sysinfo *s, u8 r, u8 ch, u8 cmd, u32 val); void dqsset(u8 ch, u8 lane, const struct dll_setting *setting); void dqset(u8 ch, u8 lane, const struct dll_setting *setting); +void rt_set_dqs(u8 channel, u8 lane, u8 rank, struct rt_dqs_setting *dqs_setting); void print_dll_setting(const struct dll_setting *dll_setting, u8 default_verbose); void search_write_leveling(struct sysinfo *s); int do_write_training(struct sysinfo *s); -- To view, visit
https://review.coreboot.org/20057
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I6b7bf90085bf4ef14bbb6de852b96e04b429fca4 Gerrit-Change-Number: 20057 Gerrit-PatchSet: 1 Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
1
0
0
0
Change in coreboot[master]: soc/baytrail: fix scope for I2C ACPI devices
by build bot (Jenkins) (Code Review)
06 Jun '17
06 Jun '17
build bot (Jenkins) has posted comments on this change. (
https://review.coreboot.org/20056
) Change subject: soc/baytrail: fix scope for I2C ACPI devices ...................................................................... Patch Set 1: Verified+1 Build Successful
https://qa.coreboot.org/job/coreboot-checkpatch/10688/
: SUCCESS
https://qa.coreboot.org/job/coreboot-gerrit/55002/
: SUCCESS -- To view, visit
https://review.coreboot.org/20056
To unsubscribe, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I4ef978214aa36078dc04ee1c73b3e2b4bb22f692 Gerrit-Change-Number: 20056 Gerrit-PatchSet: 1 Gerrit-Owner: Matt DeVillier <matt.devillier(a)gmail.com> Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org> Gerrit-Comment-Date: Tue, 06 Jun 2017 21:14:53 +0000 Gerrit-HasComments: No
1
0
0
0
← Newer
1
...
173
174
175
176
177
178
179
...
227
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
Results per page:
10
25
50
100
200