hc
2023-03-15 de7d2b82e1d37d435e0b93009a6a472b54b9d6a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2012 Michael Walle
 * Michael Walle <michael@walle.cc>
 *
 * SPDX-License-Identifier:    GPL-2.0+
 */
#include <common.h>
#include <asm/arch/cpu.h>
 
#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);
}