diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-01-02 22:10:32 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-01-04 20:28:39 +0000 |
commit | d1f408f3725aa02bc1d76c4c6aadb4697bd073c0 (patch) | |
tree | 7eed036543ae1f8c57b56825880a722a8efbedf1 /resources/libreboot/patch/kgpe-d16/0012-northbridge-amd-amdfam10-Limit-maximum-RAM-clock-to-.patch | |
parent | 91aec7e72005dcda72d19f2d024a02d8c0f86590 (diff) | |
download | librebootfr-d1f408f3725aa02bc1d76c4c6aadb4697bd073c0.tar.gz librebootfr-d1f408f3725aa02bc1d76c4c6aadb4697bd073c0.zip |
Use different coreboot revisions and patches per board
The release archives will be bigger, but this is a necessary change
that makes libreboot development easier.
At present, there are boards maintained in libreboot by different
people. By doing it this way, that becomes much easier. This is in
contrast to the present situation, where a change to one board
potentially affects all other boards, especially when updating to
a new version of coreboot.
Coreboot-libre scripts, download scripts, build scripts - everything.
The entire build system has been modified to reflect this change
of development.
For reasons of consistency, cbfstool and nvramtool are no longer
included in the util archives.
Diffstat (limited to 'resources/libreboot/patch/kgpe-d16/0012-northbridge-amd-amdfam10-Limit-maximum-RAM-clock-to-.patch')
-rw-r--r-- | resources/libreboot/patch/kgpe-d16/0012-northbridge-amd-amdfam10-Limit-maximum-RAM-clock-to-.patch | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/resources/libreboot/patch/kgpe-d16/0012-northbridge-amd-amdfam10-Limit-maximum-RAM-clock-to-.patch b/resources/libreboot/patch/kgpe-d16/0012-northbridge-amd-amdfam10-Limit-maximum-RAM-clock-to-.patch deleted file mode 100644 index 95d74337..00000000 --- a/resources/libreboot/patch/kgpe-d16/0012-northbridge-amd-amdfam10-Limit-maximum-RAM-clock-to-.patch +++ /dev/null @@ -1,121 +0,0 @@ -From 2eaf40d0574de0c971af14915222d604998d3636 Mon Sep 17 00:00:00 2001 -From: Timothy Pearson <tpearson@raptorengineeringinc.com> -Date: Sat, 5 Sep 2015 18:00:27 -0500 -Subject: [PATCH 012/143] northbridge/amd/amdfam10: Limit maximum RAM clock to - BKDG recommendations - -Change-Id: I45eb03a4b351e458e8448245896743bd6fa57637 -Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> ---- - src/northbridge/amd/amdfam10/raminit_amdmct.c | 46 +++++++++++++++++++++---- - src/northbridge/amd/amdmct/wrappers/mcti_d.c | 2 +- - 2 files changed, 41 insertions(+), 7 deletions(-) - -diff --git a/src/northbridge/amd/amdfam10/raminit_amdmct.c b/src/northbridge/amd/amdfam10/raminit_amdmct.c -index a585fae..3f33eba 100644 ---- a/src/northbridge/amd/amdfam10/raminit_amdmct.c -+++ b/src/northbridge/amd/amdfam10/raminit_amdmct.c -@@ -44,29 +44,58 @@ static void print_tf(const char *func, const char *strval) - #endif - } - --static uint16_t mct_MaxLoadFreq(uint8_t count, uint16_t freq) -+static uint16_t mct_MaxLoadFreq(uint8_t count, uint8_t registered, uint16_t freq) - { - /* Return limited maximum RAM frequency */ - if (IS_ENABLED(CONFIG_DIMM_DDR2)) { -- if (IS_ENABLED(CONFIG_DIMM_REGISTERED)) { -+ if (IS_ENABLED(CONFIG_DIMM_REGISTERED) && registered) { - /* K10 BKDG Rev. 3.62 Table 53 */ - if (count > 2) { - /* Limit to DDR2-533 */ - if (freq > 266) { - freq = 266; -- print_tf(__func__, ": More than 2 DIMMs on channel; limiting to DDR2-533\n"); -+ print_tf(__func__, ": More than 2 registered DIMMs on channel; limiting to DDR2-533\n"); - } - } -- } -- else { -+ } else { - /* K10 BKDG Rev. 3.62 Table 52 */ - if (count > 1) { - /* Limit to DDR2-800 */ - if (freq > 400) { - freq = 400; -- print_tf(__func__, ": More than 1 DIMM on channel; limiting to DDR2-800\n"); -+ print_tf(__func__, ": More than 1 unbuffered DIMM on channel; limiting to DDR2-800\n"); -+ } -+ } -+ } -+ } else if (IS_ENABLED(CONFIG_DIMM_DDR3)) { -+ if (IS_ENABLED(CONFIG_DIMM_REGISTERED) && registered) { -+ /* K10 BKDG Rev. 3.62 Table 34 */ -+ if (count > 2) { -+ /* Limit to DDR3-800 */ -+ if (freq > 400) { -+ freq = 400; -+ print_tf(__func__, ": More than 2 registered DIMMs on channel; limiting to DDR3-800\n"); -+ } -+ } else if (count == 2) { -+ /* Limit to DDR3-1066 */ -+ if (freq > 533) { -+ freq = 533; -+ print_tf(__func__, ": 2 registered DIMMs on channel; limiting to DDR3-1066\n"); -+ } -+ } else { -+ /* Limit to DDR3-1333 */ -+ if (freq > 666) { -+ freq = 666; -+ print_tf(__func__, ": 1 registered DIMM on channel; limiting to DDR3-1333\n"); - } - } -+ } else { -+ /* K10 BKDG Rev. 3.62 Table 33 */ -+ /* Limit to DDR3-1333 */ -+ if (freq > 666) { -+ freq = 666; -+ print_tf(__func__, ": unbuffered DIMMs on channel; limiting to DDR3-1333\n"); -+ } - } - } - -@@ -120,6 +149,9 @@ static uint16_t mct_MaxLoadFreq(uint8_t count, uint16_t freq) - //C32 - #elif CONFIG_CPU_SOCKET_TYPE == 0x14 - #include "../amdmct/mct_ddr3/mctardk5.c" -+//G34 -+#elif CONFIG_CPU_SOCKET_TYPE == 0x15 -+#include "../amdmct/mct_ddr3/mctardk5.c" - #endif - - #else /* DDR2 */ -@@ -207,6 +239,7 @@ static void raminit_amdmct(struct sys_info *sysinfo) - printk(BIOS_DEBUG, "raminit_amdmct end:\n"); - } - -+#if !IS_ENABLED(CONFIG_LATE_CBMEM_INIT) - static void amdmct_cbmem_store_info(struct sys_info *sysinfo) - { - if (!sysinfo) -@@ -245,3 +278,4 @@ static void amdmct_cbmem_store_info(struct sys_info *sysinfo) - } - #endif - } -+#endif -diff --git a/src/northbridge/amd/amdmct/wrappers/mcti_d.c b/src/northbridge/amd/amdmct/wrappers/mcti_d.c -index c00cf24..444adc5 100644 ---- a/src/northbridge/amd/amdmct/wrappers/mcti_d.c -+++ b/src/northbridge/amd/amdmct/wrappers/mcti_d.c -@@ -322,7 +322,7 @@ static void mctGet_MaxLoadFreq(struct DCTStatStruc *pDCTstat) - } - - /* Set limits if needed */ -- pDCTstat->PresetmaxFreq = mct_MaxLoadFreq(max(ch1_count, ch2_count), pDCTstat->PresetmaxFreq); -+ pDCTstat->PresetmaxFreq = mct_MaxLoadFreq(max(ch1_count, ch2_count), (ch1_registered || ch2_registered), pDCTstat->PresetmaxFreq); - } - - #ifdef UNUSED_CODE --- -1.7.9.5 - |