Felix Held | 3c44c62 | 2022-01-10 20:57:29 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | /* TODO: Check if this is still correct */ |
| 4 | |
| 5 | #include <acpi/acpi.h> |
| 6 | #include <amdblocks/acpi.h> |
| 7 | #include <device/device.h> |
| 8 | #include <FspGuids.h> |
Felix Held | 3c44c62 | 2022-01-10 20:57:29 +0100 | [diff] [blame] | 9 | #include <types.h> |
| 10 | |
Felix Held | ae54db7 | 2024-01-26 14:14:21 +0100 | [diff] [blame] | 11 | unsigned long soc_acpi_write_tables(const struct device *device, unsigned long current, |
| 12 | acpi_rsdp_t *rsdp) |
Felix Held | 3c44c62 | 2022-01-10 20:57:29 +0100 | [diff] [blame] | 13 | { |
Felix Held | 5c56b16 | 2023-01-17 02:52:03 +0100 | [diff] [blame] | 14 | /* TODO: look into adding CRAT */ |
| 15 | |
Felix Held | 3c44c62 | 2022-01-10 20:57:29 +0100 | [diff] [blame] | 16 | /* add ALIB SSDT from HOB */ |
Felix Held | 19f4c39 | 2023-01-17 02:48:48 +0100 | [diff] [blame] | 17 | current = acpi_align_current(current); |
Felix Held | 3c44c62 | 2022-01-10 20:57:29 +0100 | [diff] [blame] | 18 | current = add_agesa_fsp_acpi_table(AMD_FSP_ACPI_ALIB_HOB_GUID, "ALIB", rsdp, current); |
| 19 | |
| 20 | /* IVRS */ |
Felix Held | a4a2a4f | 2024-01-25 18:53:54 +0100 | [diff] [blame] | 21 | current = acpi_add_ivrs_table(current, rsdp); |
Felix Held | 3c44c62 | 2022-01-10 20:57:29 +0100 | [diff] [blame] | 22 | |
| 23 | return current; |
| 24 | } |