mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 15:53:02 +00:00
90526e9fba
Move this header out of the common header. Network support is used in quite a few places but it still does not warrant blanket inclusion. Note that this net.h header itself has quite a lot in it. It could be split into the driver-mode support, functions, structures, checksumming, etc. Signed-off-by: Simon Glass <sjg@chromium.org>
19 lines
384 B
C
19 lines
384 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2012 Michael Walle
|
|
* Michael Walle <michael@walle.cc>
|
|
*/
|
|
#include <common.h>
|
|
#include <asm/arch/cpu.h>
|
|
#include <asm/cache.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);
|
|
}
|