[coreboot-gerrit] New patch to review for coreboot: 20a18e2 macbook21: Add CST entries

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Sun Aug 17 16:52:35 CEST 2014


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6693

-gerrit

commit 20a18e201751b564d66415910c55c3b5df29dcc1
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Sun Aug 17 16:50:46 2014 +0200

    macbook21: Add CST entries
    
    Change-Id: I9e8628d879a193e2f6ba561ee17f24ae94435e1a
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 src/mainboard/apple/macbook21/mainboard.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/apple/macbook21/mainboard.c b/src/mainboard/apple/macbook21/mainboard.c
index 9a025dd..a4a23ab 100644
--- a/src/mainboard/apple/macbook21/mainboard.c
+++ b/src/mainboard/apple/macbook21/mainboard.c
@@ -71,9 +71,16 @@ static int int15_handler(void)
 }
 #endif
 
+static acpi_cstate_t cst_entries[] = {
+	{ 1,  1, 1000, { 0x7f, 1, 2, { 0 }, 0, 0 } },
+	{ 2,  1,  500, { 0x7f, 1, 2, { 0 }, 0x10, 0 } },
+	{ 2, 55,  100, { 0x7f, 1, 2, { 0 }, 0x31, 0 } },
+};
+
 int get_cst_entries(acpi_cstate_t **entries)
 {
-	return 0;
+	*entries = cst_entries;
+	return ARRAY_SIZE(cst_entries);
 }
 
 static void mainboard_init(device_t dev)



More information about the coreboot-gerrit mailing list