2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2012-02-06 17:12:10 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 Michael Walle
|
|
|
|
* Michael Walle <michael@walle.cc>
|
|
|
|
*/
|
|
|
|
#include <common.h>
|
|
|
|
#include <asm/arch/cpu.h>
|
2020-05-10 17:39:56 +00:00
|
|
|
#include <asm/cache.h>
|
2012-02-06 17:12:10 +00:00
|
|
|
|
|
|
|
#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);
|
|
|
|
}
|