1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_MEDIATEK_MT8195
),y
)
4 # for bootblock, verstage, romstage, ramstage
5 all-y
+= ..
/common
/flash_controller.c
6 all-y
+= ..
/common
/gpio_eint_v1.c ..
/common
/gpio.c ..
/common
/gpio_op.c gpio.c
7 all-y
+= ..
/common
/i2c.c i2c.c
8 all-
$(CONFIG_SPI_FLASH
) += ..
/common
/spi.c spi.c
9 all-y
+= ..
/common
/timer.c ..
/common
/timer_prepare.c
10 all-y
+= ..
/common
/uart.c
12 bootblock-y
+= bootblock.c
13 bootblock-y
+= ..
/common
/early_init.c
14 bootblock-y
+= ..
/common
/eint_event.c
15 bootblock-y
+= ..
/common
/mmu_operations.c
16 bootblock-
$(CONFIG_PCI
) += ..
/common
/pcie.c pcie.c
17 bootblock-y
+= ..
/common
/pll.c pll.c
18 bootblock-y
+= ..
/common
/tracker.c ..
/common
/tracker_v2.c
19 bootblock-y
+= ..
/common
/wdt.c ..
/common
/wdt_req.c wdt.c
21 romstage-y
+= ..
/common
/cbmem.c
22 romstage-y
+= ..
/common
/clkbuf.c
23 romstage-y
+= ..
/common
/dram_init.c
24 romstage-y
+= ..
/common
/dramc_param.c
26 romstage-y
+= ..
/common
/l2c_ops.c
27 romstage-y
+= ..
/common
/memory.c
28 romstage-y
+= ..
/common
/memory_test.c
29 romstage-y
+= ..
/common
/mmu_operations.c ..
/common
/mmu_cmops.c
30 romstage-y
+= ..
/common
/pll.c pll.c
32 romstage-y
+= ..
/common
/pmif.c ..
/common
/pmif_clk.c ..
/common
/pmif_init.c pmif_clk.c
33 romstage-y
+= ..
/common
/pmif_spi.c pmif_spi.c
34 romstage-y
+= ..
/common
/pmif_spmi.c pmif_spmi.c
35 romstage-y
+= ..
/common
/mt6315.c mt6315.c
36 romstage-y
+= ..
/common
/mt6359p.c mt6359p.c
37 romstage-y
+= mt6360.c
38 romstage-y
+= mt6691.c
39 romstage-
$(CONFIG_PCI
) += ..
/common
/early_init.c ..
/common
/pcie.c
40 romstage-y
+= ..
/common
/rtc.c ..
/common
/rtc_osc_init.c ..
/common
/rtc_mt6359p.c
42 ramstage-y
+= apusys.c
43 ramstage-y
+= apusys_devapc.c
44 ramstage-y
+= ..
/common
/auxadc.c
45 ramstage-
$(CONFIG_ARM64_USE_ARM_TRUSTED_FIRMWARE
) += ..
/common
/bl31.c
46 ramstage-y
+= ..
/common
/early_init.c
47 ramstage-y
+= ..
/common
/ddp.c ddp.c
48 ramstage-y
+= ..
/common
/devapc.c devapc.c
49 ramstage-y
+= ..
/common
/dfd.c
50 ramstage-y
+= ..
/common
/display.c
51 ramstage-y
+= ..
/common
/dpm.c
52 ramstage-
$(CONFIG_DPM_FOUR_CHANNEL
) += ..
/common
/dpm_4ch.c
53 ramstage-y
+= ..
/common
/dp
/dp_intf.c ..
/common
/dp
/dptx.c ..
/common
/dp
/dptx_hal.c dp_intf.c
56 ramstage-y
+= ..
/common
/l2c_ops.c
57 ramstage-y
+= ..
/common
/mcu.c
58 ramstage-y
+= ..
/common
/mcupm.c
59 ramstage-y
+= ..
/common
/mmu_operations.c ..
/common
/mmu_cmops.c
60 ramstage-
$(CONFIG_COMMONLIB_STORAGE_MMC
) += ..
/common
/msdc.c msdc.c
61 ramstage-y
+= mt6360.c
62 ramstage-y
+= ..
/common
/mtcmos.c mtcmos.c
63 ramstage-
$(CONFIG_PCI
) += ..
/common
/pcie.c pcie.c
64 ramstage-y
+= ..
/common
/pll.c pll.c
65 ramstage-y
+= ..
/common
/pmif.c ..
/common
/pmif_init.c
66 ramstage-y
+= ..
/common
/rtc.c ..
/common
/rtc_mt6359p.c
68 ramstage-y
+= ..
/common
/spm.c spm.c
69 ramstage-y
+= ..
/common
/sspm.c
70 ramstage-y
+= ..
/common
/ufs.c
71 ramstage-y
+= ..
/common
/usb.c usb.c
73 CPPFLAGS_common
+= -Isrc
/soc
/mediatek
/mt8195
/include
74 CPPFLAGS_common
+= -Isrc
/soc
/mediatek
/common
/dp
/include
75 CPPFLAGS_common
+= -Isrc
/soc
/mediatek
/common
/include
76 CPPFLAGS_common
+= -Isrc
/vendorcode
/mediatek
/mt8195
/include
78 BL31_MAKEARGS
+= PLAT
=mt8195
80 MT8195_BLOB_DIR
:= 3rdparty
/blobs
/soc
/mediatek
/mt8195
82 mcu-firmware-files
:= \
83 $(CONFIG_DPM_DM_FIRMWARE
) \
84 $(CONFIG_DPM_PM_FIRMWARE
) \
85 $(CONFIG_MCUPM_FIRMWARE
) \
86 $(CONFIG_SSPM_FIRMWARE
) \
87 $(CONFIG_SPM_FIRMWARE
)
89 $(foreach fw
, $(call strip_quotes
,$(mcu-firmware-files
)), \
90 $(eval
$(fw
)-file
:= $(MT8195_BLOB_DIR
)/$(fw
)) \
91 $(eval
$(fw
)-type
:= raw
) \
92 $(eval
$(fw
)-compression
:= LZ4
) \
93 $(eval cbfs-files-y
+= $(fw
)) \
96 DRAM_CBFS
:= $(CONFIG_CBFS_PREFIX
)/dram
97 $(DRAM_CBFS
)-file
:= $(MT8195_BLOB_DIR
)/dram.elf
98 $(DRAM_CBFS
)-type
:= stage
99 $(DRAM_CBFS
)-compression
:= $(CBFS_PRERAM_COMPRESS_FLAG
)
100 cbfs-files-y
+= $(DRAM_CBFS
)
102 $(objcbfs
)/bootblock.bin
: $(objcbfs
)/bootblock.raw.bin
103 .
/util
/mtkheader
/gen-bl-img.py mt8183 sf
$< $@