Vladimir Serbinenko | 61ffb4c | 2014-08-12 22:51:53 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2012 secunet Security Networks AG |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Vladimir Serbinenko | 61ffb4c | 2014-08-12 22:51:53 +0200 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <arch/acpigen.h> |
| 17 | #include <device/device.h> /* fix for i82801ix.h */ |
| 18 | #include <southbridge/intel/i82801ix/i82801ix.h> |
| 19 | |
| 20 | static acpi_cstate_t cst_entries[] = { |
| 21 | { |
| 22 | /* acpi C1 / cpu C1 */ |
| 23 | 1, 0x01, 1000, |
| 24 | { ACPI_ADDRESS_SPACE_FIXED, 1, 2, { 1 }, 0, 0 } |
| 25 | }, |
| 26 | { |
| 27 | /* acpi C2 / cpu C2 */ |
| 28 | 2, 0x01, 500, |
| 29 | { ACPI_ADDRESS_SPACE_FIXED, 1, 2, { 1 }, 0x10, 0 } |
| 30 | }, |
| 31 | }; |
| 32 | |
| 33 | int get_cst_entries(acpi_cstate_t **entries) |
| 34 | { |
| 35 | *entries = cst_entries; |
| 36 | return ARRAY_SIZE(cst_entries); |
| 37 | } |