soc/amd: rename agesa_write_acpi_tables to soc_acpi_write_tables

It's not the AGESA code that generates most of the ACPI tables, so
rename the function. This also aligns the other SoCs more with Genoa.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I6b2e6c4cb7139c8bde01b4440ab2e923a1086827
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80217
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2024-01-26 14:05:58 +01:00
parent 545c532902
commit 1b410d9ab9
16 changed files with 29 additions and 29 deletions

View file

@ -7,8 +7,8 @@
#include <soc/acpi.h>
#include <types.h>
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
{
/* TODO: look into adding CRAT */

View file

@ -35,7 +35,7 @@ struct device_operations cezanne_pci_domain_ops = {
static void soc_init(void *chip_info)
{
default_dev_ops_root.write_acpi_tables = agesa_write_acpi_tables;
default_dev_ops_root.write_acpi_tables = soc_acpi_write_tables;
amd_fsp_silicon_init();

View file

@ -10,7 +10,7 @@
#define ACPI_SCI_IRQ 9
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
#endif /* AMD_CEZANNE_ACPI_H */

View file

@ -9,8 +9,8 @@
#include <soc/acpi.h>
#include <types.h>
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
{
/* TODO: look into adding CRAT */

View file

@ -37,7 +37,7 @@ struct device_operations glinda_pci_domain_ops = {
static void soc_init(void *chip_info)
{
default_dev_ops_root.write_acpi_tables = agesa_write_acpi_tables;
default_dev_ops_root.write_acpi_tables = soc_acpi_write_tables;
amd_fsp_silicon_init();

View file

@ -12,7 +12,7 @@
#define ACPI_SCI_IRQ 9
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
#endif /* AMD_GLINDA_ACPI_H */

View file

@ -9,8 +9,8 @@
#include <soc/acpi.h>
#include <types.h>
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
{
/* TODO: look into adding CRAT */

View file

@ -35,7 +35,7 @@ struct device_operations mendocino_pci_domain_ops = {
static void soc_init(void *chip_info)
{
default_dev_ops_root.write_acpi_tables = agesa_write_acpi_tables;
default_dev_ops_root.write_acpi_tables = soc_acpi_write_tables;
amd_fsp_silicon_init();

View file

@ -10,7 +10,7 @@
#define ACPI_SCI_IRQ 9
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
#endif /* AMD_MENDOCINO_ACPI_H */

View file

@ -10,8 +10,8 @@
#include <soc/acpi.h>
#include <types.h>
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
{
/* TODO: look into adding CRAT */

View file

@ -37,7 +37,7 @@ struct device_operations phoenix_pci_domain_ops = {
static void soc_init(void *chip_info)
{
default_dev_ops_root.write_acpi_tables = agesa_write_acpi_tables;
default_dev_ops_root.write_acpi_tables = soc_acpi_write_tables;
amd_fsp_silicon_init();

View file

@ -12,7 +12,7 @@
#define ACPI_SCI_IRQ 9
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
#endif /* AMD_PHOENIX_ACPI_H */

View file

@ -539,8 +539,8 @@ static unsigned long acpi_fill_crat(struct acpi_crat_header *crat, unsigned long
return current;
}
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp)
{
struct acpi_crat_header *crat;

View file

@ -36,7 +36,7 @@ struct device_operations picasso_pci_domain_ops = {
static void soc_init(void *chip_info)
{
default_dev_ops_root.write_acpi_tables = agesa_write_acpi_tables;
default_dev_ops_root.write_acpi_tables = soc_acpi_write_tables;
amd_fsp_silicon_init();

View file

@ -10,7 +10,7 @@
#define ACPI_SCI_IRQ 9
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
uintptr_t soc_acpi_write_tables(const struct device *device, uintptr_t current,
acpi_rsdp_t *rsdp);
#endif /* AMD_PICASSO_ACPI_H */

View file

@ -131,9 +131,9 @@ static unsigned long acpi_fill_hest(acpi_hest_t *hest)
return (unsigned long)current;
}
static unsigned long agesa_write_acpi_tables(const struct device *device,
unsigned long current,
acpi_rsdp_t *rsdp)
static unsigned long soc_acpi_write_tables(const struct device *device,
unsigned long current,
acpi_rsdp_t *rsdp)
{
acpi_srat_t *srat;
acpi_slit_t *slit;
@ -210,7 +210,7 @@ struct device_operations stoneyridge_northbridge_operations = {
.enable_resources = pci_dev_enable_resources,
.init = northbridge_init,
.acpi_fill_ssdt = acpi_fill_root_complex_tom,
.write_acpi_tables = agesa_write_acpi_tables,
.write_acpi_tables = soc_acpi_write_tables,
};
/*