summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/skyrim/mainboard.c11
-rw-r--r--src/mainboard/google/skyrim/variants/baseboard/devicetree.cb2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/mainboard/google/skyrim/mainboard.c b/src/mainboard/google/skyrim/mainboard.c
index 7708488554..d36dfafbfd 100644
--- a/src/mainboard/google/skyrim/mainboard.c
+++ b/src/mainboard/google/skyrim/mainboard.c
@@ -2,9 +2,11 @@
#include <amdblocks/acpimmio.h>
#include <amdblocks/amd_pci_util.h>
+#include <amdblocks/psp.h>
#include <baseboard/variants.h>
#include <console/console.h>
#include <device/device.h>
+#include <drivers/i2c/tpm/chip.h>
#include <soc/acpi.h>
#include <variant/ec.h>
@@ -69,10 +71,19 @@ static void mainboard_configure_gpios(void)
override_gpios, override_num_gpios);
}
+static void configure_psp_tpm_gpio(void)
+{
+ const struct device *ti50_dev = DEV_PTR(ti50);
+ struct drivers_i2c_tpm_config *cfg = config_of(ti50_dev);
+
+ psp_set_tpm_irq_gpio(cfg->irq_gpio.pins[0]);
+}
+
static void mainboard_init(void *chip_info)
{
mainboard_configure_gpios();
mainboard_ec_init();
+ configure_psp_tpm_gpio();
}
static void mainboard_enable(struct device *dev)
diff --git a/src/mainboard/google/skyrim/variants/baseboard/devicetree.cb b/src/mainboard/google/skyrim/variants/baseboard/devicetree.cb
index 81c76b7e0c..8502c36d36 100644
--- a/src/mainboard/google/skyrim/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/skyrim/variants/baseboard/devicetree.cb
@@ -182,7 +182,7 @@ chip soc/amd/mendocino
register "hid" = ""GOOG0005""
register "desc" = ""Ti50 TPM""
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_LOW(GPIO_18)"
- device i2c 50 on end
+ device i2c 50 alias ti50 on end
end
end