soc/mediatek/mt8186: Add DRAM full calibration support
Use common SoC drivers for DRAM calibration support. TEST=build pass. BUG=b:202871018 Signed-off-by: Ryan Chuang <ryan.chuang@mediatek.corp-partner.google.com> Change-Id: Ie1a1e04da0cce9aaf86588a94c64d2242e7cb4b7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60318 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
parent
773c007af4
commit
31531eab35
|
@ -6,6 +6,7 @@ config SOC_MEDIATEK_MT8186
|
|||
select ARCH_ROMSTAGE_ARMV8_64
|
||||
select ARCH_RAMSTAGE_ARMV8_64
|
||||
select ARM64_USE_ARM_TRUSTED_FIRMWARE
|
||||
select CACHE_MRC_SETTINGS
|
||||
select HAVE_UART_SPECIAL
|
||||
select SOC_MEDIATEK_COMMON
|
||||
|
||||
|
|
|
@ -26,10 +26,14 @@ verstage-y += ../common/wdt.c wdt.c
|
|||
|
||||
romstage-y += ../common/auxadc.c
|
||||
romstage-y += ../common/cbmem.c
|
||||
romstage-y += ../common/dram_init.c
|
||||
romstage-y += ../common/dramc_param.c
|
||||
romstage-y += emi.c
|
||||
romstage-y += ../common/flash_controller.c
|
||||
romstage-y += ../common/gpio.c gpio.c
|
||||
romstage-y += ../common/i2c.c i2c.c
|
||||
romstage-y += ../common/memory.c
|
||||
romstage-y += ../common/memory_test.c
|
||||
romstage-y += ../common/mmu_operations.c ../common/mmu_cmops.c
|
||||
romstage-y += ../common/pll.c pll.c
|
||||
romstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
||||
|
@ -78,6 +82,14 @@ $(foreach fw, $(call strip_quotes,$(mcu-firmware-files)), \
|
|||
$(if $(wildcard $($(fw)-file)), $(eval cbfs-files-y += $(fw)), ) \
|
||||
)
|
||||
|
||||
DRAM_CBFS := $(CONFIG_CBFS_PREFIX)/dram
|
||||
$(DRAM_CBFS)-file := $(MT8186_BLOB_DIR)/dram.elf
|
||||
$(DRAM_CBFS)-type := stage
|
||||
$(DRAM_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG)
|
||||
ifneq ($(wildcard $($(DRAM_CBFS)-file)),)
|
||||
cbfs-files-y += $(DRAM_CBFS)
|
||||
endif
|
||||
|
||||
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
|
||||
./util/mtkheader/gen-bl-img.py mt8183 sf $< $@
|
||||
|
||||
|
|
Loading…
Reference in New Issue