• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <acpi/acpigen.h>
4 #include <southbridge/intel/i82801gx/i82801gx.h>
5 
6 static const acpi_cstate_t cst_entries[] = {
7 	{
8 		/* ACPI C1 / CPU C1 */
9 		1, 0x01, 1000,
10 		{ ACPI_ADDRESS_SPACE_FIXED, 1, 2, 1, 0, 0 }
11 	},
12 	{
13 		/* ACPI C2 / CPU C2 */
14 		2, 0x01,  500,
15 		{ ACPI_ADDRESS_SPACE_IO, 8, 0, 0, DEFAULT_PMBASE + LV2, 0 }
16 	},
17 	{
18 		/* ACPI C3 / CPU C2 */
19 		2, 0x11,  250,
20 		{ ACPI_ADDRESS_SPACE_IO, 8, 0, 0, DEFAULT_PMBASE + LV3, 0 }
21 	},
22 };
23 
get_cst_entries(const acpi_cstate_t ** entries)24 int get_cst_entries(const acpi_cstate_t **entries)
25 {
26 	*entries = cst_entries;
27 	return ARRAY_SIZE(cst_entries);
28 }
29