mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
sha: dont enable/disable GDMA when enable/disable SHA module
Enabling and disabling of the GDMA module is done by the GDMA driver.
This commit is contained in:
@@ -181,10 +181,10 @@ static inline uint32_t periph_ll_get_rst_en_mask(periph_module_t periph, bool en
|
|||||||
case PERIPH_SHA_MODULE:
|
case PERIPH_SHA_MODULE:
|
||||||
if (enable == true) {
|
if (enable == true) {
|
||||||
// Clear reset on digital signature and HMAC, otherwise SHA is held in reset
|
// Clear reset on digital signature and HMAC, otherwise SHA is held in reset
|
||||||
return (SYSTEM_CRYPTO_SHA_RST | SYSTEM_CRYPTO_DS_RST | SYSTEM_CRYPTO_HMAC_RST | SYSTEM_DMA_RST) ;
|
return (SYSTEM_CRYPTO_SHA_RST | SYSTEM_CRYPTO_DS_RST | SYSTEM_CRYPTO_HMAC_RST) ;
|
||||||
} else {
|
} else {
|
||||||
// Don't assert reset on secure boot, otherwise AES is held in reset
|
// Don't assert reset on secure boot, otherwise AES is held in reset
|
||||||
return SYSTEM_CRYPTO_SHA_RST | SYSTEM_DMA_RST;
|
return SYSTEM_CRYPTO_SHA_RST;
|
||||||
}
|
}
|
||||||
case PERIPH_RSA_MODULE:
|
case PERIPH_RSA_MODULE:
|
||||||
if (enable == true) {
|
if (enable == true) {
|
||||||
|
Reference in New Issue
Block a user