Skip to contentSkip to conversation

crypto: bfin_crc: CRC hardware driver for BF60x family processors.

PATCH New Sonic Zhang 1 participant 1 message Jun 4, 2012 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH v3 2/2 crypto: bfin_crc: CRC hardware driver for BF60x family processors.

From: Sonic Zhang <[email protected]>

The CRC peripheral is a hardware block used to compute the CRC of the block of data. This is based on a CRC32 engine which computes the CRC value of 32b data words presented to it. For data words of < 32b in size, this driver pack 0 automatically into 32b data units. This driver implements the async hash crypto framework API.

---
 drivers/crypto/Kconfig    |    7 +
 drivers/crypto/Makefile   |    3 +-
 drivers/crypto/bfin_crc.c |  780 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 789 insertions(+), 1 deletions(-)
 create mode 100644 drivers/crypto/bfin_crc.c
drivers/crypto/Kconfig +7 -0
index 69fdf18..d6d8425 100644
@@ -306,4 +306,11 @@ if CRYPTO_DEV_UX500
 	source "drivers/crypto/ux500/Kconfig"
 endif # if CRYPTO_DEV_UX500
 
+config CRYPTO_DEV_BFIN_CRC
+	tristate "Support for Blackfin CRC hardware"
+	depends on BF60x
+	help
+	  Newer Blackfin processors have CRC hardware. Select this if you
+	  want to use the Blackfin CRC module.
+
 endif # CRYPTO_HW
drivers/crypto/Makefile +2 -1
index 0139032..d5062bb 100644
@@ -14,4 +14,5 @@ obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes.o
 obj-$(CONFIG_CRYPTO_DEV_PICOXCELL) += picoxcell_crypto.o
 obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o
 obj-$(CONFIG_CRYPTO_DEV_TEGRA_AES) += tegra-aes.o
-obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/
\ No newline at end of file
+obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/
+obj-$(CONFIG_CRYPTO_DEV_BFIN_CRC) += bfin_crc.o
drivers/crypto/bfin_crc.c new file +780 -0

780 lines not on this page · raw message

Signature · 1 line
1.7.0.4