Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 2 | |
| 3 | ifeq ($(CONFIG_SOC_QC_IPQ40XX),y) |
| 4 | |
| 5 | bootblock-y += clock.c |
| 6 | bootblock-y += gpio.c |
| 7 | bootblock-$(CONFIG_SPI_FLASH) += spi.c |
| 8 | bootblock-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 9 | bootblock-y += uart.c |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 10 | |
| 11 | verstage-y += clock.c |
| 12 | verstage-y += gpio.c |
Julius Werner | e91d170 | 2017-03-20 15:32:15 -0700 | [diff] [blame] | 13 | verstage-y += blsp.c |
| 14 | verstage-y += i2c.c |
| 15 | verstage-y += qup.c |
| 16 | verstage-y += spi.c |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 17 | verstage-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 18 | verstage-y += uart.c |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 19 | |
| 20 | romstage-y += clock.c |
| 21 | romstage-y += blobs_init.c |
| 22 | romstage-y += gpio.c |
| 23 | romstage-$(CONFIG_SPI_FLASH) += spi.c |
| 24 | romstage-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 25 | romstage-y += uart.c |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 26 | romstage-y += cbmem.c |
Philipp Deppenwiese | 545ed7a | 2018-02-14 16:47:12 +0100 | [diff] [blame] | 27 | romstage-y += i2c.c |
| 28 | romstage-y += blsp.c |
| 29 | romstage-y += qup.c |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 30 | |
| 31 | ramstage-y += blobs_init.c |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 32 | ramstage-y += clock.c |
| 33 | ramstage-y += gpio.c |
| 34 | ramstage-y += lcc.c |
| 35 | ramstage-y += soc.c |
| 36 | ramstage-$(CONFIG_SPI_FLASH) += spi.c |
| 37 | ramstage-y += timer.c |
| 38 | ramstage-y += uart.c # Want the UART always ready for the kernels' earlyprintk |
| 39 | ramstage-y += usb.c |
| 40 | ramstage-y += tz_wrapper.S |
| 41 | |
Furquan Shaikh | faf07a8 | 2016-07-25 16:58:15 -0700 | [diff] [blame] | 42 | ramstage-y += blsp.c |
| 43 | ramstage-y += i2c.c |
| 44 | ramstage-y += qup.c |
| 45 | ramstage-y += spi.c |
| 46 | |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 47 | ifeq ($(CONFIG_USE_BLOBS),y) |
| 48 | |
Varadarajan Narayanan | dc17d2d | 2016-02-01 11:21:47 +0530 | [diff] [blame] | 49 | $(objcbfs)/bootblock.bin: $(call strip_quotes,$(CONFIG_SBL_ELF)) \ |
| 50 | $(objcbfs)/bootblock.elf |
| 51 | @printf " CRXBL $(subst $(obj)/,,$(^)) $(subst $(obj)/,,$(@))\n" |
Julius Werner | 85b4144 | 2019-11-11 16:49:56 -0800 | [diff] [blame] | 52 | @$(CONFIG_SBL_UTIL_PATH)/createxbl.py -f $(CONFIG_SBL_ELF) \ |
David Hendricks | f7327fa | 2016-05-09 16:49:38 -0700 | [diff] [blame] | 53 | -s $(objcbfs)/bootblock.elf -o $@ -a 32 -b 32 |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 54 | |
| 55 | endif |
| 56 | |
| 57 | CPPFLAGS_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 Narayanan | dc17d2d | 2016-02-01 11:21:47 +0530 | [diff] [blame] | 60 | mbn-files := $(CONFIG_CDT_MBN) $(CONFIG_DDR_MBN) $(CONFIG_TZ_MBN) |
Varadarajan Narayanan | a6935c2 | 2016-03-02 16:57:10 +0530 | [diff] [blame] | 61 | |
| 62 | # Location of the binary blobs |
| 63 | mbn-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 | |
| 71 | endif |