]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00215492-3: Detect HW features during alg registration
authorSteve Cornelius <steve.cornelius@freescale.com>
Sat, 30 Jun 2012 23:11:00 +0000 (16:11 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:55 +0000 (08:34 +0200)
commitaf5e6c752624fd7b8bb87f2cd9f8194086f2c680
tree419f6ab9dcfa7d2492e8f8b5e7a74e068369f70d
parent5d1d88a16efbcee9eb966149ff4f333923c03a1f
ENGR00215492-3: Detect HW features during alg registration

i.MX6 instantiates a CAAM with a low-power MDHA block, which does not
compute digests larger than 256 bits. Since the driver installs handlers
for hashes longer than 256 bits in several places, added the ability to
read and interpret the CHA version and instantiations registers, and then
only register handlers that it can support.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
drivers/crypto/caam/caamalg.c
drivers/crypto/caam/caamhash.c
drivers/crypto/caam/caamrng.c
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/regs.h