soc/intel/xeon_sp: Move uncore_inject_dsdt() call
Prepare for common ACPI code. Move uncore_inject_dsdt() to the uncore device acpi_inject_dsdt call. Change-Id: Ida106238690eb1af17759ba6dbe4cb94344e3a94 Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46596 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
8066fda9ed
commit
521a03f303
6 changed files with 7 additions and 17 deletions
|
@ -214,9 +214,6 @@ void southbridge_inject_dsdt(const struct device *device)
|
||||||
acpigen_write_name_dword("NVSA", (uint32_t)gnvs);
|
acpigen_write_name_dword("NVSA", (uint32_t)gnvs);
|
||||||
acpigen_pop_len();
|
acpigen_pop_len();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add IIOStack ACPI Resource Templates */
|
|
||||||
uncore_inject_dsdt();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int calculate_power(int tdp, int p1_ratio, int ratio)
|
int calculate_power(int tdp, int p1_ratio, int ratio)
|
||||||
|
|
|
@ -57,11 +57,7 @@ void soc_fill_fadt(acpi_fadt_t *fadt)
|
||||||
ACPI_FADT_S4_RTC_WAKE);
|
ACPI_FADT_S4_RTC_WAKE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
void uncore_inject_dsdt(const struct device *device)
|
||||||
* Currently called in southbridge_inject_dsdt(). Change to soc_southbridge_inject_dsdt()
|
|
||||||
* with a call from the common/function or find another way to call this at the correct place
|
|
||||||
*/
|
|
||||||
void uncore_inject_dsdt(void)
|
|
||||||
{
|
{
|
||||||
struct iiostack_resource stack_info = {0};
|
struct iiostack_resource stack_info = {0};
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ void motherboard_fill_fadt(acpi_fadt_t *fadt);
|
||||||
|
|
||||||
void cpx_generate_p_state_entries(int core, int cores_per_package);
|
void cpx_generate_p_state_entries(int core, int cores_per_package);
|
||||||
int calculate_power(int tdp, int p1_ratio, int ratio);
|
int calculate_power(int tdp, int p1_ratio, int ratio);
|
||||||
void uncore_inject_dsdt(void);
|
void uncore_inject_dsdt(const struct device *device);
|
||||||
unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
|
unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current);
|
||||||
|
|
||||||
#endif /* _SOC_ACPI_H_ */
|
#endif /* _SOC_ACPI_H_ */
|
||||||
|
|
|
@ -247,9 +247,6 @@ void southbridge_inject_dsdt(const struct device *device)
|
||||||
acpigen_write_name_dword("NVSA", (uint32_t)gnvs);
|
acpigen_write_name_dword("NVSA", (uint32_t)gnvs);
|
||||||
acpigen_pop_len();
|
acpigen_pop_len();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add IIOStack ACPI Resource Templates
|
|
||||||
uncore_inject_dsdt();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,11 +55,7 @@ uint32_t soc_read_sci_irq_select(void)
|
||||||
return pci_read_config32(dev, PMC_ACPI_CNT);
|
return pci_read_config32(dev, PMC_ACPI_CNT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
void uncore_inject_dsdt(const struct device *device)
|
||||||
* Currently called in southbridge_inject_dsdt(). Change to soc_southbridge_inject_dsdt()
|
|
||||||
* with a call from the common/function or find another way to call this at the correct place
|
|
||||||
*/
|
|
||||||
void uncore_inject_dsdt(void)
|
|
||||||
{
|
{
|
||||||
size_t hob_size;
|
size_t hob_size;
|
||||||
const uint8_t uds_guid[16] = FSP_HOB_IIO_UNIVERSAL_DATA_GUID;
|
const uint8_t uds_guid[16] = FSP_HOB_IIO_UNIVERSAL_DATA_GUID;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include <cpu/x86/lapic_def.h>
|
#include <cpu/x86/lapic_def.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
|
#include <soc/acpi.h>
|
||||||
#include <soc/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/ramstage.h>
|
#include <soc/ramstage.h>
|
||||||
|
@ -274,6 +275,9 @@ static struct device_operations mmapvtd_ops = {
|
||||||
.enable_resources = pci_dev_enable_resources,
|
.enable_resources = pci_dev_enable_resources,
|
||||||
.init = mmapvtd_init,
|
.init = mmapvtd_init,
|
||||||
.ops_pci = &soc_pci_ops,
|
.ops_pci = &soc_pci_ops,
|
||||||
|
#if CONFIG(HAVE_ACPI_TABLES)
|
||||||
|
.acpi_inject_dsdt = uncore_inject_dsdt,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned short mmapvtd_ids[] = {
|
static const unsigned short mmapvtd_ids[] = {
|
||||||
|
|
Loading…
Reference in a new issue