crypto: caam - Dynamic allocation of addresses for various memory blocks in CAAM.
authorNitesh Narayan Lal <b44382@freescale.com>
Mon, 1 Sep 2014 09:30:44 +0000 (15:00 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Sep 2014 11:44:11 +0000 (19:44 +0800)
commitfb4562b20894444288152e6de67c28adac6c789d
tree0eb2522be23d7ab78faa6fa913ed523e166a760a
parentea2d9fc1af6ebcdf849723ac4f3f91a1c93b5e7c
crypto: caam - Dynamic allocation of addresses for various memory blocks in CAAM.

CAAM's memory is broken into following address blocks:
Block           Included Registers
0               General Registers
1-4             Job ring registers
6               RTIC registers
7               QI registers
8               DECO and CCB

Size of the above stated blocks varies in various platforms. The block size can be 4K or 64K.
The block size can be dynamically determined by reading CTPR register in CAAM.
This patch initializes the block addresses dynamically based on the value read from this register.

Signed-off-by: Ruchika Gupta <r66431@freescale.com>
Signed-off-by: Nitesh Narayan Lal <b44382@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
drivers/crypto/caam/intern.h
drivers/crypto/caam/regs.h