blob: bd61a62a45c3ef107ed84f082fab3cc2469d0f1a [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001## SPDX-License-Identifier: GPL-2.0-only
Varadarajan Narayanana6935c22016-03-02 16:57:10 +05302
3ifeq ($(CONFIG_SOC_QC_IPQ40XX),y)
4
5bootblock-y += clock.c
6bootblock-y += gpio.c
7bootblock-$(CONFIG_SPI_FLASH) += spi.c
8bootblock-y += timer.c
Nico Huber755db952018-11-11 01:42:17 +01009bootblock-y += uart.c
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053010
11verstage-y += clock.c
12verstage-y += gpio.c
Julius Wernere91d1702017-03-20 15:32:15 -070013verstage-y += blsp.c
14verstage-y += i2c.c
15verstage-y += qup.c
16verstage-y += spi.c
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053017verstage-y += timer.c
Nico Huber755db952018-11-11 01:42:17 +010018verstage-y += uart.c
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053019
20romstage-y += clock.c
21romstage-y += blobs_init.c
22romstage-y += gpio.c
23romstage-$(CONFIG_SPI_FLASH) += spi.c
24romstage-y += timer.c
Nico Huber755db952018-11-11 01:42:17 +010025romstage-y += uart.c
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053026romstage-y += cbmem.c
Philipp Deppenwiese545ed7a2018-02-14 16:47:12 +010027romstage-y += i2c.c
28romstage-y += blsp.c
29romstage-y += qup.c
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053030
31ramstage-y += blobs_init.c
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053032ramstage-y += clock.c
33ramstage-y += gpio.c
34ramstage-y += lcc.c
35ramstage-y += soc.c
36ramstage-$(CONFIG_SPI_FLASH) += spi.c
37ramstage-y += timer.c
38ramstage-y += uart.c # Want the UART always ready for the kernels' earlyprintk
39ramstage-y += usb.c
40ramstage-y += tz_wrapper.S
41
Furquan Shaikhfaf07a82016-07-25 16:58:15 -070042ramstage-y += blsp.c
43ramstage-y += i2c.c
44ramstage-y += qup.c
45ramstage-y += spi.c
46
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053047ifeq ($(CONFIG_USE_BLOBS),y)
48
Varadarajan Narayanandc17d2d2016-02-01 11:21:47 +053049$(objcbfs)/bootblock.bin: $(call strip_quotes,$(CONFIG_SBL_ELF)) \
50 $(objcbfs)/bootblock.elf
51 @printf " CRXBL $(subst $(obj)/,,$(^)) $(subst $(obj)/,,$(@))\n"
Julius Werner85b41442019-11-11 16:49:56 -080052 @$(CONFIG_SBL_UTIL_PATH)/createxbl.py -f $(CONFIG_SBL_ELF) \
David Hendricksf7327fa2016-05-09 16:49:38 -070053 -s $(objcbfs)/bootblock.elf -o $@ -a 32 -b 32
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053054
55endif
56
57CPPFLAGS_common += -Isrc/soc/qualcomm/ipq40xx/include
58
59# List of binary blobs coreboot needs in CBFS to be able to boot up this SOC
Varadarajan Narayanandc17d2d2016-02-01 11:21:47 +053060mbn-files := $(CONFIG_CDT_MBN) $(CONFIG_DDR_MBN) $(CONFIG_TZ_MBN)
Varadarajan Narayanana6935c22016-03-02 16:57:10 +053061
62# Location of the binary blobs
63mbn-root := 3rdparty/blobs/cpu/qualcomm/ipq40xx
64
65# Create make variables to aid cbfs-files-handler in processing the blobs (add
66# them all as raw binaries at the root level).
67$(foreach f,$(mbn-files),$(eval cbfs-files-y += $(f))\
68 $(eval $(f)-file := $(mbn-root)/$(f))\
69 $(eval $(f)-type := raw))
70
71endif