Bugfix: nRF Cryptocell not being disabled

Copy paste bug in cc310 glue layer for nRF where disable does not set
the enable register to 0. Thanks to @solsbarry for pointing this out.

Fixes: #586

Signed-off-by: sigvartmh <sigvart.m@gmail.com>
This commit is contained in:
sigvartmh 2019-11-06 21:48:46 +01:00 committed by Fabio Utzig
parent 8554ed5be6
commit 477ff5bab0
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ static inline void nrf_cc310_enable(void)
static inline void nrf_cc310_disable(void) static inline void nrf_cc310_disable(void)
{ {
NRF_CRYPTOCELL->ENABLE=1; NRF_CRYPTOCELL->ENABLE=0;
} }
/* Enable and disable cc310 to reduce power consumption */ /* Enable and disable cc310 to reduce power consumption */