coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mmu_operations.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
device/mmio.h
>
4
#include <soc/mcucfg.h>
5
#include <soc/mmu_operations.h>
6
7
void
mtk_soc_disable_l2c_sram
(
void
)
8
{
9
/* Turn off L2C SRAM and return it to L2 cache. */
10
write32
(&
mt8183_mcucfg
->
l2c_cfg_mp0
, 7 << 8);
11
}
write32
static void write32(void *addr, uint32_t val)
Definition:
mmio.h:40
mmio.h
mtk_soc_disable_l2c_sram
void mtk_soc_disable_l2c_sram(void)
Definition:
mmu_operations.c:18
mt8183_mcucfg
static struct mt8183_mcucfg_regs *const mt8183_mcucfg
Definition:
mcucfg.h:371
mt8183_mcucfg_regs::l2c_cfg_mp0
u32 l2c_cfg_mp0
Definition:
mcucfg.h:173
src
soc
mediatek
mt8183
mmu_operations.c
Generated by
1.9.1