[coreboot-gerrit] Patch set updated for coreboot: 66b3181 vendorcode/amd/agesa/f16kb: Enable support for AM1 socket

Sergej Ivanov (getinaks@gmail.com) gerrit at coreboot.org
Tue Apr 7 15:37:35 CEST 2015


Sergej Ivanov (getinaks at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9291

-gerrit

commit 66b31816ec99fd30be700adb4ef750301e6210e5
Author: Sergej Ivanov <getinaks at gmail.com>
Date:   Fri Apr 3 16:53:49 2015 +0300

    vendorcode/amd/agesa/f16kb: Enable support for AM1 socket
    
    Adds option FORCIBLY_ENABLE_AM1_SOCKET_SUPPORT to disable
    package type mismatch check between cpu and northbridge.
    Default agesa for kabini doesn't know about AM1 socket
    so it returns FALSE, that stops memory config code.
    With this hack current agesa version will supports AM1 socket.
    
    Change-Id: I99e9cec5cd558087092cf195094df20489f6d3b5
    Signed-off-by: Sergej Ivanov <getinaks at gmail.com>
---
 src/cpu/amd/agesa/family16kb/Kconfig            | 9 +++++++++
 src/vendorcode/amd/agesa/f16kb/Proc/Mem/Ps/mp.c | 5 ++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/cpu/amd/agesa/family16kb/Kconfig b/src/cpu/amd/agesa/family16kb/Kconfig
index d36652b..dca97c7 100644
--- a/src/cpu/amd/agesa/family16kb/Kconfig
+++ b/src/cpu/amd/agesa/family16kb/Kconfig
@@ -62,4 +62,13 @@ config HIGH_SCRATCH_MEMORY_SIZE
 	# Assume the maximum size of stack as (0xA0000 - 0x30000 + 0x1000)
 	default 0xA1000
 
+config FORCIBLY_ENABLE_AM1_SOCKET_SUPPORT
+	bool
+	default n
+	help
+		Force agesa to ignore package type mismatch between cpu and northbridge
+		in memory code. This enables Socket AM1 support with current agesa
+		version for Kabini platform.
+		Enable this option only if you have Socket AM1 board.
+
 endif
diff --git a/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Ps/mp.c b/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Ps/mp.c
index 348f704..6d776b4 100644
--- a/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Ps/mp.c
+++ b/src/vendorcode/amd/agesa/f16kb/Proc/Mem/Ps/mp.c
@@ -489,7 +489,10 @@ MemPIsIdSupported (
       return TRUE;
     }
   }
-  return FALSE;
+  if (IS_ENABLED(CONFIG_FORCIBLY_ENABLE_AM1_SOCKET_SUPPORT))
+    return TRUE;
+  else
+    return FALSE;
 }
 
 /* -----------------------------------------------------------------------------*/



More information about the coreboot-gerrit mailing list