soc: intel_adsp: hpsram enable retention mode

This patch enables memory retention mode on hpsram.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This commit is contained in:
Tomasz Leman 2023-10-13 20:49:09 +02:00 committed by Carles Cufí
commit eeb4f2f76d

View file

@ -24,6 +24,7 @@ __imr void hp_sram_init(uint32_t memory_size)
for (idx = 0; idx < hpsram_ebb_quantity; ++idx) {
HPSRAM_REGS(idx)->HSxPGCTL = 0;
HPSRAM_REGS(idx)->HSxRMCTL = 1;
}
for (idx = 0; idx < hpsram_ebb_quantity; ++idx) {
while (HPSRAM_REGS(idx)->HSxPGISTS != 0) {