Martin Roth | 4a45ab8 | 2019-09-23 18:23:02 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Martin Roth | 4a45ab8 | 2019-09-23 18:23:02 -0600 | [diff] [blame] | 2 | |
Furquan Shaikh | 6cc1e9e | 2020-04-30 19:13:47 -0700 | [diff] [blame] | 3 | ifeq ($(CONFIG_HAVE_ACPI_TABLES),y) |
| 4 | |
| 5 | ramstage-y += acpi.c |
Arthur Heymans | fca6124 | 2023-06-22 21:51:28 +0200 | [diff] [blame] | 6 | ifeq ($(CONFIG_ARCH_RAMSTAGE_X86_32)$(CONFIG_ARCH_RAMSTAGE_X86_64),y) |
| 7 | ramstage-y += acpi_apic.c |
| 8 | ramstage-y += acpi_dmar.c |
| 9 | ramstage-y += acpi_hpet.c |
| 10 | endif |
Furquan Shaikh | 6cc1e9e | 2020-04-30 19:13:47 -0700 | [diff] [blame] | 11 | ramstage-y += acpigen.c |
Tim Wawrzynczak | c41f7f1 | 2020-05-29 13:56:37 -0600 | [diff] [blame] | 12 | ramstage-y += acpigen_dptf.c |
Furquan Shaikh | 6cc1e9e | 2020-04-30 19:13:47 -0700 | [diff] [blame] | 13 | ramstage-y += acpigen_dsm.c |
Tim Wawrzynczak | d40a4c2 | 2021-02-25 13:14:49 -0700 | [diff] [blame] | 14 | ramstage-$(CONFIG_PCI) += acpigen_pci.c |
Furquan Shaikh | 6cc1e9e | 2020-04-30 19:13:47 -0700 | [diff] [blame] | 15 | ramstage-y += acpigen_ps2_keybd.c |
Tim Wawrzynczak | 92d96e8 | 2020-05-19 12:38:43 -0600 | [diff] [blame] | 16 | ramstage-y += acpigen_usb.c |
Furquan Shaikh | 56a5ebf | 2020-04-30 23:56:20 -0700 | [diff] [blame] | 17 | ramstage-y += device.c |
Kyösti Mälkki | 37eb24b | 2021-01-11 18:40:37 +0200 | [diff] [blame] | 18 | ramstage-$(CONFIG_ACPI_SOC_NVS) += gnvs.c |
Furquan Shaikh | 56a5ebf | 2020-04-30 23:56:20 -0700 | [diff] [blame] | 19 | ramstage-y += pld.c |
Furquan Shaikh | 6cc1e9e | 2020-04-30 19:13:47 -0700 | [diff] [blame] | 20 | ramstage-y += sata.c |
Duncan Laurie | e8189b7 | 2020-04-29 12:09:32 -0700 | [diff] [blame] | 21 | ramstage-y += soundwire.c |
Kyösti Mälkki | 88decca | 2023-04-28 07:04:34 +0300 | [diff] [blame] | 22 | ramstage-y += fadt_filler.c |
Arthur Heymans | 3df6cc9 | 2023-06-27 16:44:59 +0200 | [diff] [blame] | 23 | ramstage-$(CONFIG_ACPI_COMMON_MADT_GICC_V3) += acpi_gic.c |
Furquan Shaikh | 6cc1e9e | 2020-04-30 19:13:47 -0700 | [diff] [blame] | 24 | |
Kyösti Mälkki | 2787237 | 2021-01-21 16:05:26 +0200 | [diff] [blame] | 25 | all-y += acpi_pm.c |
| 26 | smm-y += acpi_pm.c |
Kyösti Mälkki | 4a3f67a | 2020-06-18 13:44:29 +0300 | [diff] [blame] | 27 | |
Furquan Shaikh | e5bcc72 | 2020-04-30 23:05:11 -0700 | [diff] [blame] | 28 | ifneq ($(wildcard src/mainboard/$(MAINBOARDDIR)/acpi_tables.c),) |
| 29 | ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/acpi_tables.c |
| 30 | endif |
| 31 | $(eval $(call asl_template,dsdt)) |
Furquan Shaikh | e5bcc72 | 2020-04-30 23:05:11 -0700 | [diff] [blame] | 32 | |
Kyösti Mälkki | cfc3c35 | 2020-05-31 01:58:41 +0300 | [diff] [blame] | 33 | endif # CONFIG_HAVE_ACPI_TABLES |