coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
decompressor.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
arch/mmu.h
>
4
#include <
bootblock_common.h
>
5
#include <soc/mmu_operations.h>
6
#include <symbols.h>
7
8
void
decompressor_soc_init
(
void
)
9
{
10
mmu_init
();
11
12
/* Set 0x0 to max sdram(4GiB) supported by RK3399 as device memory.
13
* We want to configure mmio space(start at 0xf8000000) to DEV_MEM,
14
* some boards may use 2GB sdram in future(who knows).
15
*/
16
mmu_config_range
((
void
*)0, (
uintptr_t
)4 *
GiB
,
DEV_MEM
);
17
18
mmu_config_range
(_sram,
REGION_SIZE
(sram),
SECURE_MEM
);
19
20
mmu_enable
();
21
}
mmu_enable
void mmu_enable(void)
Definition:
mmu.c:293
mmu.h
mmu_config_range
void mmu_config_range(u32 start_mb, u32 size_mb, enum dcache_policy policy)
Definition:
mmu.c:221
mmu_init
void mmu_init(void)
Definition:
mmu.c:242
bootblock_common.h
GiB
#define GiB
Definition:
helpers.h:77
REGION_SIZE
#define REGION_SIZE(name)
Definition:
symbols.h:10
decompressor_soc_init
__weak void decompressor_soc_init(void)
Definition:
decompressor.c:37
DEV_MEM
#define DEV_MEM
Definition:
mmu_common.h:11
SECURE_MEM
@ SECURE_MEM
Definition:
mmu_operations.h:11
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
src
soc
rockchip
rk3399
decompressor.c
Generated by
1.9.1