coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mmu_operations.h File Reference
#include <arch/mmu.h>
#include <symbols.h>
Include dependency graph for mmu_operations.h:

Go to the source code of this file.

Enumerations

enum  {
  DEV_MEM = MA_DEV | MA_S | MA_RW , SECURE_CACHED_MEM = MA_MEM | MA_S | MA_RW , SECURE_UNCACHED_MEM = MA_MEM | MA_S | MA_RW | MA_MEM_NC , NONSECURE_CACHED_MEM = MA_MEM | MA_NS | MA_RW ,
  NONSECURE_UNCACHED_MEM = MA_MEM | MA_NS | MA_RW | MA_MEM_NC
}
 

Functions

void mtk_soc_after_dram (void)
 
void mtk_soc_disable_l2c_sram (void)
 
void mtk_mmu_init (void)
 
void mtk_mmu_after_dram (void)
 
void mtk_mmu_disable_l2c_sram (void)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DEV_MEM 
SECURE_CACHED_MEM 
SECURE_UNCACHED_MEM 
NONSECURE_CACHED_MEM 
NONSECURE_UNCACHED_MEM 

Definition at line 9 of file mmu_operations.h.

Function Documentation

◆ mtk_mmu_after_dram()

void mtk_mmu_after_dram ( void  )

Definition at line 34 of file mmu_operations.c.

References _dram, mmu_config_range(), mtk_soc_after_dram(), NONSECURE_CACHED_MEM, and sdram_size().

Referenced by mtk_dram_init(), and platform_romstage_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mtk_mmu_disable_l2c_sram()

void mtk_mmu_disable_l2c_sram ( void  )

Definition at line 42 of file mmu_operations.c.

References DEV_MEM, mmu_config_range(), mmu_disable(), mmu_enable(), mtk_soc_disable_l2c_sram(), and REGION_SIZE.

Referenced by mtk_soc_after_dram(), and soc_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mtk_mmu_init()

void mtk_mmu_init ( void  )

Definition at line 10 of file mmu_operations.c.

References DEV_MEM, dma_coherent(), GiB, mmu_config_range(), mmu_enable(), mmu_init(), REGION_SIZE, SECURE_CACHED_MEM, and SECURE_UNCACHED_MEM.

Referenced by bootblock_soc_init(), and decompressor_soc_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mtk_soc_after_dram()

void mtk_soc_after_dram ( void  )

Definition at line 34 of file mmu_cmops.c.

References mmu_config_range(), mtk_mmu_disable_l2c_sram(), NONSECURE_UNCACHED_MEM, and REGION_SIZE.

Referenced by mtk_mmu_after_dram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mtk_soc_disable_l2c_sram()

void mtk_soc_disable_l2c_sram ( void  )