summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8195/bootblock.c
diff options
context:
space:
mode:
authorJianjun Wang <jianjun.wang@mediatek.com>2022-03-23 15:28:10 +0800
committerPaul Fagerburg <pfagerburg@chromium.org>2022-03-29 15:41:37 +0000
commitacf16bf4f69e417c75021e49bd455a212adbcd46 (patch)
tree7145a5841ad86893c43c40f66b885ed9bbafd927 /src/soc/mediatek/mt8195/bootblock.c
parent41faa22c532def4093a65366764d12298c6a10d3 (diff)
downloadcoreboot-acf16bf4f69e417c75021e49bd455a212adbcd46.tar.gz
coreboot-acf16bf4f69e417c75021e49bd455a212adbcd46.tar.bz2
coreboot-acf16bf4f69e417c75021e49bd455a212adbcd46.zip
soc/mediatek/mt8195: Add early init support
Add early init support for MT8195 platform. TEST=Build pass and boot up to kernel successfully via SSD on Dojo board, here is the SSD information in boot log: == NVME IDENTIFY CONTROLLER DATA == PCI VID : 0x15b7 PCI SSVID : 0x15b7 SN : 21517J440114 MN : WDC PC SN530 SDBPTPZ-256G-1006 RAB : 0x4 AERL : 0x7 SQES : 0x66 CQES : 0x44 NN : 0x1 Identified NVMe model WDC PC SN530 SDBPTPZ-256G-1006 BUG=b:178565024 BRANCH=cherry Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com> Change-Id: I4eb7da53ff76c385cab18bbf84970e96b61662ac Reviewed-on: https://review.coreboot.org/c/coreboot/+/63020 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8195/bootblock.c')
-rw-r--r--src/soc/mediatek/mt8195/bootblock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8195/bootblock.c b/src/soc/mediatek/mt8195/bootblock.c
index 3adf5c17bd1f..813c0c89fc1a 100644
--- a/src/soc/mediatek/mt8195/bootblock.c
+++ b/src/soc/mediatek/mt8195/bootblock.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <bootblock_common.h>
+#include <soc/early_init.h>
#include <soc/eint_event.h>
#include <soc/mmu_operations.h>
#include <soc/pll.h>
@@ -14,4 +15,5 @@ void bootblock_soc_init(void)
mtk_wdt_init();
mt_pll_init();
unmask_eint_event_mask();
+ early_init_clear();
}