From a0bd3e9a972908c428677b2c1541d16ddf9e77a0 Mon Sep 17 00:00:00 2001 From: Grzegorz Bernacki Date: Mon, 29 May 2023 11:53:38 +0000 Subject: mb/google: AMD: move tpm_tis to AMD common code It moves cr50_plat_irq_status() to common code and adds Kconfig option to specify GPIO used for interrupt. BUG=b:277787305 TEST=Build all affected platform and confirm using right GPIO number. Tested on Skyrim. Change-Id: I775c4e24cffee99b6ac3e05b58a75425029a86c8 Signed-off-by: Grzegorz Bernacki Reviewed-on: https://review.coreboot.org/c/coreboot/+/75621 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu Reviewed-by: Eric Lai Reviewed-by: Martin L Roth --- src/mainboard/google/skyrim/variants/baseboard/Makefile.inc | 3 --- src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c | 9 --------- 2 files changed, 12 deletions(-) delete mode 100644 src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c (limited to 'src/mainboard/google/skyrim/variants') diff --git a/src/mainboard/google/skyrim/variants/baseboard/Makefile.inc b/src/mainboard/google/skyrim/variants/baseboard/Makefile.inc index bd27f68128..7828cf1bff 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/Makefile.inc +++ b/src/mainboard/google/skyrim/variants/baseboard/Makefile.inc @@ -1,12 +1,9 @@ bootblock-y += gpio.c romstage-y += gpio.c -romstage-y += tpm_tis.c ramstage-y += gpio.c -ramstage-y += tpm_tis.c -verstage-y += tpm_tis.c verstage-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += gpio.c smm-y += gpio.c diff --git a/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c b/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c deleted file mode 100644 index b3ab49aee3..0000000000 --- a/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c +++ /dev/null @@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ - -#include -#include - -int cr50_plat_irq_status(void) -{ - return gpio_interrupt_status(GPIO_18); -} -- cgit v1.2.3