Commit fab88d9f authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt

sh: add weak l2_cache_init function.

Signed-off-by: default avatarKuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent d974ac24
...@@ -62,6 +62,11 @@ static void __init speculative_execution_init(void) ...@@ -62,6 +62,11 @@ static void __init speculative_execution_init(void)
#define speculative_execution_init() do { } while (0) #define speculative_execution_init() do { } while (0)
#endif #endif
/* 2nd-level cache init */
void __uses_jump_to_uncached __attribute__ ((weak)) l2_cache_init(void)
{
}
/* /*
* Generic first-level cache init * Generic first-level cache init
*/ */
...@@ -146,6 +151,8 @@ static void __uses_jump_to_uncached cache_init(void) ...@@ -146,6 +151,8 @@ static void __uses_jump_to_uncached cache_init(void)
flags &= ~CCR_CACHE_ENABLE; flags &= ~CCR_CACHE_ENABLE;
#endif #endif
l2_cache_init();
ctrl_outl(flags, CCR); ctrl_outl(flags, CCR);
back_to_cached(); back_to_cached();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment