soc/mediatek/mt8196: Add PMIC MT6316 driver
[coreboot2.git] / src / soc / qualcomm / sc7280 / Makefile.mk
blobae23f45edebf61edad1056f0dd1f3c359fa248d4
1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_QUALCOMM_SC7280),y)
4 decompressor-y += decompressor.c
5 decompressor-y += mmu.c
6 decompressor-y += ../common/timer.c
7 all-y += ../common/timer.c
8 all-y += ../common/gpio.c
9 all-y += ../common/clock.c
10 all-y += clock.c
11 all-y += socinfo.c
12 all-y += ../common/spi.c
13 all-$(CONFIG_SC7280_QSPI) += ../common/qspi.c
14 all-y += ../common/qupv3_config.c
15 all-y += qcom_qup_se.c
16 all-y += ../common/qup_se_handler.c
17 all-y += ../common/qupv3_spi.c
18 all-y += ../common/qupv3_i2c.c
19 all-y += ../common/qupv3_spi.c
21 ################################################################################
22 bootblock-y += bootblock.c
23 bootblock-y += mmu.c
24 bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart_bitbang.c
26 ################################################################################
27 verstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c
29 ################################################################################
30 romstage-y += cbmem.c
31 romstage-y += shrm_load_reset.c
32 romstage-y += cpucp_load_reset.c
33 romstage-y += ../common/qclib.c
34 romstage-y += ../common/mmu.c
35 romstage-y += ../common/watchdog.c
36 romstage-y += mmu.c
37 romstage-y += ../common/usb/usb.c
38 romstage-y += carve_out.c
39 romstage-y += ../common/aop_load_reset.c
40 romstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c
42 ################################################################################
43 ramstage-y += soc.c
44 ramstage-y += carve_out.c
45 ramstage-y += cbmem.c
46 ramstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c
47 ramstage-y += ../common/usb/usb.c
48 ramstage-y += ../common/usb/snps_usb_phy.c
49 ramstage-y += ../common/usb/qmpv4_usb_phy.c
50 ramstage-y += cpucp_load_reset.c
51 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/edp_aux.c
52 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/edp_ctrl.c
53 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/edp_phy_7nm.c
54 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += ../common/display/mdss.c
55 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/disp.c
56 ramstage-$(CONFIG_PCI) += ../common/pcie_common.c
57 ramstage-$(CONFIG_PCI) += pcie.c
58 ramstage-$(CONFIG_SDHCI_CONTROLLER) += sdhci.c ../common/storage/sdhci_msm.c
60 ################################################################################
62 CPPFLAGS_common += -Isrc/soc/qualcomm/sc7280/include
63 CPPFLAGS_common += -Isrc/soc/qualcomm/common/include
65 BL31_MAKEARGS += PLAT=sc7280
67 ################################################################################
68 ifeq ($(CONFIG_USE_QC_BLOBS),y)
69 SC7280_BLOB := $(top)/3rdparty/qc_blobs/sc7280
71 ifeq ($(CONFIG_QC_SDI_ENABLE),y)
72 BL31_MAKEARGS += QTI_SDI_BUILD=1
73 BL31_MAKEARGS += QTISECLIB_PATH=$(SC7280_BLOB)/qtiseclib/libqtisec_dbg.a
74 else
75 BL31_MAKEARGS += QTISECLIB_PATH=$(SC7280_BLOB)/qtiseclib/libqtisec.a
76 endif # CONFIG_QC_SDI_ENABLE
78 ################################################################################
79 ifeq ($(CONFIG_QC_SDI_ENABLE),y)
80 QCSDI_FILE := $(SC7280_BLOB)/boot/QcSdi.elf
81 QCSDI_CBFS := $(CONFIG_CBFS_PREFIX)/qcsdi
82 $(QCSDI_CBFS)-file := $(QCSDI_FILE)
83 $(QCSDI_CBFS)-type := stage
84 $(QCSDI_CBFS)-compression := $(CBFS_COMPRESS_FLAG)
85 cbfs-files-y += $(QCSDI_CBFS)
86 endif
88 ################################################################################
89 QC_SEC_FILE := $(SC7280_BLOB)/qc_sec/qc_sec.mbn
90 $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.elf
91 @util/qualcomm/createxbl.py --mbn_version 6 -f $(objcbfs)/bootblock.raw.elf \
92 -x $(QC_SEC_FILE) -o $(objcbfs)/merged_bb_qcsec.mbn \
93 -a 64 -d 64 -c 64
94 @printf "\nqgpt.py 4K sector size\n"
95 @util/qualcomm/qgpt.py $(objcbfs)/merged_bb_qcsec.mbn \
96 $(objcbfs)/bootblock.bin
98 ################################################################################
99 QCLIB_FILE := $(SC7280_BLOB)/boot/QcLib.elf
100 QCLIB_CBFS := $(CONFIG_CBFS_PREFIX)/qclib
101 $(QCLIB_CBFS)-file := $(QCLIB_FILE)
102 $(QCLIB_CBFS)-type := stage
103 $(QCLIB_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG)
104 cbfs-files-y += $(QCLIB_CBFS)
106 ################################################################################
107 PMIC_FILE := $(SC7280_BLOB)/boot/Pmic.bin
108 PMIC_CBFS := $(CONFIG_CBFS_PREFIX)/pmiccfg
109 $(PMIC_CBFS)-file := $(PMIC_FILE)
110 $(PMIC_CBFS)-type := raw
111 $(PMIC_CBFS)-compression := $(CBFS_COMPRESS_FLAG)
112 cbfs-files-y += $(PMIC_CBFS)
114 ################################################################################
115 DCB_FILE := $(SC7280_BLOB)/boot/dcb.bin
116 DCB_CBFS := $(CONFIG_CBFS_PREFIX)/dcb
117 $(DCB_CBFS)-file := $(DCB_FILE)
118 $(DCB_CBFS)-type := raw
119 $(DCB_CBFS)-compression := $(CBFS_COMPRESS_FLAG)
120 cbfs-files-y += $(DCB_CBFS)
122 ################################################################################
123 UART_FW_FILE := $(SC7280_BLOB)/qup_fw/uart_fw.bin
124 UART_FW_CBFS := $(CONFIG_CBFS_PREFIX)/uart_fw
125 $(UART_FW_CBFS)-file := $(UART_FW_FILE)
126 $(UART_FW_CBFS)-type := raw
127 $(UART_FW_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG)
128 cbfs-files-y += $(UART_FW_CBFS)
130 ################################################################################
131 SPI_FW_FILE := $(SC7280_BLOB)/qup_fw/spi_fw.bin
132 SPI_FW_CBFS := $(CONFIG_CBFS_PREFIX)/spi_fw
133 $(SPI_FW_CBFS)-file := $(SPI_FW_FILE)
134 $(SPI_FW_CBFS)-type := raw
135 $(SPI_FW_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG)
136 cbfs-files-y += $(SPI_FW_CBFS)
138 ################################################################################
139 I2C_FW_FILE := $(SC7280_BLOB)/qup_fw/i2c_fw.bin
140 I2C_FW_CBFS := $(CONFIG_CBFS_PREFIX)/i2c_fw
141 $(I2C_FW_CBFS)-file := $(I2C_FW_FILE)
142 $(I2C_FW_CBFS)-type := raw
143 $(I2C_FW_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG)
144 cbfs-files-y += $(I2C_FW_CBFS)
146 ################################################################################
147 AOP_FILE := $(SC7280_BLOB)/aop/aop.mbn
148 AOP_CBFS := $(CONFIG_CBFS_PREFIX)/aop
149 $(AOP_CBFS)-file := $(AOP_FILE)
150 $(AOP_CBFS)-type := payload
151 $(AOP_CBFS)-compression := $(CBFS_COMPRESS_FLAG)
152 cbfs-files-y += $(AOP_CBFS)
154 ################################################################################
155 CPUCP_FILE := $(SC7280_BLOB)/cpucp/cpucp.elf
156 CPUCP_CBFS := $(CONFIG_CBFS_PREFIX)/cpucp
157 $(CPUCP_CBFS)-file := $(CPUCP_FILE)
158 $(CPUCP_CBFS)-type := payload
159 $(CPUCP_CBFS)-compression := $(CBFS_COMPRESS_FLAG)
160 cbfs-files-y += $(CPUCP_CBFS)
162 ################################################################################
163 SHRM_FILE := $(SC7280_BLOB)/shrm/shrm.elf
164 SHRM_CBFS := $(CONFIG_CBFS_PREFIX)/shrm
165 $(SHRM_CBFS)-file := $(SHRM_FILE)
166 $(SHRM_CBFS)-type := payload
167 $(SHRM_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG)
168 cbfs-files-y += $(SHRM_CBFS)
170 ################################################################################
171 GSI_FW_FILE := $(SC7280_BLOB)/qup_fw/gsi_fw.bin
172 GSI_FW_CBFS := $(CONFIG_CBFS_PREFIX)/gsi_fw
173 $(GSI_FW_CBFS)-file := $(GSI_FW_FILE)
174 $(GSI_FW_CBFS)-type := raw
175 $(GSI_FW_CBFS)-compression := $(CBFS_COMPRESS_FLAG)
176 cbfs-files-y += $(GSI_FW_CBFS)
178 endif
180 endif