From 7cf0ff45c69eb3dbb49d27535c8a33a264a0d3aa Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 17 May 2021 10:14:52 +0200 Subject: mainboard: Drop useless `acpi_tables.c` files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `tcrt` and `tpsv` values in GNVS can be used to implement thermal management in ACPI. However, not all mainboards use these values. On mainboards where `tcrt` and `tpsv` are not used in ACPI tables and are the only values set in the `mainboard_fill_gnvs` function, remove them as well as the entire `acpi_tables.c` file. Most files come from autoport, which unconditionally generates this file. Change-Id: If2315ddd9700e2da0a24ffecc20acb5c1a1d688e Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/54353 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Michael Niewöhner --- src/mainboard/asus/p8h61-m_lx3_r2_0/acpi_tables.c | 10 ---------- src/mainboard/asus/p8h61-m_pro/acpi_tables.c | 10 ---------- src/mainboard/asus/p8z77-m_pro/acpi_tables.c | 13 ------------- src/mainboard/asus/p8z77-v_lx2/acpi_tables.c | 10 ---------- 4 files changed, 43 deletions(-) delete mode 100644 src/mainboard/asus/p8h61-m_lx3_r2_0/acpi_tables.c delete mode 100644 src/mainboard/asus/p8h61-m_pro/acpi_tables.c delete mode 100644 src/mainboard/asus/p8z77-m_pro/acpi_tables.c delete mode 100644 src/mainboard/asus/p8z77-v_lx2/acpi_tables.c (limited to 'src/mainboard/asus') diff --git a/src/mainboard/asus/p8h61-m_lx3_r2_0/acpi_tables.c b/src/mainboard/asus/p8h61-m_lx3_r2_0/acpi_tables.c deleted file mode 100644 index 230584ee4a..0000000000 --- a/src/mainboard/asus/p8h61-m_lx3_r2_0/acpi_tables.c +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include -#include - -void mainboard_fill_gnvs(struct global_nvs *gnvs) -{ - gnvs->tcrt = 100; - gnvs->tpsv = 90; -} diff --git a/src/mainboard/asus/p8h61-m_pro/acpi_tables.c b/src/mainboard/asus/p8h61-m_pro/acpi_tables.c deleted file mode 100644 index 230584ee4a..0000000000 --- a/src/mainboard/asus/p8h61-m_pro/acpi_tables.c +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include -#include - -void mainboard_fill_gnvs(struct global_nvs *gnvs) -{ - gnvs->tcrt = 100; - gnvs->tpsv = 90; -} diff --git a/src/mainboard/asus/p8z77-m_pro/acpi_tables.c b/src/mainboard/asus/p8z77-m_pro/acpi_tables.c deleted file mode 100644 index a4204f1c54..0000000000 --- a/src/mainboard/asus/p8z77-m_pro/acpi_tables.c +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include -#include - -void mainboard_fill_gnvs(struct global_nvs *gnvs) -{ - /* critical temp that will shutdown the pc == 95C degrees */ - gnvs->tcrt = 95; - - /* temp to start throttling the cpu == 85C */ - gnvs->tpsv = 85; -} diff --git a/src/mainboard/asus/p8z77-v_lx2/acpi_tables.c b/src/mainboard/asus/p8z77-v_lx2/acpi_tables.c deleted file mode 100644 index 230584ee4a..0000000000 --- a/src/mainboard/asus/p8z77-v_lx2/acpi_tables.c +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include -#include - -void mainboard_fill_gnvs(struct global_nvs *gnvs) -{ - gnvs->tcrt = 100; - gnvs->tpsv = 90; -} -- cgit v1.2.3