soc/mediatek/mt8192: Use LZ4 compression for MCUs

For MT8192 MCUs, replace LZMA compression with LZ4 to speed up boot
process. The loading (plus decompression) time of mcupm.bin and sspm.bin
is consistently reduced by 8ms, respectively.

BUG=b:177389446
TEST=emerge-asurada coreboot
TEST=Hayato booted up
BRANCH=none

Change-Id: Ida35e7f6e0572ad43082e53bcc69bc708cf7da44
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50278
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
Yu-Ping Wu 2021-02-04 16:24:21 +08:00 committed by Patrick Georgi
parent 739c080eef
commit 7aa5b5ece9
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ mcu-firmware-files := \
$(foreach fw, $(call strip_quotes,$(mcu-firmware-files)), \ $(foreach fw, $(call strip_quotes,$(mcu-firmware-files)), \
$(eval $(fw)-file := $(MT8192_BLOB_DIR)/$(fw)) \ $(eval $(fw)-file := $(MT8192_BLOB_DIR)/$(fw)) \
$(eval $(fw)-type := raw) \ $(eval $(fw)-type := raw) \
$(eval $(fw)-compression := $(CBFS_COMPRESS_FLAG)) \ $(eval $(fw)-compression := LZ4) \
$(if $(wildcard $($(fw)-file)), $(eval cbfs-files-y += $(fw)), ) \ $(if $(wildcard $($(fw)-file)), $(eval cbfs-files-y += $(fw)), ) \
) )