2021-01-07 13:25:54 +01:00
|
|
|
ifeq ($(CONFIG_SOC_MEDIATEK_MT8195),y)
|
|
|
|
|
2021-06-02 10:31:33 +02:00
|
|
|
bootblock-y += ../common/auxadc.c
|
2021-01-07 13:25:54 +01:00
|
|
|
bootblock-y += bootblock.c
|
2021-04-19 07:59:51 +02:00
|
|
|
bootblock-y += ../common/eint_event.c
|
2021-05-04 04:32:54 +02:00
|
|
|
bootblock-y += ../common/flash_controller.c
|
2021-02-05 09:12:29 +01:00
|
|
|
bootblock-y += ../common/gpio.c gpio.c
|
2021-03-01 04:04:20 +01:00
|
|
|
bootblock-y += ../common/i2c.c i2c.c
|
2021-01-07 13:25:54 +01:00
|
|
|
bootblock-y += ../common/mmu_operations.c
|
2021-02-03 09:20:57 +01:00
|
|
|
bootblock-y += ../common/pll.c pll.c
|
2021-02-05 03:32:25 +01:00
|
|
|
bootblock-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
2021-02-04 11:30:54 +01:00
|
|
|
bootblock-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
bootblock-y += ../common/uart.c
|
2021-04-22 07:34:04 +02:00
|
|
|
bootblock-y += ../common/wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
2021-06-02 10:31:33 +02:00
|
|
|
verstage-y += ../common/auxadc.c
|
2021-05-04 04:32:54 +02:00
|
|
|
verstage-y += ../common/flash_controller.c
|
2021-02-05 09:12:29 +01:00
|
|
|
verstage-y += ../common/gpio.c gpio.c
|
2021-03-01 04:04:20 +01:00
|
|
|
verstage-y += ../common/i2c.c i2c.c
|
2021-02-05 03:32:25 +01:00
|
|
|
verstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
2021-02-04 11:30:54 +01:00
|
|
|
verstage-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
verstage-y += ../common/uart.c
|
2021-04-22 07:34:04 +02:00
|
|
|
verstage-y += ../common/wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
2021-06-02 10:31:33 +02:00
|
|
|
romstage-y += ../common/auxadc.c
|
2021-01-07 13:25:54 +01:00
|
|
|
romstage-y += ../common/cbmem.c
|
2021-04-11 09:28:20 +02:00
|
|
|
romstage-y += ../common/clkbuf.c
|
2021-05-13 09:34:02 +02:00
|
|
|
romstage-y += ../common/dram_init.c
|
|
|
|
romstage-y += ../common/dramc_param.c
|
2021-01-07 13:25:54 +01:00
|
|
|
romstage-y += emi.c
|
2021-05-04 04:32:54 +02:00
|
|
|
romstage-y += ../common/flash_controller.c
|
2021-02-05 09:12:29 +01:00
|
|
|
romstage-y += ../common/gpio.c gpio.c
|
2021-03-01 04:04:20 +01:00
|
|
|
romstage-y += ../common/i2c.c i2c.c
|
2021-05-13 09:34:02 +02:00
|
|
|
romstage-y += ../common/memory.c
|
|
|
|
romstage-y += ../common/memory_test.c
|
2021-05-10 14:06:35 +02:00
|
|
|
romstage-y += ../common/mmu_operations.c mmu_operations.c
|
2021-02-03 09:20:57 +01:00
|
|
|
romstage-y += ../common/pll.c pll.c
|
2021-04-19 14:50:44 +02:00
|
|
|
romstage-y += scp.c
|
2021-02-05 03:32:25 +01:00
|
|
|
romstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
2021-02-04 11:30:54 +01:00
|
|
|
romstage-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
romstage-y += ../common/uart.c
|
2021-04-22 07:34:04 +02:00
|
|
|
romstage-y += ../common/wdt.c
|
2021-05-03 10:25:49 +02:00
|
|
|
romstage-y += ../common/pmif.c ../common/pmif_clk.c pmif_clk.c
|
|
|
|
romstage-y += ../common/pmif_spi.c pmif_spi.c
|
|
|
|
romstage-y += ../common/pmif_spmi.c pmif_spmi.c
|
|
|
|
romstage-y += ../common/mt6315.c mt6315.c
|
|
|
|
romstage-y += ../common/mt6359p.c mt6359p.c
|
2021-03-04 02:44:42 +01:00
|
|
|
romstage-y += mt6691.c
|
2021-06-22 08:50:17 +02:00
|
|
|
romstage-y += mt6360.c
|
2021-03-01 07:39:33 +01:00
|
|
|
romstage-y += ../common/rtc.c ../common/rtc_osc_init.c ../common/rtc_mt6359p.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
2021-06-02 10:31:33 +02:00
|
|
|
ramstage-y += ../common/auxadc.c
|
2021-05-17 18:15:23 +02:00
|
|
|
ramstage-y += ../common/ddp.c ddp.c
|
2021-05-29 10:26:00 +02:00
|
|
|
ramstage-y += dp_intf.c dptx.c dptx_hal.c
|
2021-01-07 13:25:54 +01:00
|
|
|
ramstage-y += emi.c
|
2021-05-04 04:32:54 +02:00
|
|
|
ramstage-y += ../common/flash_controller.c
|
2021-02-05 09:12:29 +01:00
|
|
|
ramstage-y += ../common/gpio.c gpio.c
|
2021-03-01 04:04:20 +01:00
|
|
|
ramstage-y += ../common/i2c.c i2c.c
|
2021-05-17 15:58:55 +02:00
|
|
|
ramstage-y += ../common/mcu.c
|
|
|
|
ramstage-y += ../common/mcupm.c
|
2021-03-25 10:50:14 +01:00
|
|
|
ramstage-y += ../common/mmu_operations.c mmu_operations.c
|
2021-06-22 08:50:17 +02:00
|
|
|
ramstage-y += mt6360.c
|
2021-02-09 10:59:26 +01:00
|
|
|
ramstage-y += ../common/mtcmos.c mtcmos.c
|
2021-06-01 05:42:27 +02:00
|
|
|
ramstage-y += ../common/pll.c pll.c
|
2021-02-05 03:32:25 +01:00
|
|
|
ramstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
2021-01-07 13:25:54 +01:00
|
|
|
ramstage-y += soc.c
|
2021-05-03 14:44:09 +02:00
|
|
|
ramstage-y += ../common/sspm.c
|
2021-05-12 12:17:26 +02:00
|
|
|
ramstage-y += ../common/spm.c spm.c
|
2021-02-04 11:30:54 +01:00
|
|
|
ramstage-y += ../common/timer.c timer.c
|
2021-01-07 13:25:54 +01:00
|
|
|
ramstage-y += ../common/uart.c
|
2021-04-19 10:06:55 +02:00
|
|
|
ramstage-y += ../common/ufs.c
|
2021-03-01 07:39:33 +01:00
|
|
|
ramstage-y += ../common/usb.c usb.c
|
2021-04-22 07:34:04 +02:00
|
|
|
ramstage-y += ../common/wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
2021-03-19 09:52:57 +01:00
|
|
|
BL31_MAKEARGS += PLAT=mt8195
|
|
|
|
|
2021-05-13 09:34:02 +02:00
|
|
|
MT8195_BLOB_DIR := 3rdparty/blobs/soc/mediatek/mt8195
|
|
|
|
|
2021-05-17 15:58:55 +02:00
|
|
|
mcu-firmware-files := \
|
2021-05-03 14:44:09 +02:00
|
|
|
$(CONFIG_MCUPM_FIRMWARE) \
|
2021-05-12 12:17:26 +02:00
|
|
|
$(CONFIG_SSPM_FIRMWARE) \
|
|
|
|
$(CONFIG_SPM_FIRMWARE)
|
2021-05-17 15:58:55 +02:00
|
|
|
|
|
|
|
$(foreach fw, $(call strip_quotes,$(mcu-firmware-files)), \
|
|
|
|
$(eval $(fw)-file := $(MT8195_BLOB_DIR)/$(fw)) \
|
|
|
|
$(eval $(fw)-type := raw) \
|
|
|
|
$(eval $(fw)-compression := LZ4) \
|
|
|
|
$(if $(wildcard $($(fw)-file)), $(eval cbfs-files-y += $(fw)), ) \
|
|
|
|
)
|
|
|
|
|
2021-05-13 09:34:02 +02:00
|
|
|
DRAM_CBFS := $(CONFIG_CBFS_PREFIX)/dram
|
|
|
|
$(DRAM_CBFS)-file := $(MT8195_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
|
|
|
|
|
2021-01-07 13:25:54 +01:00
|
|
|
CPPFLAGS_common += -Isrc/soc/mediatek/mt8195/include
|
|
|
|
CPPFLAGS_common += -Isrc/soc/mediatek/common/include
|
2021-05-13 09:34:02 +02:00
|
|
|
CPPFLAGS_common += -Isrc/vendorcode/mediatek/mt8195/include
|
2021-01-07 13:25:54 +01:00
|
|
|
|
|
|
|
$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin
|
|
|
|
./util/mtkheader/gen-bl-img.py mt8183 sf $< $@
|
|
|
|
|
|
|
|
endif
|