[coreboot-gerrit] Change in coreboot[master]: soc/amd/stoneyridge: Call AMD ALIB method with AC/DC state

Marc Jones (Code Review) gerrit at coreboot.org
Wed Aug 1 20:51:07 CEST 2018


Marc Jones has uploaded this change for review. ( https://review.coreboot.org/27785


Change subject: soc/amd/stoneyridge: Call AMD ALIB method with AC/DC state
......................................................................

soc/amd/stoneyridge: Call AMD ALIB method with AC/DC state

AMD ALIB Function 1 accepts the AC/DC startup state. This
is reported to be required for AMD PSPP settings.

BUG=b:112020107
TEST= build test

Change-Id: Ibb6c872d84745217912956c15d6ca2e8ba387561
Signed-off-by: Marc Jones <marcj303 at gmail.com>
---
M src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl
1 file changed, 14 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/27785/1

diff --git a/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl b/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl
index 81964ba..2855b23 100644
--- a/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl
+++ b/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl
@@ -14,6 +14,8 @@
  * GNU General Public License for more details.
  */
 
+External(\_SB.ALIB, MethodObj)
+
 /* System Bus */
 /*  _SB.PCI0 */
 
@@ -138,7 +140,7 @@
  *  2. Get PCI Interrupt routing from ACPI VSM, this
  *     value is based on user choice in BIOS setup.
  */
-Method(_INI, 0) {
+Method(_INI, 0, Serialized) {
 	/* DBGO("\\_SB\\_INI\n") */
 	/* DBGO("   DSDT.ASL code from ") */
 	/* DBGO(__DATE__) */
@@ -154,6 +156,17 @@
 
 	/* Determine the OS we're running on */
 	OSFL()
+
+	/* Send ALIB Function 1 the AC/DC state */
+	Name(F1BF, Buffer(0x03){})
+	CreateWordField(F1BF, 0, F1SZ)
+	CreateByteField(F1BF, 2, F1DA)
+
+	Store(3, F1SZ)
+	Store(\PWRS, F1DA)
+
+	\_SB.ALIB(1, F1BF)
+
 } /* End Method(_SB._INI) */
 
 Method(OSFL, 0){

-- 
To view, visit https://review.coreboot.org/27785
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb6c872d84745217912956c15d6ca2e8ba387561
Gerrit-Change-Number: 27785
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc at marcjonesconsulting.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180801/def539ac/attachment.html>


More information about the coreboot-gerrit mailing list