aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/system76/lemp9/gpio.h
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2020-07-19 18:43:27 +0200
committerMichael Niewöhner <c0d3z3r0@review.coreboot.org>2020-08-30 21:10:13 +0000
commitf0b6b30c46049e9849474965c87c83e7540e25dc (patch)
treefa029b677359901f9957126b4c40340323dfb1a0 /src/mainboard/system76/lemp9/gpio.h
parent803bd3c68272c61bf18b62de3779aab3f217fe6d (diff)
mb/system76/lemp9: enable TPM
L140CU has a TPM2 connected via SPI. Add the TPM device to the devicetree and enable it. According to Intel doc#615170-001, PIRQ is required for SPI TPM to work. Since the TPM is connected to GPP_A7, enable NF1 (PIRQA#) and set it as TPM interrupt in Kconfig. Note: The PCH maps either LPC TPM or SPI TPM to the same address and handles either LPC or SPI communication transparently. Thus we can use MAINBOARD_HAS_LPC_TPM here, which implements TPM via that address. Tested, but only polling works currently, because there is some upstream issue with the tpm_tis module in current Linux kernels. [1] [1] https://bugzilla.redhat.com/show_bug.cgi?id=1770021 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Change-Id: I26d3b396fe1e99368e18fd3a6a9f02e3585b9f6e Reviewed-on: https://review.coreboot.org/c/coreboot/+/43641 Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/system76/lemp9/gpio.h')
-rw-r--r--src/mainboard/system76/lemp9/gpio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/system76/lemp9/gpio.h b/src/mainboard/system76/lemp9/gpio.h
index d06145d1a9..8e86647d52 100644
--- a/src/mainboard/system76/lemp9/gpio.h
+++ b/src/mainboard/system76/lemp9/gpio.h
@@ -76,8 +76,8 @@ static const struct pad_config gpio_table[] = {
PAD_CFG_NF(GPP_A6, NONE, DEEP, NF1),
// GSPI0
- // TODO - TPM_PIRQ#
- PAD_CFG_NC(GPP_A7),
+ // PIRQA# / TPM_PIRQ#
+ PAD_CFG_NF(GPP_A7, NONE, DEEP, NF1),
// LPC
// PM_CLKRUN# with pull-up