Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Vadim Bendebury | 0b341b3 | 2014-04-23 11:09:44 -0700 | [diff] [blame] | 2 | |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 3 | ifeq ($(CONFIG_SOC_QC_IPQ806X),y) |
| 4 | |
Vadim Bendebury | db3e2f0 | 2014-04-09 19:23:54 -0700 | [diff] [blame] | 5 | bootblock-y += clock.c |
Furquan Shaikh | 9d91aba | 2014-04-10 20:35:05 -0700 | [diff] [blame] | 6 | bootblock-y += gpio.c |
Vadim Bendebury | 0e2d9b6 | 2014-05-01 19:37:18 -0700 | [diff] [blame] | 7 | bootblock-$(CONFIG_SPI_FLASH) += spi.c |
Marc Jones | 017287a | 2014-12-29 16:52:59 -0700 | [diff] [blame] | 8 | bootblock-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 9 | bootblock-y += uart.c |
Furquan Shaikh | 7657057 | 2014-03-19 14:29:48 -0700 | [diff] [blame] | 10 | |
Vadim Bendebury | fa00ae7 | 2014-12-10 20:11:30 -0800 | [diff] [blame] | 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 += gsbi.c |
| 14 | verstage-y += i2c.c |
| 15 | verstage-y += qup.c |
| 16 | verstage-y += spi.c |
Vadim Bendebury | fa00ae7 | 2014-12-10 20:11:30 -0800 | [diff] [blame] | 17 | verstage-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 18 | verstage-y += uart.c |
Vadim Bendebury | fa00ae7 | 2014-12-10 20:11:30 -0800 | [diff] [blame] | 19 | |
Vadim Bendebury | db3e2f0 | 2014-04-09 19:23:54 -0700 | [diff] [blame] | 20 | romstage-y += clock.c |
Vadim Bendebury | ef77f87 | 2014-12-10 20:42:58 -0800 | [diff] [blame] | 21 | romstage-y += blobs_init.c |
Furquan Shaikh | 9d91aba | 2014-04-10 20:35:05 -0700 | [diff] [blame] | 22 | romstage-y += gpio.c |
Vadim Bendebury | 0e2d9b6 | 2014-05-01 19:37:18 -0700 | [diff] [blame] | 23 | romstage-$(CONFIG_SPI_FLASH) += spi.c |
Marc Jones | 017287a | 2014-12-29 16:52:59 -0700 | [diff] [blame] | 24 | romstage-y += timer.c |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 25 | romstage-y += uart.c |
Vadim Bendebury | 15c98b0 | 2014-05-01 14:45:56 -0700 | [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 += gsbi.c |
| 29 | romstage-y += qup.c |
Furquan Shaikh | 7657057 | 2014-03-19 14:29:48 -0700 | [diff] [blame] | 30 | |
Vikas Das | 08f249e | 2014-09-22 17:49:56 -0700 | [diff] [blame] | 31 | ramstage-y += blobs_init.c |
Vadim Bendebury | db3e2f0 | 2014-04-09 19:23:54 -0700 | [diff] [blame] | 32 | ramstage-y += clock.c |
Furquan Shaikh | 9d91aba | 2014-04-10 20:35:05 -0700 | [diff] [blame] | 33 | ramstage-y += gpio.c |
Vadim Bendebury | 3cfb6a0 | 2015-02-11 15:13:04 -0800 | [diff] [blame] | 34 | ramstage-y += lcc.c |
Vadim Bendebury | 41a5d0d | 2014-05-13 17:47:57 -0700 | [diff] [blame] | 35 | ramstage-y += soc.c |
Vadim Bendebury | 0e2d9b6 | 2014-05-01 19:37:18 -0700 | [diff] [blame] | 36 | ramstage-$(CONFIG_SPI_FLASH) += spi.c |
Vadim Bendebury | f4b209f | 2014-04-09 19:23:04 -0700 | [diff] [blame] | 37 | ramstage-y += timer.c |
Vadim Bendebury | 7c25640 | 2015-01-13 13:07:48 -0800 | [diff] [blame] | 38 | ramstage-y += uart.c # Want the UART always ready for the kernels' earlyprintk |
Julius Werner | 028cba9 | 2014-05-30 18:01:44 -0700 | [diff] [blame] | 39 | ramstage-y += usb.c |
Vikas Das | 08f249e | 2014-09-22 17:49:56 -0700 | [diff] [blame] | 40 | ramstage-y += tz_wrapper.S |
Furquan Shaikh | a7f11b8 | 2016-07-25 16:57:46 -0700 | [diff] [blame] | 41 | ramstage-y += gsbi.c |
| 42 | ramstage-y += i2c.c |
| 43 | ramstage-y += qup.c |
| 44 | ramstage-y += spi.c |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 45 | |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 46 | ifeq ($(CONFIG_USE_BLOBS),y) |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 47 | |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 48 | # Add MBN header to allow SBL3 to start coreboot bootblock |
Aaron Durbin | d972f78 | 2015-09-17 17:02:53 -0500 | [diff] [blame] | 49 | $(objcbfs)/bootblock.mbn: $(objcbfs)/bootblock.raw.bin |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 50 | @printf " ADD MBN $(subst $(obj)/,,$(@))\n" |
T Michael Turney | 101098c | 2018-05-01 15:59:37 -0700 | [diff] [blame] | 51 | ./util/qualcomm/ipqheader.py $(call loadaddr,bootblock) $< $@.tmp |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 52 | @mv $@.tmp $@ |
| 53 | |
| 54 | # Create a complete bootblock which will start up the system |
Vadim Bendebury | e83c80c | 2014-04-15 14:42:30 -0700 | [diff] [blame] | 55 | $(objcbfs)/bootblock.bin: $(call strip_quotes,$(CONFIG_SBL_BLOB)) \ |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 56 | $(objcbfs)/bootblock.mbn |
Vadim Bendebury | e39ac75 | 2014-11-30 16:10:46 -0800 | [diff] [blame] | 57 | @printf " MBNCAT $(subst $(obj)/,,$(@))\n" |
T Michael Turney | 101098c | 2018-05-01 15:59:37 -0700 | [diff] [blame] | 58 | @util/qualcomm/mbncat.py -o $@.tmp $^ |
Vadim Bendebury | 9cb70ae | 2014-04-07 18:59:53 -0700 | [diff] [blame] | 59 | @mv $@.tmp $@ |
| 60 | |
Vadim Bendebury | b1709bd | 2014-04-07 15:26:39 -0700 | [diff] [blame] | 61 | endif |
Furquan Shaikh | 75b4beb | 2014-04-10 20:53:32 -0700 | [diff] [blame] | 62 | |
Furquan Shaikh | 9d91aba | 2014-04-10 20:35:05 -0700 | [diff] [blame] | 63 | CPPFLAGS_common += -Isrc/soc/qualcomm/ipq806x/include |
Vadim Bendebury | f85640d | 2014-12-06 18:24:56 -0800 | [diff] [blame] | 64 | |
| 65 | # List of binary blobs coreboot needs in CBFS to be able to boot up this SOC |
| 66 | mbn-files := cdt.mbn ddr.mbn rpm.mbn tz.mbn |
| 67 | |
| 68 | # Location of the binary blobs |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 69 | mbn-root := 3rdparty/blobs/cpu/qualcomm/ipq806x |
Vadim Bendebury | f85640d | 2014-12-06 18:24:56 -0800 | [diff] [blame] | 70 | |
| 71 | # Create make variables to aid cbfs-files-handler in processing the blobs (add |
| 72 | # them all as raw binaries at the root level). |
| 73 | $(foreach f,$(mbn-files),$(eval cbfs-files-y += $(f))\ |
| 74 | $(eval $(f)-file := $(mbn-root)/$(f))\ |
| 75 | $(eval $(f)-type := raw)) |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 76 | |
| 77 | endif |