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-12-06 06:12:44 +01:00
|
|
|
bootblock-y += ../common/tracker.c ../common/tracker_v2.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-09-27 07:06:53 +02:00
|
|
|
bootblock-y += ../common/wdt.c 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-09-27 07:06:53 +02:00
|
|
|
verstage-y += ../common/wdt.c wdt.c
|
2021-01-07 13:25:54 +01:00
|
|
|
|
2021-06-25 17:27:56 +02:00
|
|
|
ramstage-y += apusys.c
|
soc/mediatek/mt8195: Add APU device apc driver
Add APU device apc driver and set up permissions.
APU has its own device apc for control access by domains.
For Domain 0, the access to the following slaves are restricted to
security read and write:
apusys_ao-2, apusys_ao-4, apusys_ao-5, apu_sctrl_reviser,
apu_iommu0_r1 apu_iommu0_r2, apu_iommu0_r3, apu_iommu0_r4
apu_iommu1_r1, apu_iommu1_r2, apu_iommu1_r3,apu_iommu1_r4
For VPU, D0/D5 are set as no protection, other domains are forbidden.
For other slaves, the D0 is no protection, other domains are forbidden.
BUG=b:203145462
BRANCH=cherry
TEST=boot cherry, check dump log and test permissions
Signed-off-by: Flora Fu <flora.fu@mediatek.com>
Change-Id: If92d3b02ac4966332315b85d68e0f48c6a9fce85
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58969
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2021-11-05 10:46:28 +01:00
|
|
|
ramstage-y += apusys_devapc.c
|
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-11-11 08:45:27 +01:00
|
|
|
romstage-y += ../common/mmu_operations.c ../common/mmu_cmops.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-09-27 07:06:53 +02:00
|
|
|
romstage-y += ../common/wdt.c 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-11-25 10:44:02 +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-06-21 03:13:19 +02:00
|
|
|
ramstage-y += devapc.c
|
2021-08-10 06:39:32 +02:00
|
|
|
ramstage-y += ../common/dfd.c
|
2021-06-18 13:48:17 +02:00
|
|
|
ramstage-y += ../common/dpm.c
|
|
|
|
ramstage-$(CONFIG_DPM_FOUR_CHANNEL) += dpm_4ch.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-08-13 10:34:26 +02:00
|
|
|
ramstage-y += hdmi.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-11-11 08:45:27 +01:00
|
|
|
ramstage-y += ../common/mmu_operations.c ../common/mmu_cmops.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-11-12 11:28:18 +01:00
|
|
|
ramstage-$(CONFIG_COMMONLIB_STORAGE_MMC) += ../common/msdc.c msdc.c
|
2021-06-01 05:42:27 +02:00
|
|
|
ramstage-y += ../common/pll.c pll.c
|
2021-09-06 06:58:39 +02:00
|
|
|
ramstage-y += ../common/pmif.c
|
|
|
|
ramstage-y += ../common/rtc.c ../common/rtc_mt6359p.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-09-27 07:06:53 +02:00
|
|
|
ramstage-y += ../common/wdt.c 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-14 09:38:49 +02:00
|
|
|
$(CONFIG_DPM_DM_FIRMWARE) \
|
|
|
|
$(CONFIG_DPM_PM_FIRMWARE) \
|
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
|