1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2012 Michael Walle
4 * Michael Walle <michael@walle.cc>
7 #include <asm/arch/cpu.h>
9 #define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22)
11 void l2_cache_disable()
15 ctrl = readfr_extra_feature_reg();
16 ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN;
17 writefr_extra_feature_reg(ctrl);