summaryrefslogtreecommitdiffstats
path: root/docs/future/donotusethis_macbook_acpi.diff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2014-09-03 14:30:21 (EDT)
committer Michał Masłowski <mtjm@mtjm.eu>2014-09-03 14:30:21 (EDT)
commit96ca7ee67a36605a33de8d57eb8e8d3998bc6427 (patch)
tree07202c5fe7d366f50d9d17010f3bbf0a44c08ee8 /docs/future/donotusethis_macbook_acpi.diff
parent4e8051dfaa0ba5617961481056eb7e79d7b50861 (diff)
parent9a321884379a71b5f0986fdfb97a2b6c5bdccd8a (diff)
downloadlibreboot-96ca7ee67a36605a33de8d57eb8e8d3998bc6427.zip
libreboot-96ca7ee67a36605a33de8d57eb8e8d3998bc6427.tar.gz
libreboot-96ca7ee67a36605a33de8d57eb8e8d3998bc6427.tar.bz2
Merge libreboot-6b6.
Conflicts: buildrom-withgrub
Diffstat (limited to 'docs/future/donotusethis_macbook_acpi.diff')
-rw-r--r--docs/future/donotusethis_macbook_acpi.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/future/donotusethis_macbook_acpi.diff b/docs/future/donotusethis_macbook_acpi.diff
new file mode 100644
index 0000000..61a55c6
--- /dev/null
+++ b/docs/future/donotusethis_macbook_acpi.diff
@@ -0,0 +1,28 @@
+diff --git a/src/mainboard/apple/macbook21/mainboard.c b/src/mainboard/apple/macbook21/mainboard.c
+index 9a025dd..a2adb76 100644
+--- a/src/mainboard/apple/macbook21/mainboard.c
++++ b/src/mainboard/apple/macbook21/mainboard.c
+@@ -40,6 +40,12 @@
+ extern const u32 *cim_verb_data;
+ extern u32 cim_verb_data_size;
+
++static acpi_cstate_t cst_entries[] = {
++ { 1, 1, 1000, { 0x7f, 1, 2, { 0 }, 1, 0 } },
++ { 2, 1, 500, { 0x01, 8, 0, { 0 }, DEFAULT_PMBASE + LV2, 0 } },
++ { 2, 17, 250, { 0x01, 8, 0, { 0 }, DEFAULT_PMBASE + LV3, 0 } },
++};
++
+ #if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
+ static int int15_handler(void)
+ {
+@@ -73,7 +79,8 @@ static int int15_handler(void)
+
+ 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)
+