blob: 175153ebd4b1b45c2d667d06f809232dadf1ecec [file] [log] [blame]
Timothy Pearson4b373c92015-04-05 17:54:08 -05001/*
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.
Timothy Pearson4b373c92015-04-05 17:54:08 -050014 */
15
16#include <arch/acpigen.h>
17#include <device/device.h> /* fix for i82801ix.h */
18#include <southbridge/intel/i82801ix/i82801ix.h>
19
20static acpi_cstate_t cst_entries[] = {
21 {
Elyes HAOUAS8ab989e2016-07-30 17:46:17 +020022 /* ACPI C1 / CPU C1 */
Timothy Pearson4b373c92015-04-05 17:54:08 -050023 1, 0x01, 1000,
24 { ACPI_ADDRESS_SPACE_FIXED, 1, 2, { 1 }, 0, 0 }
25 },
26 {
Elyes HAOUAS8ab989e2016-07-30 17:46:17 +020027 /* ACPI C2 / CPU C2 */
Timothy Pearson4b373c92015-04-05 17:54:08 -050028 2, 0x01, 500,
29 { ACPI_ADDRESS_SPACE_FIXED, 1, 2, { 1 }, 0x10, 0 }
30 },
Arthur Heymans2a1847e2016-06-17 19:06:25 +020031 {
32 /* acpi C3 / cpu C3 */
33 3, 0x37, 250,
34 { ACPI_ADDRESS_SPACE_FIXED, 1, 2, { 1 }, 0x20, 0 }
35 },
Timothy Pearson4b373c92015-04-05 17:54:08 -050036};
37
38int get_cst_entries(acpi_cstate_t **entries)
39{
40 *entries = cst_entries;
41 return ARRAY_SIZE(cst_entries);
42}