]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tpm: Add a driver for Loongson TPM device
authorQunqin Zhao <zhaoqunqin@loongson.cn>
Sat, 5 Jul 2025 07:20:44 +0000 (15:20 +0800)
committerLee Jones <lee@kernel.org>
Tue, 2 Sep 2025 11:29:57 +0000 (12:29 +0100)
commit5c83b07df9c5a6e063328c5b885de79f8e8f0263
tree9eb7d8d072e08cfbbd79a9b96fdc6782e2d2b9c5
parent766b2d724c8df071031412eea902b566a0049c31
tpm: Add a driver for Loongson TPM device

Loongson Security Engine supports random number generation, hash,
symmetric encryption and asymmetric encryption. Based on these
encryption functions, TPM2 have been implemented in the Loongson
Security Engine firmware. This driver is responsible for copying data
into the memory visible to the firmware and receiving data from the
firmware.

Co-developed-by: Yinggang Gu <guyinggang@loongson.cn>
Signed-off-by: Yinggang Gu <guyinggang@loongson.cn>
Signed-off-by: Qunqin Zhao <zhaoqunqin@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20250705072045.1067-4-zhaoqunqin@loongson.cn
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/char/tpm/Kconfig
drivers/char/tpm/Makefile
drivers/char/tpm/tpm_loongson.c [new file with mode: 0644]