Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver
PATCH v2 3/3 Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver
From: Rameshwar Prasad Sahu <[email protected]>
This patch implements support for APM X-Gene SoC CRC32C h/w accelerator. DMA engine in APM X-Gene SoC is capable of doing CRC32C computations.
Signed-off-by Rameshwar Prasad Sahu <[email protected]>
--- drivers/crypto/Kconfig | 8 ++ drivers/crypto/Makefile | 1 + drivers/crypto/xgene-crc32c.c | 234 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 243 insertions(+), 0 deletions(-) create mode 100755 drivers/crypto/xgene-crc32c.c
drivers/crypto/Kconfig +8 -0
@@ -497,4 +497,12 @@ config CRYPTO_DEV_SUN4I_SS To compile this driver as a module, choose M here: the module will be called sun4i-ss. +config CRYPTO_DEV_XGENE_CRC32C + tristate "Support for APM SoC X-Gene CRC32C HW accelerator" + depends on XGENE_DMA + select CRYPTO_HASH + help + This option enables support for CRC32C offload by using + APM X-Gene SoC DMA engine. + endif # CRYPTO_HW
drivers/crypto/Makefile +1 -0
@@ -29,3 +29,4 @@ obj-$(CONFIG_CRYPTO_DEV_QAT) += qat/ obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/ obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/ obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/ +obj-$(CONFIG_CRYPTO_DEV_XGENE_CRC32C) += xgene-crc32c.o
drivers/crypto/xgene-crc32c.c new file +234 -0
234 lines not on this page · raw message
--
1.7.1