mbox series

[v1,0/3] Drivers for Loongson security engine

Message ID 20250114095527.23722-1-zhaoqunqin@loongson.cn
Headers show
Series Drivers for Loongson security engine | expand

Message

Qunqin Zhao Jan. 14, 2025, 9:55 a.m. UTC
Loongson SE supports random number generation, hash, symmetric encryption
and asymmetric encryption. Based on these encryption functions, TPM2.0
and SDF have been implemented in SE. SDF is the functions specified in
"GB/T 36322-2018".

mfd is the baser driver, crypto and misc are users.

Qunqin Zhao (3):
  mfd: Add support for Loongson Security Module
  crypto: loongson - add Loongson RNG driver support
  misc: ls6000se-sdf: Add driver for Loongson 6000SE SDF

 MAINTAINERS                            |  14 +
 drivers/crypto/Kconfig                 |   1 +
 drivers/crypto/Makefile                |   1 +
 drivers/crypto/loongson/Kconfig        |   6 +
 drivers/crypto/loongson/Makefile       |   2 +
 drivers/crypto/loongson/ls6000se-rng.c | 190 +++++++++++++
 drivers/mfd/Kconfig                    |   9 +
 drivers/mfd/Makefile                   |   2 +
 drivers/mfd/ls6000se.c                 | 373 +++++++++++++++++++++++++
 drivers/misc/Kconfig                   |   9 +
 drivers/misc/Makefile                  |   1 +
 drivers/misc/ls6000se-sdf.c            | 123 ++++++++
 include/linux/mfd/ls6000se.h           |  75 +++++
 13 files changed, 806 insertions(+)
 create mode 100644 drivers/crypto/loongson/Kconfig
 create mode 100644 drivers/crypto/loongson/Makefile
 create mode 100644 drivers/crypto/loongson/ls6000se-rng.c
 create mode 100644 drivers/mfd/ls6000se.c
 create mode 100644 drivers/misc/ls6000se-sdf.c
 create mode 100644 include/linux/mfd/ls6000se.h


base-commit: c2b148f3bc94b61e885dc8529d6b6136576bd865