Skip to content

Commit

Permalink
add the linux patch from 192.168.110.194 gitserver
Browse files Browse the repository at this point in the history
  • Loading branch information
huanfeng-sf committed Mar 9, 2021
1 parent c27eddd commit 9ef64ad
Show file tree
Hide file tree
Showing 18 changed files with 10,334 additions and 42 deletions.
2,941 changes: 2,905 additions & 36 deletions arch/riscv/configs/defconfig

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion drivers/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ config CRYPTO_DEV_PADLOCK
(so called VIA PadLock ACE, Advanced Cryptography Engine)
that provides instructions for very fast cryptographic
operations with supported algorithms.

The instructions are used only when the CPU supports them.
Otherwise software encryption is used.

Expand Down Expand Up @@ -733,6 +733,8 @@ config CRYPTO_DEV_VMX

source "drivers/crypto/vmx/Kconfig"

source "drivers/crypto/sifive-vic/Kconfig"

config CRYPTO_DEV_IMGTEC_HASH
tristate "Imagination Technologies hardware hash accelerator"
depends on MIPS || COMPILE_TEST
Expand Down
1 change: 1 addition & 0 deletions drivers/crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/
obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/
obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
obj-y += sifive-vic/
obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
obj-$(CONFIG_CRYPTO_DEV_SAFEXCEL) += inside-secure/
obj-$(CONFIG_CRYPTO_DEV_ARTPEC6) += axis/
Expand Down
10 changes: 10 additions & 0 deletions drivers/crypto/sifive-vic/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
config CRYPTO_DEV_SIFIVE_VIC_ENCRYPT
tristate "Encryption acceleration support on sifive vic"
depends on RISCV
select CRYPTO_ENGINE
select CRYPTO_RSA
default m
help
Support for SIFIVE VIC cryptographic acceleration instructions on riscv64 CPU.
This module supports acceleration for AES and GHASH in hardware. If you
choose 'M' here, this module will be called vic-crypto.
3 changes: 3 additions & 0 deletions drivers/crypto/sifive-vic/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_CRYPTO_DEV_SIFIVE_VIC_ENCRYPT) += vic-crypto.o
vic-crypto-objs := vic-sec.o vic-aes.o vic-sha.o vic-pka.o vic-pka-tools.o
Loading

0 comments on commit 9ef64ad

Please sign in to comment.