summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/bootblock
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/kahlee/bootblock')
-rw-r--r--src/mainboard/google/kahlee/bootblock/bootblock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/bootblock/bootblock.c b/src/mainboard/google/kahlee/bootblock/bootblock.c
index 244abe051f..4a65d8f4fc 100644
--- a/src/mainboard/google/kahlee/bootblock/bootblock.c
+++ b/src/mainboard/google/kahlee/bootblock/bootblock.c
@@ -15,8 +15,10 @@
#include <baseboard/variants.h>
#include <bootblock_common.h>
+#include <soc/gpio.h>
#include <soc/southbridge.h>
#include <variant/ec.h>
+#include <variant/gpio.h>
void bootblock_mainboard_init(void)
{
@@ -30,4 +32,11 @@ void bootblock_mainboard_init(void)
/* Setup TPM decode before verstage */
sb_tpm_decode_spi();
+
+ /* Configure cr50 interrupt pin for use in polling tpm status */
+ if (IS_ENABLED(CONFIG_MAINBOARD_HAS_TPM_CR50)) {
+ const uint32_t flags = GPIO_EDGEL_TRIG | GPIO_ACTIVE_LOW |
+ GPIO_INT_STATUS_EN;
+ gpio_set_interrupt(H1_PCH_INT, flags);
+ }
}