From 9951e7931942d2921f92f6e094b1cc32c190eab9 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Thu, 1 May 2014 10:41:12 -0700 Subject: [PATCH] broadwell: Add header for ACPI defines and prototypes Move the ACPI related defines and function prototypes to a new header at broadwell/acpi.h. BUG=chrome-os-partner:28234 TEST=None Change-Id: Id3e3e92d535613e2a8ffbf6b39d07d1ac231e9bd Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/198914 Reviewed-by: Aaron Durbin --- src/soc/intel/broadwell/broadwell/acpi.h | 37 ++++++++++++++++++++++++ src/soc/intel/broadwell/broadwell/pch.h | 2 -- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 src/soc/intel/broadwell/broadwell/acpi.h diff --git a/src/soc/intel/broadwell/broadwell/acpi.h b/src/soc/intel/broadwell/broadwell/acpi.h new file mode 100644 index 0000000000..63c0a36c49 --- /dev/null +++ b/src/soc/intel/broadwell/broadwell/acpi.h @@ -0,0 +1,37 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2014 Google Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _BROADWELL_ACPI_H_ +#define _BROADWELL_ACPI_H_ + +#include +#include + +/* P-state configuration */ +#define PSS_MAX_ENTRIES 8 +#define PSS_RATIO_STEP 2 +#define PSS_LATENCY_TRANSITION 10 +#define PSS_LATENCY_BUSMASTER 10 + +void acpi_create_intel_hpet(acpi_hpet_t *hpet); +void acpi_fill_in_fadt(acpi_fadt_t *fadt); +unsigned long acpi_madt_irq_overrides(unsigned long current); +void acpi_init_gnvs(global_nvs_t *gnvs); + +#endif diff --git a/src/soc/intel/broadwell/broadwell/pch.h b/src/soc/intel/broadwell/broadwell/pch.h index eab65e279b..3a1ea54cb5 100644 --- a/src/soc/intel/broadwell/broadwell/pch.h +++ b/src/soc/intel/broadwell/broadwell/pch.h @@ -57,8 +57,6 @@ void pch_disable_devfn(device_t dev); #if CONFIG_ELOG void pch_log_state(void); #endif -void acpi_create_intel_hpet(acpi_hpet_t * hpet); -void acpi_create_serialio_ssdt(acpi_header_t *ssdt); #endif /* __ASSEMBLER__ */