1 ## SPDX-License-Identifier: GPL-2.0-only
3 ifeq ($(CONFIG_SOC_MEDIATEK_MT8196
),y
)
5 all-y
+= ..
/common
/flash_controller.c
6 all-y
+= ..
/common
/gpio.c ..
/common
/gpio_op.c gpio.c gpio_eint.c
7 all-y
+= ..
/common
/i2c.c i2c.c
8 all-y
+= ..
/common
/pll.c pll.c
9 all-
$(CONFIG_SPI_FLASH
) += ..
/common
/spi.c spi.c
10 all-y
+= timer.c timer_prepare.c
11 all-y
+= ..
/common
/uart.c
13 bootblock-y
+= bootblock.c
14 bootblock-y
+= ..
/common
/bootblock.c bootblock.c
15 bootblock-y
+= ..
/common
/early_init.c
16 bootblock-y
+= ..
/common
/lastbus_v2.c lastbus.c
17 bootblock-y
+= ..
/common
/mmu_operations.c
18 bootblock-
$(CONFIG_PCI
) += ..
/common
/pcie.c pcie.c
19 bootblock-y
+= ..
/common
/wdt.c ..
/common
/wdt_req.c wdt.c
21 romstage-y
+= ..
/common
/cbmem.c
22 romstage-y
+= ..
/common
/dram_init.c
23 romstage-y
+= ..
/common
/dramc_param.c
24 romstage-
$(CONFIG_PCI
) += ..
/common
/early_init.c ..
/common
/pcie.c
25 romstage-y
+= ..
/common
/emi.c
26 romstage-y
+= irq2axi.c
27 romstage-y
+= l2c_ops.c
28 romstage-y
+= ..
/common
/memory.c memory.c
29 romstage-y
+= ..
/common
/memory_test.c
30 romstage-y
+= ..
/common
/mmu_operations.c ..
/common
/mmu_cmops.c
32 ramstage-y
+= ..
/common
/early_init.c
33 ramstage-y
+= ..
/common
/emi.c
34 ramstage-y
+= l2c_ops.c
35 ramstage-y
+= ..
/common
/mmu_operations.c ..
/common
/mmu_cmops.c
36 ramstage-
$(CONFIG_PCI
) += ..
/common
/pcie.c pcie.c
38 ramstage-y
+= ..
/common
/usb.c usb.c
40 CPPFLAGS_common
+= -Isrc
/soc
/mediatek
/mt8196
/include
41 CPPFLAGS_common
+= -Isrc
/soc
/mediatek
/common
/include
43 MT8196_BLOB_DIR
:= 3rdparty
/blobs
/soc
/mediatek
/mt8196
45 DRAM_CBFS
:= $(CONFIG_CBFS_PREFIX
)/dram
46 $(DRAM_CBFS
)-file
:= $(MT8196_BLOB_DIR
)/dram.elf
47 $(DRAM_CBFS
)-type
:= stage
48 $(DRAM_CBFS
)-compression
:= $(CBFS_PRERAM_COMPRESS_FLAG
)
49 ifneq ($(wildcard $($(DRAM_CBFS
)-file
)),)
50 cbfs-files-y
+= $(DRAM_CBFS
)
52 $(objcbfs
)/bootblock.bin
: $(objcbfs
)/bootblock.raw.bin
53 .
/util
/mtkheader
/gen-bl-img.py mt8196 sf
$< $@