Martin Roth | 9231f0b | 2022-10-28 22:39:23 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 2 | |
| 3 | ifeq ($(CONFIG_SOC_QUALCOMM_SC7180),y) |
| 4 | |
Julius Werner | 87feced | 2020-09-29 19:23:36 -0700 | [diff] [blame] | 5 | decompressor-y += decompressor.c |
| 6 | decompressor-y += mmu.c |
Ravi Kumar Bokka | 1faaa16 | 2021-03-31 08:05:24 +0530 | [diff] [blame] | 7 | decompressor-y += ../common/timer.c |
| 8 | all-y += ../common/timer.c |
Taniya Das | 7a6b2ef | 2021-05-20 14:18:53 +0530 | [diff] [blame] | 9 | all-y += ../common/gpio.c |
Ravi Kumar Bokka | 4239458 | 2021-07-16 16:59:25 +0530 | [diff] [blame] | 10 | all-y += ../common/spi.c |
| 11 | all-$(CONFIG_SC7180_QSPI) += ../common/qspi.c |
Rajesh Patil | 555c2d6 | 2021-06-16 14:13:00 +0530 | [diff] [blame] | 12 | all-y += ../common/qupv3_i2c.c |
Ravi Kumar Bokka | bd0984d | 2021-07-17 00:01:19 +0530 | [diff] [blame] | 13 | all-y += ../common/qupv3_spi.c |
Ravi Kumar Bokka | 1faaa16 | 2021-03-31 08:05:24 +0530 | [diff] [blame] | 14 | all-y += clock.c |
Taniya Das | d37aeb1 | 2021-06-23 09:08:57 +0530 | [diff] [blame] | 15 | all-y += ../common/clock.c |
Ravi Kumar Bokka | 1faaa16 | 2021-03-31 08:05:24 +0530 | [diff] [blame] | 16 | all-y += qcom_qup_se.c |
Ravi Kumar Bokka | 34960d4 | 2021-07-27 21:02:54 +0530 | [diff] [blame] | 17 | all-y += ../common/qupv3_config.c |
| 18 | all-y += ../common/qup_se_handler.c |
Julius Werner | 87feced | 2020-09-29 19:23:36 -0700 | [diff] [blame] | 19 | |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 20 | ################################################################################ |
| 21 | bootblock-y += bootblock.c |
| 22 | bootblock-y += mmu.c |
Ravi Kumar Bokka | b01b476 | 2020-11-06 11:28:01 +0530 | [diff] [blame] | 23 | bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart_bitbang.c |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 24 | ################################################################################ |
Rajesh Patil | c2800a5 | 2021-06-18 09:17:34 +0530 | [diff] [blame] | 25 | verstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 26 | |
| 27 | ################################################################################ |
| 28 | romstage-y += cbmem.c |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 29 | romstage-y += ../common/qclib.c |
Kshitiz Godara | d3f859d | 2022-06-23 17:18:24 +0530 | [diff] [blame] | 30 | romstage-y += ../common/watchdog.c |
Sudheer Kumar Amrabadi | cc4dd88 | 2022-05-09 18:20:19 +0530 | [diff] [blame] | 31 | romstage-y += qclib.c |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 32 | romstage-y += ../common/mmu.c |
| 33 | romstage-y += mmu.c |
Sandeep Maheswaram | 6c2b860 | 2021-07-05 11:11:48 +0530 | [diff] [blame] | 34 | romstage-y += ../common/usb/usb.c |
mkurumel | a9d225b | 2020-09-14 23:28:53 +0530 | [diff] [blame] | 35 | romstage-y += carve_out.c |
Rajesh Patil | c2800a5 | 2021-06-18 09:17:34 +0530 | [diff] [blame] | 36 | romstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 37 | |
| 38 | ################################################################################ |
| 39 | ramstage-y += soc.c |
mkurumel | a9d225b | 2020-09-14 23:28:53 +0530 | [diff] [blame] | 40 | ramstage-y += carve_out.c |
Ravi Kumar Bokka | 64f7eaa | 2021-10-15 23:02:41 +0530 | [diff] [blame] | 41 | ramstage-y += ../common/aop_load_reset.c |
Rajesh Patil | c2800a5 | 2021-06-18 09:17:34 +0530 | [diff] [blame] | 42 | ramstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c |
Sandeep Maheswaram | 6c2b860 | 2021-07-05 11:11:48 +0530 | [diff] [blame] | 43 | ramstage-y += ../common/usb/usb.c |
| 44 | ramstage-y += ../common/usb/qusb_phy.c |
| 45 | ramstage-y += ../common/usb/qmpv3_usb_phy.c |
Vinod Polimera | 4cdd097 | 2020-03-03 11:22:56 +0530 | [diff] [blame] | 46 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/dsi_phy_pll.c |
| 47 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/dsi_phy.c |
Vinod Polimera | c6880b3 | 2020-03-03 11:26:36 +0530 | [diff] [blame] | 48 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/dsi.c |
Vinod Polimera | 0af24f7 | 2022-05-31 06:49:15 +0530 | [diff] [blame] | 49 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/disp.c |
| 50 | ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += ../common/display/mdss.c |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 51 | |
| 52 | ################################################################################ |
| 53 | |
| 54 | CPPFLAGS_common += -Isrc/soc/qualcomm/sc7180/include |
| 55 | CPPFLAGS_common += -Isrc/soc/qualcomm/common/include |
| 56 | |
ashk | b05e540 | 2019-07-30 14:22:04 +0530 | [diff] [blame] | 57 | BL31_MAKEARGS += PLAT=sc7180 |
| 58 | |
Felix Singer | c541567 | 2023-11-12 06:32:35 +0000 | [diff] [blame] | 59 | ifeq ($(CONFIG_USE_QC_BLOBS),y) |
| 60 | |
ashk | b05e540 | 2019-07-30 14:22:04 +0530 | [diff] [blame] | 61 | SC7180_BLOB := $(top)/3rdparty/qc_blobs/sc7180 |
| 62 | |
T Michael Turney | 0b493bb | 2019-09-20 11:27:08 -0700 | [diff] [blame] | 63 | ifeq ($(CONFIG_QC_SDI_ENABLE),y) |
| 64 | BL31_MAKEARGS += QTI_SDI_BUILD=1 |
| 65 | BL31_MAKEARGS += QTISECLIB_PATH=$(SC7180_BLOB)/qtiseclib/libqtisec_dbg.a |
| 66 | else |
| 67 | BL31_MAKEARGS += QTISECLIB_PATH=$(SC7180_BLOB)/qtiseclib/libqtisec.a |
| 68 | endif # CONFIG_QC_SDI_ENABLE |
| 69 | |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 70 | ################################################################################ |
ashk | b05e540 | 2019-07-30 14:22:04 +0530 | [diff] [blame] | 71 | ifeq ($(CONFIG_QC_SDI_ENABLE),y) |
| 72 | QCSDI_FILE := $(SC7180_BLOB)/boot/QcSdi.elf |
| 73 | QCSDI_CBFS := $(CONFIG_CBFS_PREFIX)/qcsdi |
| 74 | $(QCSDI_CBFS)-file := $(QCSDI_FILE) |
| 75 | $(QCSDI_CBFS)-type := stage |
| 76 | $(QCSDI_CBFS)-compression := $(CBFS_COMPRESS_FLAG) |
| 77 | cbfs-files-y += $(QCSDI_CBFS) |
| 78 | endif |
| 79 | |
| 80 | ################################################################################ |
| 81 | QCLIB_FILE := $(SC7180_BLOB)/boot/QcLib.elf |
| 82 | QCLIB_CBFS := $(CONFIG_CBFS_PREFIX)/qclib |
| 83 | $(QCLIB_CBFS)-file := $(QCLIB_FILE) |
| 84 | $(QCLIB_CBFS)-type := stage |
| 85 | $(QCLIB_CBFS)-compression := $(CBFS_PRERAM_COMPRESS_FLAG) |
| 86 | cbfs-files-y += $(QCLIB_CBFS) |
| 87 | |
| 88 | ################################################################################ |
| 89 | PMIC_FILE := $(SC7180_BLOB)/boot/Pmic.bin |
| 90 | PMIC_CBFS := $(CONFIG_CBFS_PREFIX)/pmiccfg |
| 91 | $(PMIC_CBFS)-file := $(PMIC_FILE) |
| 92 | $(PMIC_CBFS)-type := raw |
| 93 | $(PMIC_CBFS)-compression := $(CBFS_COMPRESS_FLAG) |
| 94 | cbfs-files-y += $(PMIC_CBFS) |
| 95 | |
| 96 | ################################################################################ |
| 97 | DCB_FILE := $(SC7180_BLOB)/boot/dcb.bin |
| 98 | DCB_CBFS := $(CONFIG_CBFS_PREFIX)/dcb |
| 99 | $(DCB_CBFS)-file := $(DCB_FILE) |
| 100 | $(DCB_CBFS)-type := raw |
| 101 | $(DCB_CBFS)-compression := $(CBFS_COMPRESS_FLAG) |
| 102 | cbfs-files-y += $(DCB_CBFS) |
| 103 | |
| 104 | ################################################################################ |
Sudheer Kumar Amrabadi | cc4dd88 | 2022-05-09 18:20:19 +0530 | [diff] [blame] | 105 | DCB_LONGSYS1P8_FILE := $(SC7180_BLOB)/boot/dcb_slow.bin |
| 106 | DCB_LONGSYS1P8_CBFS := $(CONFIG_CBFS_PREFIX)/dcb_longsys1p8 |
| 107 | $(DCB_LONGSYS1P8_CBFS)-file := $(DCB_LONGSYS1P8_FILE) |
| 108 | $(DCB_LONGSYS1P8_CBFS)-type := raw |
| 109 | $(DCB_LONGSYS1P8_CBFS)-compression := $(CBFS_COMPRESS_FLAG) |
| 110 | cbfs-files-y += $(DCB_LONGSYS1P8_CBFS) |
| 111 | |
| 112 | ################################################################################ |
ashk | b05e540 | 2019-07-30 14:22:04 +0530 | [diff] [blame] | 113 | AOP_FILE := $(SC7180_BLOB)/aop/aop.mbn |
| 114 | AOP_CBFS := $(CONFIG_CBFS_PREFIX)/aop |
| 115 | $(AOP_CBFS)-file := $(AOP_FILE) |
| 116 | $(AOP_CBFS)-type := payload |
| 117 | $(AOP_CBFS)-compression := $(CBFS_COMPRESS_FLAG) |
| 118 | cbfs-files-y += $(AOP_CBFS) |
| 119 | |
| 120 | ################################################################################ |
| 121 | UART_FW_FILE := $(SC7180_BLOB)/qup_fw/uart_fw.bin |
| 122 | UART_FW_CBFS := $(CONFIG_CBFS_PREFIX)/uart_fw |
| 123 | $(UART_FW_CBFS)-file := $(UART_FW_FILE) |
| 124 | $(UART_FW_CBFS)-type := raw |
| 125 | $(UART_FW_CBFS)-compression := none |
| 126 | cbfs-files-y += $(UART_FW_CBFS) |
| 127 | |
| 128 | ################################################################################ |
| 129 | SPI_FW_FILE := $(SC7180_BLOB)/qup_fw/spi_fw.bin |
| 130 | SPI_FW_CBFS := $(CONFIG_CBFS_PREFIX)/spi_fw |
| 131 | $(SPI_FW_CBFS)-file := $(SPI_FW_FILE) |
| 132 | $(SPI_FW_CBFS)-type := raw |
| 133 | $(SPI_FW_CBFS)-compression := none |
| 134 | cbfs-files-y += $(SPI_FW_CBFS) |
| 135 | |
| 136 | ################################################################################ |
| 137 | I2C_FW_FILE := $(SC7180_BLOB)/qup_fw/i2c_fw.bin |
| 138 | I2C_FW_CBFS := $(CONFIG_CBFS_PREFIX)/i2c_fw |
| 139 | $(I2C_FW_CBFS)-file := $(I2C_FW_FILE) |
| 140 | $(I2C_FW_CBFS)-type := raw |
| 141 | $(I2C_FW_CBFS)-compression := none |
| 142 | cbfs-files-y += $(I2C_FW_CBFS) |
| 143 | |
| 144 | ################################################################################ |
| 145 | QC_SEC_FILE := $(SC7180_BLOB)/qc_sec/qc_sec.mbn |
| 146 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.elf |
| 147 | @util/qualcomm/createxbl.py --mbn_version 6 -f $(objcbfs)/bootblock.raw.elf \ |
| 148 | -x $(QC_SEC_FILE) -o $(objcbfs)/merged_bb_qcsec.mbn \ |
| 149 | -a 64 -d 64 -c 64 |
| 150 | @printf "\nqgpt.py 4K sector size\n" |
| 151 | @util/qualcomm/qgpt.py $(objcbfs)/merged_bb_qcsec.mbn \ |
| 152 | $(objcbfs)/bootblock.bin |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 153 | |
| 154 | endif |
Felix Singer | c541567 | 2023-11-12 06:32:35 +0000 | [diff] [blame] | 155 | |
| 156 | endif |