-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Corentin Labbe
authored and
Herbert Xu
committed
Oct 25, 2019
1 parent
f1fb7ea
commit 48fe583
Showing
7 changed files
with
911 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
config CRYPTO_DEV_AMLOGIC_GXL | ||
tristate "Support for amlogic cryptographic offloader" | ||
default y if ARCH_MESON | ||
select CRYPTO_BLKCIPHER | ||
select CRYPTO_ENGINE | ||
select CRYPTO_ECB | ||
select CRYPTO_CBC | ||
select CRYPTO_AES | ||
help | ||
Select y here to have support for the cryptographic offloader | ||
available on Amlogic GXL SoC. | ||
This hardware handles AES ciphers in ECB/CBC mode. | ||
|
||
To compile this driver as a module, choose M here: the module | ||
will be called amlogic-gxl-crypto. | ||
|
||
config CRYPTO_DEV_AMLOGIC_GXL_DEBUG | ||
bool "Enable amlogic stats" | ||
depends on CRYPTO_DEV_AMLOGIC_GXL | ||
depends on DEBUG_FS | ||
help | ||
Say y to enable amlogic-crypto debug stats. | ||
This will create /sys/kernel/debug/gxl-crypto/stats for displaying | ||
the number of requests per flow and per algorithm. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
obj-$(CONFIG_CRYPTO_DEV_AMLOGIC_GXL) += amlogic-gxl-crypto.o | ||
amlogic-gxl-crypto-y := amlogic-gxl-core.o amlogic-gxl-cipher.o |
Oops, something went wrong.