You-Cheng Syu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31024
Change subject: mediatek/mt8183: Add option MT8183_MINIMIZE_BOOTBLOCK ......................................................................
mediatek/mt8183: Add option MT8183_MINIMIZE_BOOTBLOCK
MT8183 only allows booting from eMMC, so we have to do eMMC emulation from an external source, for example EC, which makes the size of bootblock very important.
This CL adds a new option MT8183_MINIMIZE_BOOTBLOCK in Kconfig. When enabled, initializations that be can postponed in bootblock will be removed.
Change-Id: I35d7ab875395da913b967ae1f7b72359be3e744a Signed-off-by: You-Cheng Syu youcheng@google.com --- M src/soc/mediatek/mt8183/Kconfig M src/soc/mediatek/mt8183/bootblock.c 2 files changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/31024/1
diff --git a/src/soc/mediatek/mt8183/Kconfig b/src/soc/mediatek/mt8183/Kconfig index 6582e4e..b8c4dc0 100644 --- a/src/soc/mediatek/mt8183/Kconfig +++ b/src/soc/mediatek/mt8183/Kconfig @@ -28,4 +28,8 @@ bool default y
+config MT8183_MINIMIZE_BOOTBLOCK + bool + default n + endif diff --git a/src/soc/mediatek/mt8183/bootblock.c b/src/soc/mediatek/mt8183/bootblock.c index d7d5c2d..809826f 100644 --- a/src/soc/mediatek/mt8183/bootblock.c +++ b/src/soc/mediatek/mt8183/bootblock.c @@ -20,5 +20,7 @@ void bootblock_soc_init(void) { mt_pll_init(); - mtk_wdt_init(); + if (!IS_ENABLED(CONFIG_MT8183_MINIMIZE_BOOTBLOCK)) { + mtk_wdt_init(); + } }