blob: acd2e8b1145e7b9a33d1391d901adf9b801db9c3 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Michael Walle5ae3eec2012-02-06 22:42:10 +05302/*
3 * Copyright (c) 2012 Michael Walle
4 * Michael Walle <michael@walle.cc>
Michael Walle5ae3eec2012-02-06 22:42:10 +05305 */
Michael Walle5ae3eec2012-02-06 22:42:10 +05306#include <asm/arch/cpu.h>
Simon Glass274e0b02020-05-10 11:39:56 -06007#include <asm/cache.h>
Michael Walle5ae3eec2012-02-06 22:42:10 +05308
9#define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22)
10
11void l2_cache_disable()
12{
13 u32 ctrl;
14
15 ctrl = readfr_extra_feature_reg();
16 ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN;
17 writefr_extra_feature_reg(ctrl);
18}