summaryrefslogtreecommitdiff
path: root/arch/arm/mach-kirkwood/cache.c
blob: acd2e8b1145e7b9a33d1391d901adf9b801db9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (c) 2012 Michael Walle
 * Michael Walle <[email protected]>
 */
#include <asm/arch/cpu.h>
#include <asm/cache.h>

#define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22)

void l2_cache_disable()
{
	u32 ctrl;

	ctrl = readfr_extra_feature_reg();
	ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN;
	writefr_extra_feature_reg(ctrl);
}