Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2014 Imagination Technologies |
| 5 | # |
| 6 | # This program is free software; you can redistribute it and/or |
| 7 | # modify it under the terms of the GNU General Public License as |
| 8 | # published by the Free Software Foundation; version 2 of |
| 9 | # the License. |
| 10 | # |
| 11 | # This program is distributed in the hope that it will be useful, |
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 16 | |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 17 | ifeq ($(CONFIG_CPU_IMGTEC_PISTACHIO),y) |
| 18 | |
Vadim Bendebury | 2d510d0 | 2014-09-29 12:43:40 -0700 | [diff] [blame] | 19 | # We enable CBFS_SPI_WRAPPER for Pistachio targets. |
Ionela Voinescu | b3f666b | 2015-01-18 22:37:11 +0000 | [diff] [blame] | 20 | bootblock-y += clocks.c |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 21 | bootblock-y += spi.c |
| 22 | romstage-y += spi.c |
| 23 | ramstage-y += spi.c |
| 24 | |
Patrick Georgi | 146d05d | 2015-03-30 13:08:18 +0200 | [diff] [blame] | 25 | ifeq ($(CONFIG_DRIVERS_UART),y) |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 26 | bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c |
| 27 | romstage-y += uart.c |
| 28 | ramstage-y += uart.c |
| 29 | endif |
| 30 | |
Vadim Bendebury | f16b082 | 2014-09-29 13:08:24 -0700 | [diff] [blame] | 31 | bootblock-y += monotonic_timer.c |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 32 | |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 33 | ramstage-y += cbmem.c |
Vadim Bendebury | f16b082 | 2014-09-29 13:08:24 -0700 | [diff] [blame] | 34 | ramstage-y += monotonic_timer.c |
Vadim Bendebury | f3bc026 | 2014-12-01 18:34:37 -0800 | [diff] [blame] | 35 | ramstage-y += soc.c |
Stefan Reinauer | 3bdd45e | 2015-12-14 17:31:44 -0800 | [diff] [blame] | 36 | ramstage-y += reset.c |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 37 | |
| 38 | romstage-y += cbmem.c |
Ionela Voinescu | d6aaca9 | 2015-01-19 01:03:44 +0000 | [diff] [blame] | 39 | romstage-y += ddr2_init.c |
Ionela Voinescu | 3fa1ad0 | 2015-04-05 17:55:51 +0100 | [diff] [blame] | 40 | romstage-y += ddr3_init.c |
Vadim Bendebury | c7b3f72 | 2014-09-02 13:20:47 -0700 | [diff] [blame] | 41 | romstage-y += romstage.c |
Ionela Voinescu | 49aad6b | 2014-09-09 20:18:55 +0100 | [diff] [blame] | 42 | romstage-y += monotonic_timer.c |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 43 | |
Julius Werner | 0812568 | 2014-10-20 13:22:00 -0700 | [diff] [blame] | 44 | CPPFLAGS_common += -Isrc/soc/imgtec/pistachio/include/ |
| 45 | |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 46 | # Create a complete bootblock which will start up the system |
Aaron Durbin | d972f78 | 2015-09-17 17:02:53 -0500 | [diff] [blame] | 47 | $(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BIMGTOOL) |
Paul Burton | c1081a4 | 2014-06-14 00:08:02 +0100 | [diff] [blame] | 48 | @printf " BIMGTOOL $(subst $(obj)/,,$(@))\n" |
Julius Werner | ec5e5e0 | 2014-08-20 15:29:56 -0700 | [diff] [blame] | 49 | $(BIMGTOOL) $< $@ $(call loadaddr,bootblock) |
Vadim Bendebury | b2e465d | 2014-08-29 16:34:46 -0700 | [diff] [blame] | 50 | |
Stefan Reinauer | aae53ab | 2015-04-27 14:03:57 -0700 | [diff] [blame] | 51 | endif |