Skip to contentSkip to conversation

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

PATCH Superseded Sonic Zhang 2 participants 2 messages Jun 4, 2012 Crypto API

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 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(+), 0 deletions(-)
 create mode 100644 drivers/crypto/bfin_crc.c
drivers/crypto/Kconfig +7 -0
index 69fdf18..3a05ba9 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 hareware"
+	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
#1 lore raw

drivers/crypto/Kconfig if CRYPTO_DEV_UX500 · line 310

Quoted 10 lines · Sonic Zhang
drivers/crypto/Kconfig +2 -0
index 69fdf18..3a05ba9 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 hareware"

hardware

Quoted 6 lines
drivers/crypto/Kconfig +5 -0
+	depends on BF60x
+	help
+	  Newer Blackfin processors have CRC hardware. Select this if you
+	  want to use the Blackfin CRC module.
+
 endif # CRYPTO_HW
Signature · 1 line
~Randy