avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
19
u-boot/arch/arm/mach-kirkwood/cache.c
Normal file
19
u-boot/arch/arm/mach-kirkwood/cache.c
Normal file
@@ -0,0 +1,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);
|
||||
}
|
||||
Reference in New Issue
Block a user