25.1.7.1.1 Surrounding Modules Global Initialization
This section identifies the steps required for initializing the surrounding modules when the SHA/MD5 is used for the first time after a device reset.
- When reset has completed, enable the SHA/MD5 Module by setting the R0 bit in the CRC and Cryptographic Modules Run Mode Clock Gating Control (RCGCCCM) register, System Control offset 0x674. When the R0 bit is set in the CRC and Cryptographic Modules (PRCCM) register, System Control offset 0xA74 register, the SHA/MD5 Module is powered and ready to be configured.
- Configure the SHA µDMA channels for Context In, Context Out, Data In, and/or Data Out by programming the appropriate encoding value in the DMA Channel Map Select n (DMACHMAPn) register in the µDMA module, offset 0x510. For more information on how to program channel assignments as well as enabling burst and the configured channels, refer to Section 8.
- Execute a software reset by setting the SOFTRESET bit in the SHA_SYSCONFIG register. When reset is complete, the RESETDONE bit reads as 1 in the SHA_SYSSTATUS register.
- If the SHA channels are configured in the µDMA, enable the required SHA DMA requests by programming bits [9:5] of the SHA_SYSCONFIG register, in addition to the completion interrupts in the SHA DMA Interrupt Mask (SHA_DMAIM) register, CRC and Cryptographic Modules offset 0x020.