crypto: omap-sham - Add OMAP4/AM33XX SHAM Support
authorMark A. Greer <mgreer@animalcreek.com>
Fri, 21 Dec 2012 17:04:08 +0000 (10:04 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Jan 2013 10:43:58 +0000 (21:43 +1100)
commit0d373d603202b8bfecc87b9b3602e6ffbf9e4feb
tree96c182173e28ae2369085f4a28838e6467b94466
parent0e87e73f4abe1ada69cf780fe2550c6361a1b53b
crypto: omap-sham - Add OMAP4/AM33XX SHAM Support

Add support for the OMAP4 version of the SHAM module
that is present on OMAP4 and AM33xx SoCs.

The modules have several differences including register
offsets, hardware XORing, and how DMA is triggered.
To handle these differences, a platform_data structure
is defined and contains routine pointers, register offsets,
bit shifts within registers, and flags to indicate whether
the hardware supports XORing and provides SHA1 results in
big or little endian.  OMAP2/OMAP3-specific routines are
suffixed with '_omap2' and OMAP4/AM33xx routines are suffixed
with '_omap4'.

Note: The code being integrated is from the TI AM33xx SDK
and was written by Greg Turner <gkmturner@gmail.com> and
Herman Schuurman (current email unknown) while at TI.

CC: Greg Turner <gkmturner@gmail.com>
CC: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c