[coreboot-gerrit] New patch to review for coreboot: 9e4a073 macbook21: Add CST entries

Mono Moosbart (mono@posteo.de) gerrit at coreboot.org
Thu Dec 25 07:24:47 CET 2014


Mono Moosbart (mono at posteo.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7923

-gerrit

commit 9e4a07369b23df8a323f46f64d8523a3741bafa1
Author: Mono <mono at posteo.de>
Date:   Thu Dec 25 07:23:16 2014 +0100

    macbook21: Add CST entries
    
    This mimics ACPI under vendor bios on AC, providing c1 and c2 state.
    
    Change-Id: I6b2173df1dc09300329b61b51b79f4b9f4a8fb13
    Signed-off-by: Mono <mono at posteo.de>
---
 src/mainboard/apple/macbook21/mainboard.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/apple/macbook21/mainboard.c b/src/mainboard/apple/macbook21/mainboard.c
index 99527c1..15fe33f 100644
--- a/src/mainboard/apple/macbook21/mainboard.c
+++ b/src/mainboard/apple/macbook21/mainboard.c
@@ -36,9 +36,15 @@
 #include <drivers/intel/gma/int15.h>
 #define PANEL INT15_5F35_CL_DISPLAY_DEFAULT
 
+static acpi_cstate_t cst_entries[] = {
+	{ 1,  1, 1000, { 0x7f, 0, 0, { 0 }, 0, 0 } },
+	{ 2,  1,  500, { 0x01, 8, 0, { 0 }, DEFAULT_PMBASE + LV2, 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