Merge pull request #325 from tlauda/topic/mem_window_3_change

platform: cavs: let trace manager to clear mem window
This commit is contained in:
Liam Girdwood 2018-09-10 16:56:05 +01:00 committed by GitHub
commit 7d9c1b4080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -246,12 +246,12 @@ static void platform_memory_windows_init(void)
bzero((void *)HP_SRAM_WIN2_BASE, HP_SRAM_WIN2_SIZE);
dcache_writeback_region((void *)HP_SRAM_WIN2_BASE, HP_SRAM_WIN2_SIZE);
/* window3, for trace */
/* window3, for trace
* zeroed by trace initialization
*/
io_reg_write(DMWLO(3), HP_SRAM_WIN3_SIZE | 0x7);
io_reg_write(DMWBA(3), HP_SRAM_WIN3_BASE
| DMWBA_READONLY | DMWBA_ENABLE);
bzero((void *)HP_SRAM_WIN3_BASE, HP_SRAM_WIN3_SIZE);
dcache_writeback_region((void *)HP_SRAM_WIN3_BASE, HP_SRAM_WIN3_SIZE);
}
#if defined(CONFIG_CANNONLAKE) || defined(CONFIG_ICELAKE)