From d8b8cc04f3b363e52413cb6927a32658e4d168f7 Mon Sep 17 00:00:00 2001 From: CK Hu Date: Wed, 13 May 2020 12:15:26 +0800 Subject: soc/mediatek/mt8192: Initialize mmu in bootblock Initialize CPU mmu and config range. Signed-off-by: CK Hu Change-Id: I5ba405dab87d51d373704657ccb44c07c7249041 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44433 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin --- src/soc/mediatek/mt8192/Makefile.inc | 2 ++ src/soc/mediatek/mt8192/bootblock.c | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/soc/mediatek/mt8192/bootblock.c (limited to 'src') diff --git a/src/soc/mediatek/mt8192/Makefile.inc b/src/soc/mediatek/mt8192/Makefile.inc index b0faf6290c..0ba9feb29f 100644 --- a/src/soc/mediatek/mt8192/Makefile.inc +++ b/src/soc/mediatek/mt8192/Makefile.inc @@ -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 diff --git a/src/soc/mediatek/mt8192/bootblock.c b/src/soc/mediatek/mt8192/bootblock.c new file mode 100644 index 0000000000..f48e78c309 --- /dev/null +++ b/src/soc/mediatek/mt8192/bootblock.c @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include + +void bootblock_soc_init(void) +{ + mtk_mmu_init(); +} -- cgit v1.2.3