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