crypto: bfin_crc: CRC hardware driver for BF60x family processors.
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.
Signed-off-by Sonic Zhang <[email protected]>
--- 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
@@ -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
@@ -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/ +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