ACPI: Have single call-site for acpi_inject_nvsa()
Change-Id: I61a9b07ec3fdaeef0622df82e106405f01e89a9e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48719 Reviewed-by: Lance Zhao Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Angel Pons
parent
c84572e0e1
commit
91946c5b13
@@ -482,15 +482,9 @@ void southcluster_enable_dev(struct device *dev)
|
||||
}
|
||||
}
|
||||
|
||||
static void southcluster_inject_dsdt(const struct device *device)
|
||||
{
|
||||
acpi_inject_nvsa();
|
||||
}
|
||||
|
||||
static struct device_operations device_ops = {
|
||||
.read_resources = sc_read_resources,
|
||||
.set_resources = pci_dev_set_resources,
|
||||
.acpi_inject_dsdt = southcluster_inject_dsdt,
|
||||
.write_acpi_tables = acpi_write_hpet,
|
||||
.init = sc_init,
|
||||
.enable = southcluster_enable_dev,
|
||||
|
@@ -364,11 +364,6 @@ unsigned long southcluster_write_acpi_tables(const struct device *device, unsign
|
||||
return current;
|
||||
}
|
||||
|
||||
void southcluster_inject_dsdt(const struct device *device)
|
||||
{
|
||||
acpi_inject_nvsa();
|
||||
}
|
||||
|
||||
__weak void acpi_create_serialio_ssdt(acpi_header_t *ssdt)
|
||||
{
|
||||
}
|
||||
|
@@ -8,7 +8,6 @@
|
||||
int acpi_sci_irq(void);
|
||||
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
|
||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||
void southcluster_inject_dsdt(const struct device *device);
|
||||
unsigned long southcluster_write_acpi_tables(const struct device *device,
|
||||
unsigned long current, struct acpi_rsdp *rsdp);
|
||||
|
||||
|
@@ -531,7 +531,6 @@ void southcluster_enable_dev(struct device *dev)
|
||||
static struct device_operations device_ops = {
|
||||
.read_resources = sc_read_resources,
|
||||
.set_resources = pci_dev_set_resources,
|
||||
.acpi_inject_dsdt = southcluster_inject_dsdt,
|
||||
.write_acpi_tables = southcluster_write_acpi_tables,
|
||||
.init = sc_init,
|
||||
.enable = southcluster_enable_dev,
|
||||
|
@@ -609,11 +609,6 @@ void soc_fill_gnvs(struct global_nvs *gnvs)
|
||||
gnvs->pcnt = dev_count_cpu();
|
||||
}
|
||||
|
||||
static void southcluster_inject_dsdt(const struct device *device)
|
||||
{
|
||||
acpi_inject_nvsa();
|
||||
}
|
||||
|
||||
static unsigned long broadwell_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
@@ -630,7 +625,6 @@ static struct device_operations device_ops = {
|
||||
.read_resources = &pch_lpc_read_resources,
|
||||
.set_resources = &pci_dev_set_resources,
|
||||
.enable_resources = &pci_dev_enable_resources,
|
||||
.acpi_inject_dsdt = southcluster_inject_dsdt,
|
||||
.write_acpi_tables = broadwell_write_acpi_tables,
|
||||
.init = &lpc_init,
|
||||
.scan_bus = &scan_static_bus,
|
||||
|
@@ -236,11 +236,6 @@ static int acpi_fill_wake(uint32_t *pm1, uint32_t **gpe0)
|
||||
}
|
||||
#endif
|
||||
|
||||
void southbridge_inject_dsdt(const struct device *device)
|
||||
{
|
||||
acpi_inject_nvsa();
|
||||
}
|
||||
|
||||
int common_calculate_power_ratio(int tdp, int p1_ratio, int ratio)
|
||||
{
|
||||
u32 m;
|
||||
|
@@ -107,7 +107,6 @@ static struct device_operations device_ops = {
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.write_acpi_tables = southbridge_write_acpi_tables,
|
||||
.acpi_inject_dsdt = southbridge_inject_dsdt,
|
||||
.acpi_name = lpc_acpi_name,
|
||||
#endif
|
||||
.init = lpc_soc_init,
|
||||
|
@@ -241,11 +241,6 @@ unsigned long southcluster_write_acpi_tables(const struct device *device,
|
||||
return current;
|
||||
}
|
||||
|
||||
void southcluster_inject_dsdt(const struct device *device)
|
||||
{
|
||||
acpi_inject_nvsa();
|
||||
}
|
||||
|
||||
__weak void acpi_create_serialio_ssdt(acpi_header_t *ssdt) {}
|
||||
|
||||
static unsigned long acpi_fill_dmar(unsigned long current)
|
||||
|
@@ -10,7 +10,6 @@ unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||
unsigned long southcluster_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp);
|
||||
void southcluster_inject_dsdt(const struct device *device);
|
||||
unsigned long systemagent_write_acpi_tables(const struct device *dev,
|
||||
unsigned long start,
|
||||
struct acpi_rsdp *const rsdp);
|
||||
|
@@ -536,7 +536,6 @@ static struct device_operations device_ops = {
|
||||
.read_resources = lpc_read_resources,
|
||||
.set_resources = pci_dev_set_resources,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_inject_dsdt = southcluster_inject_dsdt,
|
||||
.write_acpi_tables = southcluster_write_acpi_tables,
|
||||
#endif
|
||||
.enable_resources = lpc_enable_resources,
|
||||
|
@@ -522,11 +522,6 @@ unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
return acpi_align_current(current);
|
||||
}
|
||||
|
||||
void southbridge_inject_dsdt(const struct device *device)
|
||||
{
|
||||
acpi_inject_nvsa();
|
||||
}
|
||||
|
||||
/* Save wake source information for calculating ACPI _SWS values */
|
||||
int soc_fill_acpi_wake(uint32_t *pm1, uint32_t **gpe0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user