soc/mediatek/mt8192: Initialize mmu in bootblock

Initialize CPU mmu and config range.

Signed-off-by: CK Hu <ck.hu@mediatek.com>
Change-Id: I5ba405dab87d51d373704657ccb44c07c7249041
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44433
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
CK Hu 2020-05-13 12:15:26 +08:00 committed by Hung-Te Lin
parent 5ad4dcba85
commit d8b8cc04f3
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,8 @@
ifeq ($(CONFIG_SOC_MEDIATEK_MT8192),y)
bootblock-y += bootblock.c
bootblock-y += ../common/gpio.c gpio.c
bootblock-y += ../common/mmu_operations.c
bootblock-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
bootblock-y += ../common/timer.c
bootblock-y += ../common/uart.c

View File

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <bootblock_common.h>
#include <soc/mmu_operations.h>
void bootblock_soc_init(void)
{
mtk_mmu_init();
}