coreboot: kgpe-d16: include but do not apply 0003-southbridge-amd-sb700-disable-two-hacks.patch
This commit includes, but does not apply, a patch that I was experimenting with while solving the boot-hang problem. This patch does not appear necessary, so it is not applied. However I don't want to forget what I was experimenting with at the time, so it is included here to make it part of the git history.master
parent
8736520bb3
commit
e5f921bedd
@ -0,0 +1,44 @@
|
|||||||
|
From aa5b636937bd1ce6dd9ec414ddca293f19085e31 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Your Name <you@example.com>
|
||||||
|
Date: Tue, 13 Jun 2023 01:16:05 -0700
|
||||||
|
Subject: [PATCH 3/4] southbridge/amd/sb700: disable two hacks
|
||||||
|
|
||||||
|
This commit disables two hacks:
|
||||||
|
|
||||||
|
- "RPR 2.26 Alter CPU reset timing", introduced by commit
|
||||||
|
d1b6ff80c017e671c1e2229ee0d659e491ab53f5
|
||||||
|
|
||||||
|
- "Work around system clock drift issues", introduced by commit
|
||||||
|
905507c3790829e8a6352d857bbad446e6c1c4e6
|
||||||
|
|
||||||
|
Neither of the commits which introduced these two hacks contains any
|
||||||
|
useful information in the commit message, nor am I able to find
|
||||||
|
anything about altering CPU reset timing in section 2.26 of the
|
||||||
|
SB700 "Register Programming Requirements" (RPR) document.
|
||||||
|
---
|
||||||
|
src/southbridge/amd/sb700/early_setup.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/southbridge/amd/sb700/early_setup.c b/src/southbridge/amd/sb700/early_setup.c
|
||||||
|
index 4dfe6dd2ee2..21c1353c3d3 100644
|
||||||
|
--- a/src/southbridge/amd/sb700/early_setup.c
|
||||||
|
+++ b/src/southbridge/amd/sb700/early_setup.c
|
||||||
|
@@ -686,6 +686,7 @@ static void sb700_pmio_por_init(void)
|
||||||
|
byte |= 0xc0;
|
||||||
|
pmio_write(0xbb, byte);
|
||||||
|
|
||||||
|
+#if 0
|
||||||
|
#if IS_ENABLED(CONFIG_SOUTHBRIDGE_AMD_SUBTYPE_SP5100)
|
||||||
|
/* RPR 2.26 Alter CPU reset timing */
|
||||||
|
byte = pmio_read(0xb2);
|
||||||
|
@@ -698,6 +699,7 @@ static void sb700_pmio_por_init(void)
|
||||||
|
byte |= 0x1 << 7; /* Disable 25MHz oscillator buffer */
|
||||||
|
pmio_write(0xd4, byte);
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
Loading…
Reference in New Issue