Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Включение поддержки аппаратной криптографии rk3568 #1

Open
wants to merge 8 commits into
base: macro
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,944 changes: 347 additions & 1,597 deletions arch/arm64/configs/defconfig

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions drivers/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,33 @@ config CRYPTO_DEV_TEGRA
Select this to enable Tegra Security Engine which accelerates various
AES encryption/decryption and HASH algorithms.

config CRYPTO_DEV_ROCKCHIP2
tristate "Rockchip's cryptographic offloader V2"
depends on OF && ARCH_ROCKCHIP
depends on PM
select CRYPTO_ECB
select CRYPTO_CBC
select CRYPTO_AES
select CRYPTO_MD5
select CRYPTO_SHA1
select CRYPTO_SHA256
select CRYPTO_HASH
select CRYPTO_SKCIPHER
select CRYPTO_ENGINE

help
This driver interfaces with the hardware crypto offloader present
on RK3568 and RK3588.

config CRYPTO_DEV_ROCKCHIP2_DEBUG
bool "Enable Rockchip V2 crypto stats"
depends on CRYPTO_DEV_ROCKCHIP2
depends on DEBUG_FS
help
Say y to enable Rockchip crypto debug stats.
This will create /sys/kernel/debug/rk3588_crypto/stats for displaying
the number of requests per algorithm and other internal stats.

config CRYPTO_DEV_ZYNQMP_AES
tristate "Support for Xilinx ZynqMP AES hw accelerator"
depends on ZYNQMP_FIRMWARE || COMPILE_TEST
Expand Down
5 changes: 5 additions & 0 deletions drivers/crypto/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rk_crypto.o
rk_crypto-objs := rk3288_crypto.o \
rk3288_crypto_skcipher.o \
rk3288_crypto_ahash.o

obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP2) += rk_crypto2.o
rk_crypto2-objs := rk2_crypto.o \
rk2_crypto_skcipher.o \
rk2_crypto_ahash.o
Loading