risc-v/mpfs: cache: Fix cache and scratchpad init
Initialize ICACHE way with correct mask. Initialize scratchpad with constant g_init_marker as it has been done in HSS Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
This commit is contained in:
parent
f51d6b8c72
commit
78a2c91a04
@ -125,7 +125,7 @@ void mpfs_enable_cache(void)
|
||||
MPFS_CACHE_WAY_MASK_AXI4_SLAVE_PORT_3);
|
||||
|
||||
putreg32(LIBERO_SETTING_WAY_MASK_E51_ICACHE,
|
||||
MPFS_CACHE_WAY_MASK_E51_DCACHE);
|
||||
MPFS_CACHE_WAY_MASK_E51_ICACHE);
|
||||
|
||||
putreg32(LIBERO_SETTING_WAY_MASK_U54_1_DCACHE,
|
||||
MPFS_CACHE_WAY_MASK_U54_1_DCACHE);
|
||||
@ -159,7 +159,7 @@ void mpfs_enable_cache(void)
|
||||
for (inc = 0; inc < (MPFS_WAY_BYTE_LENGTH /
|
||||
MPFS_CACHE_BLOCK_BYTE_LENGTH); ++inc)
|
||||
{
|
||||
*p_scratchpad = g_init_marker + inc;
|
||||
*p_scratchpad = g_init_marker;
|
||||
p_scratchpad += MPFS_CACHE_BLOCK_BYTE_LENGTH / sizeof(uint64_t);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user