aboutsummaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8183/include
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2018-06-26 13:42:04 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-07-26 11:34:05 +0000
commit03e9cb9b35a33f29d3fb0039960237eaea2f7ce6 (patch)
tree06b6ff31159aff1da9e9938441a2aa17fe060eff /src/soc/mediatek/mt8183/include
parent4c067c85507c786a661642c10583c71b80a9855c (diff)
mediatek/mt8183: Enable bootblock self-decompression
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. A fully functional bootblock (that can boot into verstage or romstage) is about 38000 bytes. If self decompression (CONFIG_COMPRESS_BOOTBLOCK) is enabled, only 25088 (66%) bytes are needed. Inspired from crosreview.com/1070018. BUG=b:80501386 TEST=manually flashed into kukui and boots into romstage. Change-Id: I7a739866a4ea3bcafe2ff7b9e88d5ed00f3f3e40 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://review.coreboot.org/27599 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/soc/mediatek/mt8183/include')
-rw-r--r--src/soc/mediatek/mt8183/include/soc/memlayout.ld6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/mediatek/mt8183/include/soc/memlayout.ld b/src/soc/mediatek/mt8183/include/soc/memlayout.ld
index f44c74b0e5..f148eed519 100644
--- a/src/soc/mediatek/mt8183/include/soc/memlayout.ld
+++ b/src/soc/mediatek/mt8183/include/soc/memlayout.ld
@@ -39,9 +39,9 @@ SECTIONS
SRAM_END(0x00120000)
SRAM_L2C_START(0x00200000)
- BOOTBLOCK(0x00201000, 85K)
- VERSTAGE(0x00217000, 114K)
- ROMSTAGE(0x00233800, 92K)
+ OVERLAP_DECOMPRESSOR_ROMSTAGE(0x000201000, 92K)
+ BOOTBLOCK(0x00227000, 89K)
+ VERSTAGE(0x0023E000, 114K)
SRAM_L2C_END(0x00280000)
DRAM_START(0x40000000)