Raul E Rangel | 0f3bc81 | 2021-02-10 16:36:33 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <acpi/acpi.h> |
Raul E Rangel | 58a8ad1 | 2021-02-18 16:36:08 -0700 | [diff] [blame] | 4 | #include <acpi/acpigen.h> |
Raul E Rangel | 0f3bc81 | 2021-02-10 16:36:33 -0700 | [diff] [blame] | 5 | #include <amdblocks/acpi.h> |
| 6 | #include <device/device.h> |
Zheng Bao | 3ea3fbe | 2023-11-20 14:17:25 +0800 | [diff] [blame^] | 7 | #include <console/uart.h> |
Raul E Rangel | 0f3bc81 | 2021-02-10 16:36:33 -0700 | [diff] [blame] | 8 | #include <types.h> |
| 9 | |
| 10 | unsigned long southbridge_write_acpi_tables(const struct device *device, |
| 11 | unsigned long current, |
| 12 | struct acpi_rsdp *rsdp) |
| 13 | { |
Zheng Bao | 3ea3fbe | 2023-11-20 14:17:25 +0800 | [diff] [blame^] | 14 | current = acpi_write_hpet(device, current, rsdp); |
| 15 | |
| 16 | if (CONFIG(AMD_SOC_CONSOLE_UART)) |
| 17 | current = acpi_16550_mmio32_write_dbg2_uart(rsdp, current, |
| 18 | uart_platform_base(get_uart_for_console()), NULL); |
| 19 | |
| 20 | return current; |
Raul E Rangel | 0f3bc81 | 2021-02-10 16:36:33 -0700 | [diff] [blame] | 21 | } |