donotusethis_macbook_acpi.diff 911 B

1234567891011121314151617181920212223242526272829
  1. diff --git a/src/mainboard/apple/macbook21/mainboard.c b/src/mainboard/apple/macbook21/mainboard.c
  2. index 9a025dd..a2adb76 100644
  3. --- a/src/mainboard/apple/macbook21/mainboard.c
  4. +++ b/src/mainboard/apple/macbook21/mainboard.c
  5. @@ -40,6 +40,12 @@
  6. extern const u32 *cim_verb_data;
  7. extern u32 cim_verb_data_size;
  8. +static acpi_cstate_t cst_entries[] = {
  9. + { 1, 1, 1000, { 0x7f, 1, 2, { 0 }, 1, 0 } },
  10. + { 2, 1, 500, { 0x01, 8, 0, { 0 }, DEFAULT_PMBASE + LV2, 0 } },
  11. + { 2, 17, 250, { 0x01, 8, 0, { 0 }, DEFAULT_PMBASE + LV3, 0 } },
  12. +};
  13. +
  14. #if CONFIG_PCI_OPTION_ROM_RUN_YABEL || CONFIG_PCI_OPTION_ROM_RUN_REALMODE
  15. static int int15_handler(void)
  16. {
  17. @@ -73,7 +79,8 @@ static int int15_handler(void)
  18. int get_cst_entries(acpi_cstate_t **entries)
  19. {
  20. - return 0;
  21. + *entries = cst_entries;
  22. + return ARRAY_SIZE(cst_entries);
  23. }
  24. static void mainboard_init(device_t dev)