summaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/poppy')
-rw-r--r--src/mainboard/google/poppy/Kconfig13
-rw-r--r--src/mainboard/google/poppy/chromeos.c8
-rw-r--r--src/mainboard/google/poppy/devicetree.cb7
3 files changed, 28 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/Kconfig b/src/mainboard/google/poppy/Kconfig
index fc68edfe1a..0626a3260b 100644
--- a/src/mainboard/google/poppy/Kconfig
+++ b/src/mainboard/google/poppy/Kconfig
@@ -48,3 +48,16 @@ config INCLUDE_NHLT_BLOBS
select NHLT_MAX98927
select NHLT_RT5663
endif
+
+# Select this option to enable use of cr50 SPI TPM on poppy.
+# This option is disabled by default.
+config POPPY_USE_SPI_TPM
+ bool
+ default n
+ select MAINBOARD_HAS_SPI_TPM_CR50
+ select MAINBOARD_HAS_TPM2
+ select SPI_TPM
+ select TPM2
+
+config DRIVER_TPM_SPI_BUS
+ default 0x1
diff --git a/src/mainboard/google/poppy/chromeos.c b/src/mainboard/google/poppy/chromeos.c
index 8004d7bd8d..b7877aadf3 100644
--- a/src/mainboard/google/poppy/chromeos.c
+++ b/src/mainboard/google/poppy/chromeos.c
@@ -13,9 +13,12 @@
* GNU General Public License for more details.
*/
+#include <arch/acpi.h>
#include <gpio.h>
#include <rules.h>
+#include <soc/gpe.h>
#include <soc/gpio.h>
+#include <tpm.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "gpio.h"
@@ -53,3 +56,8 @@ void mainboard_chromeos_acpi_generate(void)
{
chromeos_acpi_gpio_generate(cros_gpios, ARRAY_SIZE(cros_gpios));
}
+
+int tis_plat_irq_status(void)
+{
+ return acpi_get_gpe(GPE0_DW2_00);
+}
diff --git a/src/mainboard/google/poppy/devicetree.cb b/src/mainboard/google/poppy/devicetree.cb
index fcf106683e..44db5e9187 100644
--- a/src/mainboard/google/poppy/devicetree.cb
+++ b/src/mainboard/google/poppy/devicetree.cb
@@ -157,6 +157,13 @@ chip soc/intel/skylake
register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" # Camera
register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" # Audio
+ # Use GSPI0 for cr50 TPM. Early init is required to set up a BAR for TPM
+ # communication before memory is up.
+ register "gspi[0]" = "{
+ .speed_mhz = 1,
+ .early_init = 1,
+ }"
+
# Must leave UART0 enabled or SD/eMMC will not work as PCI
register "SerialIoDevMode" = "{
[PchSerialIoIndexI2C0] = PchSerialIoPci,