mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
sh: sh7724: L2 cache initialization.
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
fab88d9fe9
commit
b4bd9eb0d8
@ -495,6 +495,15 @@ void __init plat_early_device_setup(void)
|
||||
ARRAY_SIZE(sh7724_early_devices));
|
||||
}
|
||||
|
||||
#define RAMCR_CACHE_L2FC 0x0002
|
||||
#define RAMCR_CACHE_L2E 0x0001
|
||||
#define L2_CACHE_ENABLE (RAMCR_CACHE_L2E|RAMCR_CACHE_L2FC)
|
||||
void __uses_jump_to_uncached l2_cache_init(void)
|
||||
{
|
||||
/* Enable L2 cache */
|
||||
ctrl_outl(L2_CACHE_ENABLE, RAMCR);
|
||||
}
|
||||
|
||||
enum {
|
||||
UNUSED = 0,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user