Skip to content

Commit 48fe583

Browse files
montjoieherbertx
authored andcommitted
crypto: amlogic - Add crypto accelerator for amlogic GXL
This patch adds support for the amlogic GXL cryptographic offloader present on GXL SoCs. This driver supports AES cipher in CBC/ECB mode. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent f1fb7ea commit 48fe583

7 files changed

Lines changed: 911 additions & 0 deletions

File tree

‎drivers/crypto/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,4 +808,6 @@ config CRYPTO_DEV_CCREE
808808

809809
source "drivers/crypto/hisilicon/Kconfig"
810810

811+
source "drivers/crypto/amlogic/Kconfig"
812+
811813
endif # CRYPTO_HW

‎drivers/crypto/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
4848
obj-$(CONFIG_CRYPTO_DEV_SAFEXCEL) += inside-secure/
4949
obj-$(CONFIG_CRYPTO_DEV_ARTPEC6) += axis/
5050
obj-y += hisilicon/
51+
obj-$(CONFIG_CRYPTO_DEV_AMLOGIC_GXL) += amlogic/

‎drivers/crypto/amlogic/Kconfig‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
config CRYPTO_DEV_AMLOGIC_GXL
2+
tristate "Support for amlogic cryptographic offloader"
3+
default y if ARCH_MESON
4+
select CRYPTO_BLKCIPHER
5+
select CRYPTO_ENGINE
6+
select CRYPTO_ECB
7+
select CRYPTO_CBC
8+
select CRYPTO_AES
9+
help
10+
Select y here to have support for the cryptographic offloader
11+
available on Amlogic GXL SoC.
12+
This hardware handles AES ciphers in ECB/CBC mode.
13+
14+
To compile this driver as a module, choose M here: the module
15+
will be called amlogic-gxl-crypto.
16+
17+
config CRYPTO_DEV_AMLOGIC_GXL_DEBUG
18+
bool "Enable amlogic stats"
19+
depends on CRYPTO_DEV_AMLOGIC_GXL
20+
depends on DEBUG_FS
21+
help
22+
Say y to enable amlogic-crypto debug stats.
23+
This will create /sys/kernel/debug/gxl-crypto/stats for displaying
24+
the number of requests per flow and per algorithm.

‎drivers/crypto/amlogic/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
obj-$(CONFIG_CRYPTO_DEV_AMLOGIC_GXL) += amlogic-gxl-crypto.o
2+
amlogic-gxl-crypto-y := amlogic-gxl-core.o amlogic-gxl-cipher.o

0 commit comments

Comments
 (0)