Skip to content

Commit 9ef64ad

Browse files
committed
add the linux patch from 192.168.110.194 gitserver
1 parent c27eddd commit 9ef64ad

File tree

18 files changed

+10334
-42
lines changed

18 files changed

+10334
-42
lines changed

arch/riscv/configs/defconfig

Lines changed: 2905 additions & 36 deletions
Large diffs are not rendered by default.

drivers/crypto/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ config CRYPTO_DEV_PADLOCK
2121
(so called VIA PadLock ACE, Advanced Cryptography Engine)
2222
that provides instructions for very fast cryptographic
2323
operations with supported algorithms.
24-
24+
2525
The instructions are used only when the CPU supports them.
2626
Otherwise software encryption is used.
2727

@@ -733,6 +733,8 @@ config CRYPTO_DEV_VMX
733733

734734
source "drivers/crypto/vmx/Kconfig"
735735

736+
source "drivers/crypto/sifive-vic/Kconfig"
737+
736738
config CRYPTO_DEV_IMGTEC_HASH
737739
tristate "Imagination Technologies hardware hash accelerator"
738740
depends on MIPS || COMPILE_TEST

drivers/crypto/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
4545
obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/
4646
obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/
4747
obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
48+
obj-y += sifive-vic/
4849
obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
4950
obj-$(CONFIG_CRYPTO_DEV_SAFEXCEL) += inside-secure/
5051
obj-$(CONFIG_CRYPTO_DEV_ARTPEC6) += axis/

drivers/crypto/sifive-vic/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
config CRYPTO_DEV_SIFIVE_VIC_ENCRYPT
2+
tristate "Encryption acceleration support on sifive vic"
3+
depends on RISCV
4+
select CRYPTO_ENGINE
5+
select CRYPTO_RSA
6+
default m
7+
help
8+
Support for SIFIVE VIC cryptographic acceleration instructions on riscv64 CPU.
9+
This module supports acceleration for AES and GHASH in hardware. If you
10+
choose 'M' here, this module will be called vic-crypto.

drivers/crypto/sifive-vic/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_CRYPTO_DEV_SIFIVE_VIC_ENCRYPT) += vic-crypto.o
3+
vic-crypto-objs := vic-sec.o vic-aes.o vic-sha.o vic-pka.o vic-pka-tools.o

0 commit comments

Comments
 (0)