soc/amd/cezanne/agesa_acpi: add and call agesa_write_acpi_tables
This function will be used to add some SSDTs. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ia88cb5ea483850a8659f3bae8040c82eb2735d26 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52902 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
This commit is contained in:
parent
afc4978ede
commit
144c7aa34b
|
@ -32,6 +32,7 @@ romstage-y += uart.c
|
|||
|
||||
ramstage-y += i2c.c
|
||||
ramstage-y += acpi.c
|
||||
ramstage-y += agesa_acpi.c
|
||||
ramstage-y += chip.c
|
||||
ramstage-y += cpu.c
|
||||
ramstage-y += data_fabric.c
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
#include <amdblocks/acpi.h>
|
||||
#include <device/device.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <types.h>
|
||||
|
||||
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
return current;
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <fsp/api.h>
|
||||
#include <soc/acpi.h>
|
||||
#include <soc/cpu.h>
|
||||
#include <soc/data_fabric.h>
|
||||
#include <soc/pci_devs.h>
|
||||
|
@ -79,6 +80,8 @@ static void enable_dev(struct device *dev)
|
|||
|
||||
static void soc_init(void *chip_info)
|
||||
{
|
||||
default_dev_ops_root.write_acpi_tables = agesa_write_acpi_tables;
|
||||
|
||||
fsp_silicon_init();
|
||||
|
||||
data_fabric_set_mmio_np();
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
#ifndef AMD_CEZANNE_ACPI_H
|
||||
#define AMD_CEZANNE_ACPI_H
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
#include <amdblocks/acpi.h>
|
||||
#include <device/device.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define ACPI_SCI_IRQ 9
|
||||
|
||||
/* RTC Registers */
|
||||
|
@ -10,4 +15,7 @@
|
|||
#define RTC_ALT_CENTURY 0x32
|
||||
#define RTC_CENTURY 0x48
|
||||
|
||||
uintptr_t agesa_write_acpi_tables(const struct device *device, uintptr_t current,
|
||||
acpi_rsdp_t *rsdp);
|
||||
|
||||
#endif /* AMD_CEZANNE_ACPI_H */
|
||||
|
|
Loading…
Reference in New Issue