[openwrt/openwrt] kernel: modules: Add tpm-tis-spi
LEDE Commits
lede-commits at lists.infradead.org
Wed Feb 4 15:06:31 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/7c22ba7b333eeea4725603a5d55d9dbef2860959
commit 7c22ba7b333eeea4725603a5d55d9dbef2860959
Author: Tim Harvey <tharvey at gateworks.com>
AuthorDate: Mon Jan 26 17:17:26 2026 -0800
kernel: modules: Add tpm-tis-spi
Add a module for tpm-tis-spi for TCG TIS 1.3 TPM security chips
connected to a regular non-tcg SPI master.
Add imx target compatibility for kmod-tpm.
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/21726
Signed-off-by: Robert Marko <robimarko at gmail.com>
(cherry picked from commit 92a94dc9b0df12111e4c81ff1a280e32deb5eba3)
Link: https://github.com/openwrt/openwrt/pull/21781
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/kernel/linux/modules/other.mk | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 7b64985fd6..33167fd1ac 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -1057,7 +1057,7 @@ $(eval $(call KernelPackage,tpm))
define KernelPackage/tpm-tis
SUBMENU:=$(OTHER_MENU)
TITLE:=TPM TIS 1.2 Interface / TPM 2.0 FIFO Interface
- DEPENDS:= @TARGET_x86 +kmod-tpm
+ DEPENDS:= @(TARGET_x86||TARGET_imx) +kmod-tpm
KCONFIG:= CONFIG_TCG_TIS
FILES:= \
$(LINUX_DIR)/drivers/char/tpm/tpm_tis.ko \
@@ -1074,6 +1074,27 @@ endef
$(eval $(call KernelPackage,tpm-tis))
+define KernelPackage/tpm-tis-spi
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=TPM TIS 1.3 Interface SPI Interface
+ DEPENDS:= +kmod-tpm-tis +kmod-spi-dev
+ KCONFIG:= CONFIG_TCG_TIS_SPI \
+ CONFIG_TCG_TIS_SPI_CR50=n
+ FILES:= \
+ $(LINUX_DIR)/drivers/char/tpm/tpm_tis_spi.ko
+ AUTOLOAD:=$(call AutoLoad,20,tpm_tis_spi,1)
+endef
+
+define KernelPackage/tpm-tis-spi/description
+ If you have a TPM security chip which is connected to a regular,
+ non-tcg SPI master that is compliant with the
+ TCG TIS 1.3 TPM specification (TPM1.2) or the TCG PTP FIFO
+ specification (TPM2.0) say Yes and it will be accessible from
+ within Linux.
+endef
+
+$(eval $(call KernelPackage,tpm-tis-spi))
+
define KernelPackage/tpm-i2c-atmel
SUBMENU:=$(OTHER_MENU)
TITLE:=TPM I2C Atmel Support
More information about the lede-commits
mailing list