1*56f86e39SMasahiro Yamada /* 2*56f86e39SMasahiro Yamada * Copyright (c) 2012 Michael Walle 3*56f86e39SMasahiro Yamada * Michael Walle <michael@walle.cc> 4*56f86e39SMasahiro Yamada * 5*56f86e39SMasahiro Yamada * SPDX-License-Identifier: GPL-2.0+ 6*56f86e39SMasahiro Yamada */ 7*56f86e39SMasahiro Yamada #include <common.h> 8*56f86e39SMasahiro Yamada #include <asm/arch/cpu.h> 9*56f86e39SMasahiro Yamada 10*56f86e39SMasahiro Yamada #define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22) 11*56f86e39SMasahiro Yamada 12*56f86e39SMasahiro Yamada void l2_cache_disable() 13*56f86e39SMasahiro Yamada { 14*56f86e39SMasahiro Yamada u32 ctrl; 15*56f86e39SMasahiro Yamada 16*56f86e39SMasahiro Yamada ctrl = readfr_extra_feature_reg(); 17*56f86e39SMasahiro Yamada ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN; 18*56f86e39SMasahiro Yamada writefr_extra_feature_reg(ctrl); 19*56f86e39SMasahiro Yamada } 20