blob: 3a58cc92351926de734070e0c0f995f919a27d3f [file] [log] [blame]
Lee Leahy2ed7eb72016-01-01 18:08:48 -08001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2015-2016 Intel Corporation.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; version 2 of the License.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15
16ifeq ($(CONFIG_SOC_INTEL_QUARK),y)
17
Lee Leahy9fd08952016-02-02 07:17:06 -080018subdirs-y += romstage
Nico Huberd67edca2018-11-13 19:28:07 +010019subdirs-y += ../../../cpu/x86/mtrr
Lee Leahy2ed7eb72016-01-01 18:08:48 -080020subdirs-y += ../../../cpu/x86/tsc
21
Lee Leahyce9e21a2016-06-05 18:48:31 -070022bootblock-y += bootblock/esram_init.S
23bootblock-y += bootblock/bootblock.c
24bootblock-y += i2c.c
25bootblock-y += reg_access.c
26bootblock-y += tsc_freq.c
27bootblock-y += uart_common.c
28
Lee Leahyb8f53232017-01-04 08:26:53 -080029verstage-y += i2c.c
30verstage-y += reg_access.c
31verstage-y += tsc_freq.c
32verstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
33
Lee Leahya5258cb2016-05-30 14:06:25 -070034romstage-y += i2c.c
Lee Leahy2ed7eb72016-01-01 18:08:48 -080035romstage-y += memmap.c
Lee Leahy4dd34ee2016-05-02 14:31:02 -070036romstage-y += reg_access.c
Lee Leahy16bc9ba2017-04-01 20:33:58 -070037romstage-$(CONFIG_STORAGE_TEST) += storage_test.c
Lee Leahy87df8d02016-02-07 14:37:13 -080038romstage-y += tsc_freq.c
Lee Leahy654fd072016-02-17 08:47:58 -080039romstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
Michael Niewöhnerb17f3d32019-10-24 00:19:45 +020040romstage-y += reset.c
Lee Leahyf26fc0f2016-07-25 10:14:07 -070041
Michael Niewöhnerb17f3d32019-10-24 00:19:45 +020042postcar-y += fsp_params.c
Lee Leahyf26fc0f2016-07-25 10:14:07 -070043postcar-y += i2c.c
Lee Leahyf26fc0f2016-07-25 10:14:07 -070044postcar-y += reg_access.c
45postcar-y += tsc_freq.c
46postcar-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
Lee Leahy2ed7eb72016-01-01 18:08:48 -080047
Lee Leahyd3de85c2016-02-20 17:15:33 -080048ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
Lee Leahyd4edacb2016-02-08 07:12:30 -080049ramstage-y += chip.c
Lee Leahy6923e8c2016-05-22 09:01:41 -070050ramstage-y += ehci.c
Michael Niewöhnerb17f3d32019-10-24 00:19:45 +020051ramstage-y += fsp_params.c
Lee Leahyac690b12016-05-15 15:12:56 -070052ramstage-y += gpio_i2c.c
Lee Leahya5258cb2016-05-30 14:06:25 -070053ramstage-y += i2c.c
Lee Leahy773ee2b2016-05-22 15:34:11 -070054ramstage-y += lpc.c
Lee Leahy535333d2016-02-14 15:10:35 -080055ramstage-y += northcluster.c
Lee Leahy4dd34ee2016-05-02 14:31:02 -070056ramstage-y += reg_access.c
Michael Niewöhnerb17f3d32019-10-24 00:19:45 +020057ramstage-y += reset.c
Lee Leahy16bc9ba2017-04-01 20:33:58 -070058ramstage-y += sd.c
Lee Leahyd9351092017-05-24 13:23:26 -070059ramstage-y += spi.c
60ramstage-y += spi_debug.c
Lee Leahy16bc9ba2017-04-01 20:33:58 -070061ramstage-$(CONFIG_STORAGE_TEST) += storage_test.c
Lee Leahy87df8d02016-02-07 14:37:13 -080062ramstage-y += tsc_freq.c
Lee Leahy654fd072016-02-17 08:47:58 -080063ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart_common.c
Lee Leahy87df8d02016-02-07 14:37:13 -080064ramstage-$(CONFIG_ENABLE_BUILTIN_HSUART1) += uart.c
Lee Leahy2ed7eb72016-01-01 18:08:48 -080065
Lee Leahyd4edacb2016-02-08 07:12:30 -080066CPPFLAGS_common += -I$(src)/soc/intel/quark
Lee Leahy2ed7eb72016-01-01 18:08:48 -080067CPPFLAGS_common += -I$(src)/soc/intel/quark/include
Lee Leahy102f6252016-07-25 07:41:54 -070068CPPFLAGS_common += -I$(src)/soc/intel/quark/include/soc/fsp
Lee Leahy2ed7eb72016-01-01 18:08:48 -080069
70# Chipset microcode path
71CPPFLAGS_common += -I3rdparty/blobs/soc/intel/quark
72
Lee Leahyf26fc0f2016-07-25 10:14:07 -070073# Since FSP-M runs in CAR we need to relocate it to a specific address
74$(CONFIG_FSP_M_CBFS)-options := -b $(CONFIG_FSP_ESRAM_LOC)
75
Lee Leahya7ba56e2016-02-07 10:42:14 -080076# Add the FSP binary to the CBFS image
77cbfs-files-$(CONFIG_ADD_FSP_RAW_BIN) += fsp.bin
78fsp.bin-file := $(call strip_quotes,$(CONFIG_FSP_FILE))
79fsp.bin-position := $(CONFIG_FSP_LOC)
80fsp.bin-type := raw
81
Lee Leahy9fd08952016-02-02 07:17:06 -080082# Add the chipset microcode file to the CBFS image
83cbfs-files-$(CONFIG_ADD_RMU_FILE) += rmu.bin
84rmu.bin-file := $(call strip_quotes,$(CONFIG_RMU_FILE))
85rmu.bin-position := $(CONFIG_RMU_LOC)
86rmu.bin-type := raw
87
Lee Leahy2ed7eb72016-01-01 18:08:48 -080088endif # CONFIG_SOC_INTEL_QUARK