<p>You-Cheng Syu has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/c/coreboot/+/30330">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mediatek/mt8183: Add option SOC_MEDIATEK_MT8183_MINIMAL_BOOTBLOCK<br><br>Some boards may to want minimize bootblock size by moving some<br>initializations from bootblock to later stages. We could have a new<br>option to eliminate the initializations in bootblock.<br><br>BRANCH=none<br>BUG=b:120588396<br>TEST=build successfully<br><br>Change-Id: I7d482f06a8cc97be0c390ed863aa3ac05d4a3459<br>Signed-off-by: You-Cheng Syu <youcheng@google.com><br>---<br>M src/soc/mediatek/mt8183/Kconfig<br>M src/soc/mediatek/mt8183/Makefile.inc<br>M src/soc/mediatek/mt8183/bootblock.c<br>3 files changed, 10 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/30/30330/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/mediatek/mt8183/Kconfig b/src/soc/mediatek/mt8183/Kconfig</span><br><span>index b58be7f..5dc490c 100644</span><br><span>--- a/src/soc/mediatek/mt8183/Kconfig</span><br><span>+++ b/src/soc/mediatek/mt8183/Kconfig</span><br><span>@@ -19,4 +19,8 @@</span><br><span>  select VBOOT_STARTS_IN_BOOTBLOCK</span><br><span>     select VBOOT_SEPARATE_VERSTAGE</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+config SOC_MEDIATEK_MT8183_MINIMAL_BOOTBLOCK</span><br><span style="color: hsl(120, 100%, 40%);">+      bool</span><br><span style="color: hsl(120, 100%, 40%);">+  default n</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> endif</span><br><span>diff --git a/src/soc/mediatek/mt8183/Makefile.inc b/src/soc/mediatek/mt8183/Makefile.inc</span><br><span>index b981e45..7faabac 100644</span><br><span>--- a/src/soc/mediatek/mt8183/Makefile.inc</span><br><span>+++ b/src/soc/mediatek/mt8183/Makefile.inc</span><br><span>@@ -3,11 +3,14 @@</span><br><span> bootblock-y += auxadc.c</span><br><span> bootblock-y += bootblock.c</span><br><span> bootblock-y += ../common/gpio.c gpio.c</span><br><span style="color: hsl(0, 100%, 40%);">-bootblock-y += ../common/pll.c pll.c</span><br><span> bootblock-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c</span><br><span> bootblock-y += ../common/timer.c</span><br><span> bootblock-y += ../common/uart.c</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ifneq ($(CONFIG_SOC_MEDIATEK_MT8183_MINIMAL_BOOTBLOCK),y)</span><br><span style="color: hsl(120, 100%, 40%);">+bootblock-y += ../common/pll.c pll.c</span><br><span> bootblock-y += ../common/wdt.c</span><br><span style="color: hsl(120, 100%, 40%);">+endif</span><br><span> </span><br><span> decompressor-y += decompressor.c</span><br><span> decompressor-y += ../common/mmu_operations.c</span><br><span>diff --git a/src/soc/mediatek/mt8183/bootblock.c b/src/soc/mediatek/mt8183/bootblock.c</span><br><span>index d7d5c2d..ff79c15 100644</span><br><span>--- a/src/soc/mediatek/mt8183/bootblock.c</span><br><span>+++ b/src/soc/mediatek/mt8183/bootblock.c</span><br><span>@@ -13,6 +13,7 @@</span><br><span>  * GNU General Public License for more details.</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#if !IS_ENABLED(CONFIG_SOC_MEDIATEK_MT8183_MINIMAL_BOOTBLOCK)</span><br><span> #include <bootblock_common.h></span><br><span> #include <soc/pll.h></span><br><span> #include <soc/wdt.h></span><br><span>@@ -22,3 +23,4 @@</span><br><span>   mt_pll_init();</span><br><span>       mtk_wdt_init();</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/c/coreboot/+/30330">change 30330</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/c/coreboot/+/30330"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7d482f06a8cc97be0c390ed863aa3ac05d4a3459 </div>
<div style="display:none"> Gerrit-Change-Number: 30330 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: You-Cheng Syu <youcheng@google.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>