crypto: ccree - check that cryptocell reset completed
authorOfir Drang <ofir.drang@arm.com>
Mon, 17 Jun 2019 08:46:28 +0000 (11:46 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 27 Jun 2019 06:28:00 +0000 (14:28 +0800)
commitd84f6269ce24eb4c468e246b24fc0fdce34ab6f6
treefc86b9da061c4bc7c0b7b2e1607e9e71a97ab49b
parent0b970d54772f08f56326b89db74cba2ca3c7c278
crypto: ccree - check that cryptocell reset completed

In case of driver probe and pm resume we need to check that the cryptocell
hardware reset cycle is completed. during the reset cycle that Cryptocell
provide read only access to the APB interface which allows to verify
through the CC registers that the reset is completed. Until reset
completion we assume that any write/crypto operation is blocked.

Signed-off-by: Ofir Drang <ofir.drang@arm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_driver.c
drivers/crypto/ccree/cc_driver.h
drivers/crypto/ccree/cc_host_regs.h
drivers/crypto/ccree/cc_pm.c