blob: 78e77892fca89607482ebc5ede91fc05b795c445 [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
Patrick Georgi146d05d2015-03-30 13:08:18 +020025ifeq ($(CONFIG_DRIVERS_UART),y)
Paul Burtonc1081a42014-06-14 00:08:02 +010026bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += uart.c
27romstage-y += uart.c
28ramstage-y += uart.c
29endif
30
Vadim Bendeburyf16b0822014-09-29 13:08:24 -070031bootblock-y += monotonic_timer.c
Vadim Bendeburyb2e465d2014-08-29 16:34:46 -070032
Paul Burtonc1081a42014-06-14 00:08:02 +010033ramstage-y += cbmem.c
Vadim Bendeburyf16b0822014-09-29 13:08:24 -070034ramstage-y += monotonic_timer.c
Vadim Bendeburyf3bc0262014-12-01 18:34:37 -080035ramstage-y += soc.c
Stefan Reinauer3bdd45e2015-12-14 17:31:44 -080036ramstage-y += reset.c
Vadim Bendeburyb2e465d2014-08-29 16:34:46 -070037
38romstage-y += cbmem.c
Ionela Voinescud6aaca92015-01-19 01:03:44 +000039romstage-y += ddr2_init.c
Ionela Voinescu3fa1ad02015-04-05 17:55:51 +010040romstage-y += ddr3_init.c
Vadim Bendeburyc7b3f722014-09-02 13:20:47 -070041romstage-y += romstage.c
Ionela Voinescu49aad6b2014-09-09 20:18:55 +010042romstage-y += monotonic_timer.c
Paul Burtonc1081a42014-06-14 00:08:02 +010043
Julius Werner08125682014-10-20 13:22:00 -070044CPPFLAGS_common += -Isrc/soc/imgtec/pistachio/include/
45
Paul Burtonc1081a42014-06-14 00:08:02 +010046# Create a complete bootblock which will start up the system
Aaron Durbind972f782015-09-17 17:02:53 -050047$(objcbfs)/bootblock.bin: $(objcbfs)/bootblock.raw.bin $(BIMGTOOL)
Paul Burtonc1081a42014-06-14 00:08:02 +010048 @printf " BIMGTOOL $(subst $(obj)/,,$(@))\n"
Julius Wernerec5e5e02014-08-20 15:29:56 -070049 $(BIMGTOOL) $< $@ $(call loadaddr,bootblock)
Vadim Bendeburyb2e465d2014-08-29 16:34:46 -070050
Stefan Reinaueraae53ab2015-04-27 14:03:57 -070051endif