Skip to contentSkip to conversation

Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

PATCH In review [email protected] 1 participant 1 message Nov 16, 2015 Crypto API

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index d234719..5d90b64 100644
@@ -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
index c3ced6f..199d4e4 100644
@@ -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