blob: 9392d302a2f76165f0a66a593a2512c13382b13f [file] [log] [blame]
Paul Burtonc1081a42014-06-14 00:08:02 +01001#
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 Burtonc1081a42014-06-14 00:08:02 +010016
Stefan Reinaueraae53ab2015-04-27 14:03:57 -070017ifeq ($(CONFIG_CPU_IMGTEC_PISTACHIO),y)
18
Vadim Bendebury2d510d02014-09-29 12:43:40 -070019# We enable CBFS_SPI_WRAPPER for Pistachio targets.
Ionela Voinescub3f666b2015-01-18 22:37:11 +000020bootblock-y += clocks.c
Vadim Bendeburyb2e465d2014-08-29 16:34:46 -070021bootblock-y += spi.c
22romstage-y += spi.c
23ramstage-y += spi.c
24
Nico Huber755db952018-11-11 01:42:17 +010025bootblock-y += uart.c
Paul Burtonc1081a42014-06-14 00:08:02 +010026romstage-y += uart.c
27ramstage-y += uart.c
Paul Burtonc1081a42014-06-14 00:08:02 +010028
Vadim Bendeburyf16b0822014-09-29 13:08:24 -070029bootblock-y += monotonic_timer.c
Vadim Bendeburyb2e465d2014-08-29 16:34:46 -070030
Vadim Bendeburyf16b0822014-09-29 13:08:24 -070031ramstage-y += monotonic_timer.c
Vadim Bendeburyf3bc0262014-12-01 18:34:37 -080032ramstage-y += soc.c
Stefan Reinauer3bdd45e2015-12-14 17:31:44 -080033ramstage-y += reset.c
Vadim Bendeburyb2e465d2014-08-29 16:34:46 -070034
35romstage-y += cbmem.c
Ionela Voinescud6aaca92015-01-19 01:03:44 +000036romstage-y += ddr2_init.c
Ionela Voinescu3fa1ad02015-04-05 17:55:51 +010037romstage-y += ddr3_init.c
Vadim Bendeburyc7b3f722014-09-02 13:20:47 -070038romstage-y += romstage.c
Ionela Voinescu49aad6b2014-09-09 20:18:55 +010039romstage-y += monotonic_timer.c
Paul Burtonc1081a42014-06-14 00:08:02 +010040
Julius Werner08125682014-10-20 13:22:00 -070041CPPFLAGS_common += -Isrc/soc/imgtec/pistachio/include/
42
Paul Burtonc1081a42014-06-14 00:08:02 +010043# Create a complete bootblock which will start up the system
Aaron Durbind972f782015-09-17 17:02:53 -050044$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BIMGTOOL)
Paul Burtonc1081a42014-06-14 00:08:02 +010045 @printf " BIMGTOOL $(subst $(obj)/,,$(@))\n"
Julius Wernerec5e5e02014-08-20 15:29:56 -070046 $(BIMGTOOL) $< $@ $(call loadaddr,bootblock)
Vadim Bendeburyb2e465d2014-08-29 16:34:46 -070047
Stefan Reinaueraae53ab2015-04-27 14:03:57 -070048endif