mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 16:07:30 +00:00
1a4596601f
Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
19 lines
364 B
C
19 lines
364 B
C
/*
|
|
* 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);
|
|
}
|