soc/intel/xeon_sp: Move ACPI prototypes from chip.h

Prepare for common ACPI. Move the soc ACPI function prototypes from
cpx and skx chip.h to include/soc/acpi.h.

Change-Id: Ib7037cfb58825a2f6c25c122b95f72d5992dc04e
Signed-off-by: Marc Jones <marcjones@sysproconsulting.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46595
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Marc Jones 2020-10-19 15:52:52 -06:00 committed by Marc Jones
parent 8972750b26
commit 8066fda9ed
7 changed files with 5 additions and 18 deletions

View File

@ -23,8 +23,6 @@
#include <soc/pm.h> #include <soc/pm.h>
#include <soc/soc_util.h> #include <soc/soc_util.h>
#include "chip.h"
static int acpi_sci_irq(void) static int acpi_sci_irq(void)
{ {
int sci_irq = 9; int sci_irq = 9;

View File

@ -99,10 +99,4 @@ struct soc_intel_xeon_sp_cpx_config {
typedef struct soc_intel_xeon_sp_cpx_config config_t; typedef struct soc_intel_xeon_sp_cpx_config config_t;
/* soc acpi function prototypes. To be removed when acpi.c is replaced by common/acpi.c */
void cpx_generate_p_state_entries(int core, int cores_per_package);
int calculate_power(int tdp, int p1_ratio, int ratio);
void uncore_inject_dsdt(void);
unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
#endif #endif

View File

@ -17,8 +17,6 @@
#include <soc/pm.h> #include <soc/pm.h>
#include <soc/soc_util.h> #include <soc/soc_util.h>
#include "chip.h"
/* TODO: Check if the common/acpi weak function can be used */ /* TODO: Check if the common/acpi weak function can be used */
unsigned long acpi_fill_mcfg(unsigned long current) unsigned long acpi_fill_mcfg(unsigned long current)
{ {

View File

@ -22,4 +22,9 @@ unsigned long northbridge_write_acpi_tables(const struct device *device,
void motherboard_fill_fadt(acpi_fadt_t *fadt); void motherboard_fill_fadt(acpi_fadt_t *fadt);
void cpx_generate_p_state_entries(int core, int cores_per_package);
int calculate_power(int tdp, int p1_ratio, int ratio);
void uncore_inject_dsdt(void);
unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
#endif /* _SOC_ACPI_H_ */ #endif /* _SOC_ACPI_H_ */

View File

@ -15,8 +15,6 @@
#include <soc/pm.h> #include <soc/pm.h>
#include <string.h> #include <string.h>
#include "chip.h"
acpi_cstate_t *soc_get_cstate_map(size_t *entries) acpi_cstate_t *soc_get_cstate_map(size_t *entries)
{ {
*entries = 0; *entries = 0;

View File

@ -76,8 +76,4 @@ struct soc_intel_xeon_sp_skx_config {
typedef struct soc_intel_xeon_sp_skx_config config_t; typedef struct soc_intel_xeon_sp_skx_config config_t;
/* soc acpi function prototypes. To be removed when acpi.c is replaced by common/acpi.c */
void uncore_inject_dsdt(void);
unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
#endif #endif

View File

@ -18,8 +18,6 @@
#include <soc/pm.h> #include <soc/pm.h>
#include <soc/soc_util.h> #include <soc/soc_util.h>
#include "chip.h"
/* TODO: Check if the common/acpi weak function can be used */ /* TODO: Check if the common/acpi weak function can be used */
unsigned long acpi_fill_mcfg(unsigned long current) unsigned long acpi_fill_mcfg(unsigned long current)
{ {