aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/ocp
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-05-30 13:46:45 +0300
committerPatrick Georgi <pgeorgi@google.com>2020-06-07 21:53:04 +0000
commit1edf8b77e02116cd01038cc17e42e2ea1a94c7f1 (patch)
treec346245b94240fbfae1fbfa9baf2bb015c83954c /src/mainboard/ocp
parent315710af7b3c704528a6de7865e82c40ad1930ed (diff)
mb/*: Remove some fadt.c files
Change-Id: I13ed3b6e8608c37c1ebe51838e4052f89a638d83 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41947 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/ocp')
-rw-r--r--src/mainboard/ocp/tiogapass/Makefile.inc1
-rw-r--r--src/mainboard/ocp/tiogapass/acpi_tables.c5
-rw-r--r--src/mainboard/ocp/tiogapass/fadt.c10
3 files changed, 5 insertions, 11 deletions
diff --git a/src/mainboard/ocp/tiogapass/Makefile.inc b/src/mainboard/ocp/tiogapass/Makefile.inc
index 39e67beb50..ca4e4637d2 100644
--- a/src/mainboard/ocp/tiogapass/Makefile.inc
+++ b/src/mainboard/ocp/tiogapass/Makefile.inc
@@ -2,7 +2,6 @@
bootblock-y += bootblock.c
ramstage-y += ramstage.c
-ramstage-$(CONFIG_HAVE_ACPI_TABLES) += fadt.c
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
CPPFLAGS_common += -I$(CONFIG_FSP_HEADER_PATH)
diff --git a/src/mainboard/ocp/tiogapass/acpi_tables.c b/src/mainboard/ocp/tiogapass/acpi_tables.c
index 9a36bd3723..250ccad0a1 100644
--- a/src/mainboard/ocp/tiogapass/acpi_tables.c
+++ b/src/mainboard/ocp/tiogapass/acpi_tables.c
@@ -9,3 +9,8 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
{
acpi_init_gnvs(gnvs);
}
+
+void motherboard_fill_fadt(acpi_fadt_t *fadt)
+{
+ fadt->preferred_pm_profile = PM_ENTERPRISE_SERVER;
+}
diff --git a/src/mainboard/ocp/tiogapass/fadt.c b/src/mainboard/ocp/tiogapass/fadt.c
deleted file mode 100644
index 6e077870c2..0000000000
--- a/src/mainboard/ocp/tiogapass/fadt.c
+++ /dev/null
@@ -1,10 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-
-#include <acpi/acpi.h>
-#include <soc/acpi.h>
-
-void motherboard_fill_fadt(acpi_fadt_t *fadt)
-{
- fadt->reserved = 0;
- fadt->preferred_pm_profile = PM_ENTERPRISE_SERVER;
-}